Skip to content

Releases: CloudyKit/jet

v5.0.2

15 Aug 09:44
Compare
Choose a tag to compare

Bugfix release: When calling variadic functions, the list of argument expressions was not correctly mapped to the variadic argument slice needed to call the function using reflection. See #171 for more information. Thanks, @alresvor!

v5.0.1

12 Aug 11:20
Compare
Choose a tag to compare

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.

v5.0.0

29 Jul 08:36
Compare
Choose a tag to compare

With version 5, Jet gets Go-like discard syntax (_ := stillRuns(), #168) and allows you to specify the argument slot of the piped value when pipelining (2 | repeat("foo", _), #169).

This means that _ is now a reserved symbol, as noted in v5's breaking changes: https://github.com/CloudyKit/jet/blob/master/docs/changes.md#v5.

v4.1.0

20 Jul 09:22
Compare
Choose a tag to compare

Allows concatenating string and []byte.

This is useful for using the return value of the built-in json() function, for example:

{{ "{foo:"+json("asd")+"}" }}

This would previously render as {foo:[34 97 115 100 34]} but will now render as {foo:"asd"}).

v4.0.2

14 Jul 14:13
Compare
Choose a tag to compare

Fixes absolute path detection on Windows.

v4.0.1

14 Jul 14:12
Compare
Choose a tag to compare

Allows using parentheses syntax for function calls in pipelines, for example "foo" | repeat(2) | upper is now valid, when only "foo" | repeat: 2 | upper would work previously.

v4.0.0

03 Jul 14:13
Compare
Choose a tag to compare

Version 4 brings a lot of bug fixes and improvements as well as updated documentation, but make sure to read through the breaking changes before making the jump.

Feel free to update and report any bugs (or undocumented breaking changes). I'm quite sure this release won't be perfect since there went a lot of work into it and the tests still leave a lot to be desired (and also because it's my first release).

Minor behind the scenes improvements

04 Nov 07:06
Compare
Choose a tag to compare

This release contains:

  • testing via TravisCI in the latest 2 Go versions (#69, #70)
  • aid in debugging when a template is included via the includeIfExists where the template is found but fails to render properly; the error is now bubbled up (#67) – thanks to @diogogmt

v2.1.1

10 May 22:31
Compare
Choose a tag to compare
Fix errors in the visitor, add an test/example in how to extract exte…

v2.1.0

01 May 22:36
Compare
Choose a tag to compare
Fixes #58