The Python module can be found at https://pypi.org/project/gojsonnet/0.22.0/
What's Changed (since v0.21.0)
- Updates since Release Candidate 1
- Apply nesting depth limit when manifesting objects to TOML, YAML, or JSON (#866)
-
Publish pre-built Python wheels (binary packages) for Linux aarch64 (ARM) (#865)
-
Possibly breaking changes
- Required Go version is increased to 1.24 (https://go.dev/doc/devel/release#go1.24.0) (#850)
- When evaluating in
--multi--stringmode, output files now have an extra (trailing) newline added. If you do not want this, you can use--no-trailing-newline. (#819, [#843]) - Output files in
--multimode are restricted to the specified output directory (and subdirectories) -
Pre-built binary archive names have changed (#848, [#814])
-
Language changes, new features, etc
- Numbers in Jsonnet code can now be written with underscore used to separate groups of digits (e.g.,
1_500_000) (#760) - New function
std.isNull(#806) - Bitwise operation arguments are now limited to the "safe-integer" range (https://github.com/google/go-jsonnet/pull/859)
jsonnetCLI: New flag--no-trailing-newline- this disables the final newline that is normally included in the output of any Jsonnet evaluation. This option is also added to the API (#819, [#843])jsonnetfmtCLI: Names of unclean files are printed to stdout when using--testor--in-placemode (#863)- API:
FindDependenciescan now optionally follow symlinks (#730) -
Restrict file writes to the specified output directory for --multi (https://github.com/google/go-jsonnet/pull/850)
-
Bug fixes
- The index expression of a
super[e]access (#849) - Function
std.objectRemoveKeyhas been re-implemented to fix several bugs and unexpected behaviours (#837) - Missing trailing newline when using both --multi and --string options (https://github.com/google/go-jsonnet/pull/819)
- Fix implicit-to-explicit-plus conversion in jsonnetfmt (https://github.com/google/go-jsonnet/pull/853)
- Improve handling of YAML document streams in std.parseYaml (https://github.com/google/go-jsonnet/pull/862)
- Unchecked error in std.manifestYamlDoc(). (https://github.com/google/go-jsonnet/pull/800)
- Cache the error too in importAST(). (https://github.com/google/go-jsonnet/pull/823)
- Do not mutate std.removeAt parameters (https://github.com/google/go-jsonnet/pull/812)
- Handle negative range by returning an empty array (https://github.com/google/go-jsonnet/pull/839)
- Return null if parseYaml does not yield any result (https://github.com/google/go-jsonnet/pull/841)
- Linter: Support std.clamp function (https://github.com/google/go-jsonnet/pull/840)
- Linter: add optional parameters to std.manifestJsonEx in (https://github.com/google/go-jsonnet/pull/842)
-
Linter: Optimize runtime complexity when passing in multiple snippets (https://github.com/google/go-jsonnet/pull/725)
-
Build systems, testing, CI, internal
- chore: fix bazel example by @y1hao in https://github.com/google/go-jsonnet/pull/820
- Make CI build the bazel example with multiple Bazel versions (https://github.com/google/go-jsonnet/pull/832)
- Remove Go Releaser archive naming overrides (https://github.com/google/go-jsonnet/pull/848)
Full commit history: https://github.com/google/go-jsonnet/compare/v0.21.0...v0.22.0
New Contributors
- @y1hao made their first contribution in https://github.com/google/go-jsonnet/pull/820
- @shrred26 made their first contribution in https://github.com/google/go-jsonnet/pull/806
- @hofbi made their first contribution in https://github.com/google/go-jsonnet/pull/815
- @seizethedave made their first contribution in https://github.com/google/go-jsonnet/pull/760
- @zarelit made their first contribution in https://github.com/google/go-jsonnet/pull/812
- @thequailman made their first contribution in https://github.com/google/go-jsonnet/pull/730
- @Sam-C made their first contribution in https://github.com/google/go-jsonnet/pull/819
- @He-Pin made their first contribution in https://github.com/google/go-jsonnet/pull/855
- @simu made their first contribution in https://github.com/google/go-jsonnet/pull/865
- @Flo354 made their first contribution in https://github.com/google/go-jsonnet/pull/866