Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update rust crate handlebars to v4 #13090

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 1, 2023

Mend Renovate

This PR contains the following updates:

Package Type Update Change
handlebars workspace.dependencies major 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

  • [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 - "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.


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

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

@rustbot
Copy link
Collaborator

rustbot commented Dec 1, 2023

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @epage (or someone else) soon.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 1, 2023
@epage
Copy link
Contributor

epage commented Dec 1, 2023

Hmm, I can't reproduce the failure locally.

@epage
Copy link
Contributor

epage commented Dec 1, 2023

Oh,. overlooked its in mdman. Most changes are innocuous but something about hour templates for CLI arguments is broken.

@rustbot rustbot added the A-cli-help Area: built-in command-line help label Dec 1, 2023
bors added a commit that referenced this pull request Dec 1, 2023
test(mdman): Switch to snapbox

Working with #13090 is the motivation

Benefits
- We use it elsewhere
- We don't have to bake in our own snapshotting solution
- It is more obvious how to update the snapshots
@weihanglo
Copy link
Member

Close in favor of #13162 to track the update.

@weihanglo weihanglo closed this Dec 13, 2023
@weihanglo weihanglo deleted the renovate/handlebars-4.x branch December 13, 2023 15:49
Copy link
Contributor Author

renovate bot commented Dec 13, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 4.x releases. But if you manually upgrade to 4.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-cli-help Area: built-in command-line help S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants