Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 11, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
handlebars dependencies major =3.5.5 -> =5.0.0

Release Notes

sunng87/handlebars-rust (handlebars)

v5.0.0

Compare Source

  • [Added] public mutable access to local variables in BlockContext [#​533]
  • [Changed] Simplified lifetime specifiers for Helper, ScopedJson and some
    other related types and functions. [#​532]
  • [Changed] Updated TemplateError to reduce its size. Direct field access is
    removed in favor of access methods
  • [Changed] Introducing RenderErrorReason for typed render error
  • [Changed] Changed register_template_directory api for more customizations
    #[610]
  • [Changed] Updated rust-embed to 8.0

v4.5.0

Compare Source

v4.4.0

Compare Source

v4.3.7

Compare Source

  • [Fixed] Use fully qualified name of Result in handlebars_helper macro [#​578]
  • [Fixed] Allow single-quote JSON literal [#​577]

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

  • [Added] New write_fmt function for Output [#​522]
  • [Added] reason() method for TemplateError to access underlying reason,
    this replaces original direct .reason access.
  • [Changed] Direct access to TemplateError's reason field is depreacted will
    be removed in future.

v4.3.3

Compare Source

  • [Fixed] Disable partial expression indentation with {{~> partial}} to
    bring behavior closer in line with original javascript version. [#​518]
  • [Fixed] Support for using partial context together with partial parameters
    [#​520]

v4.3.2

Compare Source

  • [Added] Render functions that reuse Context for custom std::io::Write:
    render_with_context_to_write and render_template_with_context_to_write

v4.3.1

Compare Source

  • [Added] Added support for {{~{variable}~}} syntax [#​509]

v4.3.0

Compare Source

  • [Changed] update MSRV to 1.57 as rhai requires
  • [Fixed] Reimplemented indent support for partial expression {{> partial}}, which is introduced in 4.2.0. The new implementation is
    aligned with original javascript version, that every text line
    generated from partial are indented as {{> partial}}
    does. prevent_indent will turn-off this feature. [#​505]
  • [Changed] changed error support library from quick_error to
    thiserror

v4.2.2

Compare Source

  • [Fixed] Block param scope leaked into partials [#​496]
  • [Changed] Use Rust 2021 edition and update MSRV to 1.56

v4.2.1

Compare Source

  • [Fixed] Nested partial @partial-block referencing issue [#​488]
  • [Fixed] Docs generation on docs.rs for rust-embed feature

v4.2.0

Compare Source

  • [Added] RustEmbed support for loading templates from [#​484]
  • [Fixed] Parser support for variables begins with digit [#​479]
  • [Changed] Keep indent whitespaces for partial expression {{> partial}} as default in handlebarsjs. A new option prevent_indent
    is provided on Handlebars to turn off this behaviour. [#​486]
  • [Changed] Update MSRV to 1.51 due to dependency changes

v4.1.6

Compare Source

  • [Added] Create Context from owned serde_json::Value [#​477]

v4.1.5

Compare Source

  • [Fixed] Single-quote string literal is supported, again [#​475]

v4.1.4

Compare Source

  • [Fixed] Corrected empty line stripping strategy [#​473]

v4.1.3

Compare Source

  • [Added] @last variable for each block with object [#​466]
  • [Fixed] Missing whitespaces behind expression [#​468]

v4.1.2

Compare Source

  • [Added] Support for generic types in handlebars_helper!.
  • [Added] Getter and setter for rhai Engine from registry.
  • [Fixed] Improve doc for dev_mode that it has to be enabled before
    adding templates.

v4.1.1

Compare Source

  • [Changed] Update rhai to 1.0 [#​455]
  • [Fixed] Empty line stripping for partial include statement, and other corner cases [#​458]

v4.1.0

Compare Source

  • [Added] export StringOutput as requested in #​442
  • [Changed] strict mode now applies to our helper macro handlebars_helper! and
    built-in helpers based on it.
  • [Fixed] Line stripping feature for standalone statment introduced in #​404 is now
    aligned with handlebarsjs. #​448

v4.0.1

Compare Source

  • [Fixed] Each block render error with empty array or object [#​445]

v4.0.0

Compare Source

  • [Added] dev_mode for registry: templates and scripts loaded from file are always
    reloaded when dev mode enabled [#​395]
  • [Added] Registry is now Clone [#​395]
  • [Added] New built-in helper len [#​421]
  • [Changed] Updated rhai to 0.19 and then 0.20 [#​391]
  • [Changed] #each helper now renders else block for non-iterable data [#​380]
  • [Changed] TemplateError and ScriptError is now a cause of RenderError [#​395]
  • [Changed] Empty lines around block helpers are now stripped [#​404]
  • [Changed] Breaking RenderContext::get_partial now returns Option<&Template>
  • [Changed] Breaking Capitalize names like HtmlExpression and IoError based on clippy recommendations [#​424]
  • [Changed] Breaking Improved return type of call_inner from HelperDef to avoid misleading [#​437]
  • [Fixed] reference starts with null, true and false were parsed incorrectly [#​382]
  • [Fixed] dir source path separator bug on windows [#​389] [#​405]
  • [Fixed] stack overflow with nested @partial-block [#​401]
  • [Fixed] value access issue when upper block has a base value [#​419]
  • [Fixed] escape rules for Json string literal [#​423]
  • [Fixed] Breaking zero-arity subexpressions support [#​433]
    Zero-arity subexpression no longer resolved as variable. The behaviour is now aligned with handlebarsjs.
    For instance, {{(parent)}} can no longer access parent field of the context object, use
    {{lookup this "parent"}} instead. This change applies to partial inclusion, too.
  • [Removed] Breaking option to disable source map is removed [#​395]
  • [Removed] Breaking TemplateFileError and TemplateRenderError are removed and merged into
    TemplateError and RenderError [#​395]

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/handlebars-5.x branch 7 times, most recently from 2098b06 to 25efbe0 Compare January 11, 2024 13:49
@renovate renovate bot force-pushed the renovate/handlebars-5.x branch from 25efbe0 to 8a30d5b Compare January 11, 2024 13:51
These zero-arity subexpressions are causing problems with Handlebars v4. Since we don't seem to use different values for `parent` anywhere we might as well inline them and use the `layout` partial directly.
Copy link
Contributor Author

renovate bot commented Jan 11, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.

@Turbo87 Turbo87 merged commit 6fd3303 into master Jan 11, 2024
@Turbo87 Turbo87 deleted the renovate/handlebars-5.x branch January 11, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant