Releases: CloudyKit/jet
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.
v5.0.0
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
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
Fixes absolute path detection on Windows.
v4.0.1
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
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).