Sourced from handlebars's releases.
v5.1.0
What's Changed
- chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 in /playground/www by
@dependabot
in sunng87/handlebars-rust#628- Add chained else expression support by
@progmboy
in sunng87/handlebars-rust#629New Contributors
@progmboy
made their first contribution in sunng87/handlebars-rust#629Full Changelog: https://github.com/sunng87/handlebars-rust/compare/v5.0.0...v5.1.0
v5.0.0
5.0.0
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 forRenderError
which is impossible to handle with code. This version introducesRenderErrorReason
so you can usematch
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.
Auto-generated changelog
- chore(deps): update criterion requirement from 0.3 to 0.4 by
@dependabot
in sunng87/handlebars-rust#530- issue 529: simplify lifetime requirements by
@lovasoa
in sunng87/handlebars-rust#532- Allow public access to local variables by
@lovasoa
in sunng87/handlebars-rust#533- Fix issue when using partial context within each block by
@sunng87
in sunng87/handlebars-rust#536- chore(deps): update tiny_http requirement from 0.11 to 0.12 by
@dependabot
in sunng87/handlebars-rust#538- fix: enable include-exclude feature for rust-embed by
@sunng87
in sunng87/handlebars-rust#542- Fix looking up provided null value in strict mode by
@sunng87
in sunng87/handlebars-rust#543- chore(deps): update pprof requirement from 0.10 to 0.11 by
@dependabot
in sunng87/handlebars-rust#544- Able to get the missing variable path from error by
@linw1995
in sunng87/handlebars-rust#546- chore(deps): update env_logger requirement from 0.9 to 0.10 by
@dependabot
in sunng87/handlebars-rust#547- fix: loading templates which has multiple extensions by
@sunng87
in sunng87/handlebars-rust#551- Web playground by
@sunng87
in sunng87/handlebars-rust#548- chore(deps): bump loader-utils from 1.2.3 to 1.4.2 in /playground/www by
@dependabot
in sunng87/handlebars-rust#553
... (truncated)
Sourced from handlebars's changelog.
5.1.0 - 2024-01-17
- [Added] Chained
else if
block support #6295.0.0 - 2023-12-31
- [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
4.3.4 - 2022-09-11
- [Added] New
write_fmt
function forOutput
#522- [Added]
reason()
method forTemplateError
to access underlying reason, this replaces original direct.reason
access.- [Changed] Direct access to
TemplateError
'sreason
field is depreacted will be removed in future.4.3.3 - 2022-07-20
- [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
4.3.2 - 2022-07-14
- [Added] Render functions that reuse
Context
for customstd::io::Write
:render_with_context_to_write
andrender_template_with_context_to_write
4.3.1 - 2022-06-09
- [Added] Added support for
{{~{variable}~}}
syntax #5094.3.0 - 2022-05-18
- [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
... (truncated)
d8d9a78
chore: Release handlebars version 5.1.0137bce5
chore: minor cleanup for chained else support in #629e30d8ab
Merge pull request #629
from progmboy/else_chain8f16353
format code786d132
add else chain support23672e8
Merge pull request #628
from sunng87/dependabot/npm_and_yarn/playground/www/f...b849efd
chore(deps-dev): bump follow-redirects in /playground/www7071c9d
test: add test for error reason4664a34
(cargo-release) version 5.0.0ca27748
Merge pull request #625
from sunng87/refactor/render-error-reason-2