Releases: CloudyKit/jet
v6.2.0
This release
- fixes a panic occurring when ranging over a channel or other custom rangers without setting the value to variable (#200)
- speeds up accessing struct fields and eliminates allocations for many uses of resolveIndex() (#201)
- improves the performance of intsRanger by eliminating allocations (#202)
As a result, it's now possible to execute templates with guaranteed zero memory allocations (during execution) by using a combination of int and custom rangers and either simple field access or custom renderers.
Thank you, @matheusd for submitting these PRs!
Full Changelog: v6.1.0...v6.1.1
v6.1.0
Added dump()
built-in function for development/debugging: https://github.com/CloudyKit/jet/blob/master/docs/builtins.md#dump
Thanks @jan-herout for contributing this! (#189)
v6.0.2
v6.0.1
v6.0.0
Version 6 brings Go API improvements, mainly from #182 and #183. Take a look at the breaking changes documentation for a detailed overview. There are no changes to the template language.
v5.1.0
v5.0.3
v3.0.1
v5.0.2
v5.0.1
Bugfix release: When using discard syntax in a simple "let" assignment, i.e. one where the right side does not return an optional second value like a map lookup for example, the right side wasn't evaluated. For example, these all worked as expected and the right side was evaluated:
_ := myMap["foo"]
_ = myMap["foo"]
_, ok := myMap["foo"]
_, ok = myMap["foo"]
_ = foo()
But this did not actually execute foo()
:
_ := foo()
f67efbc fixes this case and is the only commit in v5.0.1 that isn't in v5.0.0.