A semver major release that introduces some API breaking changes.
Highlights
RenderError has been rewritten for typed error reason. In previous versions we use string message for RenderError which is impossible to handle with code. This version introduces RenderErrorReason so you can use match to deal various error reasons.
Lifetime in Helper trait has been simplified.
Changes compared to 4.3
[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
Collaboration Wanted
I'm looking for collaborations to join the development with me on this project. Contact via email if your are interested in.
[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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps handlebars from 4.5.0 to 5.0.0.
Release notes
Sourced from handlebars's releases.
... (truncated)
Changelog
Sourced from handlebars's changelog.
... (truncated)
Commits
4664a34
(cargo-release) version 5.0.0ca27748
Merge pull request #625 from sunng87/refactor/render-error-reason-20ad8171
refactor: rename casue to reason in RenderError4cf48a9
refactor: remove option on RenderErrorReasonb7fabb4
test: update tests for accessing to reason9c14b32
refactor: resolve lint issue on error sized06e071
refactor: improve access to nested error in RenderError0d30e2d
refactor: move more errors types into RenderErrorReason58a32b6
test: add test case for trimming9d7d555
refactor: throw error on invalid input for string helperDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show