chore(deps): update rust crate handlebars to v4 #13090
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.5.5
->4.5.0
Release Notes
sunng87/handlebars-rust (handlebars)
v4.5.0
Compare Source
v4.4.0
Compare Source
v4.3.7
Compare Source
Result
inhandlebars_helper
macro [#578]v4.3.6
Compare Source
[Fixed] Loading template files with multiple extensions, a bug introduced in 4.3.0 when refactoring directory source.
v4.3.5
Compare Source
v4.3.4
Compare Source
write_fmt
function forOutput
[#522]reason()
method forTemplateError
to access underlying reason,this replaces original direct
.reason
access.TemplateError
'sreason
field is depreacted willbe removed in future.
v4.3.3
Compare Source
{{~> partial}}
tobring behavior closer in line with original javascript version. [#518]
[#520]
v4.3.2
Compare Source
Context
for customstd::io::Write
:render_with_context_to_write
andrender_template_with_context_to_write
v4.3.1
Compare Source
{{~{variable}~}}
syntax [#509]v4.3.0
Compare Source
{{> partial}}
, which is introduced in 4.2.0. The new implementation isaligned with original javascript version, that every text line
generated from partial are indented as
{{> partial}}
does.
prevent_indent
will turn-off this feature. [#505]thiserror
v4.2.2
Compare Source
v4.2.1
Compare Source
@partial-block
referencing issue [#488]rust-embed
featurev4.2.0
Compare Source
{{> partial}}
as default in handlebarsjs. A new optionprevent_indent
is provided on
Handlebars
to turn off this behaviour. [#486]v4.1.6
Compare Source
Context
from ownedserde_json::Value
[#477]v4.1.5
Compare Source
v4.1.4
Compare Source
v4.1.3
Compare Source
@last
variable foreach
block with object [#466]v4.1.2
Compare Source
handlebars_helper!
.Engine
from registry.dev_mode
that it has to be enabled beforeadding templates.
v4.1.1
Compare Source
v4.1.0
Compare Source
StringOutput
as requested in #442handlebars_helper!
andbuilt-in helpers based on it.
aligned with handlebarsjs. #448
v4.0.1
Compare Source
v4.0.0
Compare Source
dev_mode
for registry: templates and scripts loaded from file are alwaysreloaded when dev mode enabled [#395]
Clone
[#395]len
[#421]rhai
to 0.19 and then 0.20 [#391]#each
helper now renders else block for non-iterable data [#380]TemplateError
andScriptError
is now a cause ofRenderError
[#395]RenderContext::get_partial
now returnsOption<&Template>
HtmlExpression
andIoError
based on clippy recommendations [#424]call_inner
fromHelperDef
to avoid misleading [#437]null
,true
andfalse
were parsed incorrectly [#382]@partial-block
[#401]Zero-arity subexpression no longer resolved as variable. The behaviour is now aligned with handlebarsjs.
For instance,
{{(parent)}}
can no longer accessparent
field of the context object, use{{lookup this "parent"}}
instead. This change applies to partial inclusion, too.TemplateFileError
andTemplateRenderError
are removed and merged intoTemplateError
andRenderError
[#395]Configuration
📅 Schedule: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.