Skip to content

Releases: sunng87/handlebars-rust

v6.2.0

04 Nov 08:57
v6.2.0
5e35c76
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.1.0...v6.2.0

v6.1.0

11 Sep 16:07
8ba3eff
Compare
Choose a tag to compare

What's Changed

  • docs: fix code examples formatting by @mrnossiom in #668
  • chore(deps-dev): bump webpack from 5.76.0 to 5.94.0 in /playground/www by @dependabot in #671
  • implement floating point and string comparisons by @lovasoa in #673

New Contributors

Full Changelog: v6.0.0...v6.1.0

v6.0.0

20 Jul 05:37
a4b978e
Compare
Choose a tag to compare

What's Changed

See manually crafted changelog here: https://github.com/sunng87/handlebars-rust/blob/master/CHANGELOG.md#600---2024-07-20

New Contributors

Full Changelog: v5.1.2...v6.0.0

v5.1.0

18 Jan 13:34
d8d9a78
Compare
Choose a tag to compare

What's Changed

  • chore(deps-dev): bump follow-redirects from 1.15.2 to 1.15.4 in /playground/www by @dependabot in #628
  • Add chained else expression support by @progmboy in #629

New Contributors

Full Changelog: v5.0.0...v5.1.0

v5.0.0

31 Dec 14:13
4664a34
Compare
Choose a tag to compare

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 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.

Auto-generated changelog

  • chore(deps): update criterion requirement from 0.3 to 0.4 by @dependabot in #530
  • issue 529: simplify lifetime requirements by @lovasoa in #532
  • Allow public access to local variables by @lovasoa in #533
  • Fix issue when using partial context within each block by @sunng87 in #536
  • chore(deps): update tiny_http requirement from 0.11 to 0.12 by @dependabot in #538
  • fix: enable include-exclude feature for rust-embed by @sunng87 in #542
  • Fix looking up provided null value in strict mode by @sunng87 in #543
  • chore(deps): update pprof requirement from 0.10 to 0.11 by @dependabot in #544
  • Able to get the missing variable path from error by @linw1995 in #546
  • chore(deps): update env_logger requirement from 0.9 to 0.10 by @dependabot in #547
  • fix: loading templates which has multiple extensions by @sunng87 in #551
  • Web playground by @sunng87 in #548
  • chore(deps): bump loader-utils from 1.2.3 to 1.4.2 in /playground/www by @dependabot in #553
  • chore(deps): bump y18n from 4.0.0 to 4.0.3 in /playground/www by @dependabot in #555
  • chore(deps): bump kind-of from 6.0.2 to 6.0.3 in /playground/www by @dependabot in #554
  • chore(deps): bump ssri from 6.0.1 to 6.0.2 in /playground/www by @dependabot in #558
  • chore(deps): bump json5 from 1.0.1 to 1.0.2 in /playground/www by @dependabot in #560
  • chore(deps): bump serialize-javascript from 2.1.2 to 6.0.0 in /playground/www by @dependabot in #556
  • chore(deps-dev): bump webpack from 5.75.0 to 5.76.0 in /playground/www by @dependabot in #568
  • feat: raise an render error when partial not found by @sunng87 in #571
  • fix: use std::result::Result instead of Result in handlebar_helper!() macro by @meuter in #578
  • Fix parameter passing for single-quoted string literals by @nickvollmar in #577
  • Refactor more RenderError into RenderErrorReason by @sunng87 in #581
  • chore(deps): update criterion requirement from 0.4 to 0.5 by @dependabot in #584
  • Render arrays without trailing commas by @aromeronavia in #588
  • fix issue #589 to make the quick-start example complete by @szabgab in #590
  • chore(deps): update pprof requirement from 0.11 to 0.12 by @dependabot in #591
  • Added TemplateErrorReason to exported types by @Julian-Alberts in #594
  • Added dev mode and extension filter for RustEmbed by @qxuken in #596
  • chore(deps): update rust-embed requirement from 6.3.0 to 8.0.0 by @dependabot in #599
  • Add hidden flag to control when hidden files are ignored by @yhakbar in #601
  • fix: expose directory source options by @sunng87 in #603
  • chore: update rhai to 1.16.1 and set msrv to 1.66 by @sunng87 in #605
  • fix: public access to DirectorySourceOptions by @sunng87 in #607
  • Improve recursive call macros hygiene by @FirelightFlagboy in #609
  • Re-export JsonTruthy by @Dosenpfand in #610
  • chore(deps): update pprof requirement from 0.12 to 0.13 by @dependabot in #612
  • Support for case conversion helpers. by @gabhijit in #619
  • refactor: improve RenderError and RenderErrorReason for 5.0 branch by @sunng87 in #625

New Contributors

Full Changelog: v4.5.0...v5.0.0

v4.3.7

11 May 03:07
v4.3.7
950a3bf
Compare
Choose a tag to compare

4.3.7 - 2023-05-11

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

v4.3.6

31 Dec 06:23
v4.3.6
0470ce7
Compare
Choose a tag to compare

[Fixed] Loading template files with multiple extensions, a bug introduced in 4.3.0 when refactoring directory source.

v4.3.0

18 May 03:17
v4.3.0
74cf5a2
Compare
Choose a tag to compare

Changes included in 4.3.0 release:

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

Caution that the partial indent fix will make handlebars 4.3 behaviour different with 4.2 when there is indent with {{> partial}} statement.

v4.2.1

03 Feb 05:20
v4.2.1
60351d3
Compare
Choose a tag to compare

Fixed

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

v4.2.0

06 Jan 02:27
d597c59
Compare
Choose a tag to compare

Added

  • RustEmbed support for loading templates from [#484]

Fixed

  • Parser support for variables begins with digit [#479]
  • Typo in Debug impl of Handlebars [#485 ]

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]
  • Update MSRV to 1.51 due to dependency changes