github google/go-jsonnet v0.22.0-rc1

pre-release7 hours ago

What's Changed

  • 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 --string mode, 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 --multi mode 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 (#859)
    • jsonnet CLI: 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)
    • jsonnetfmt CLI: Names of unclean files are printed to stdout when using --test or --in-place mode (#863)
    • API: FindDependencies can now optionally follow symlinks (#730)
    • Restrict file writes to the specified output directory for --multi (#850)
  • Bug fixes

    • The index expression of a super[e] access (#849)
    • Function std.objectRemoveKey has been re-implemented to fix several bugs and unexpected behaviours (#837)
    • Missing trailing newline when using both --multi and --string options (#819)
    • Fix implicit-to-explicit-plus conversion in jsonnetfmt (#853)
    • Improve handling of YAML document streams in std.parseYaml (#862)
    • Unchecked error in std.manifestYamlDoc(). (#800)
    • Cache the error too in importAST(). (#823)
    • Do not mutate std.removeAt parameters (#812)
    • Handle negative range by returning an empty array (#839)
    • Return null if parseYaml does not yield any result (#841)
    • Linter: Support std.clamp function (#840)
    • Linter: add optional parameters to std.manifestJsonEx in (#842)
    • Linter: Optimize runtime complexity when passing in multiple snippets (#725)
  • Build systems, testing, CI, internal

    • chore: fix bazel example by @y1hao in #820
    • Make CI build the bazel example with multiple Bazel versions (#832)
    • Remove Go Releaser archive naming overrides (#848)

Full commit history: v0.21.0...v0.22.0-rc1

New Contributors


The Python module is published at https://pypi.org/project/gojsonnet/0.22.0rc1/

Don't miss a new go-jsonnet release

NewReleases is sending notifications on new releases.