Skip to content

v5.0.0

Compare
Choose a tag to compare
@sunng87 sunng87 released this 31 Dec 14:13
· 33 commits to master since this release
4664a34

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