What's Changed
-
Language changes, new features, etc
- Bitwise operation arguments are now limited to the "safe-integer" range (#1217, #1240)
- Numbers in Jsonnet code can now be written with underscore used to separate groups of digits (e.g.,
1_500_000) (#1160) - New function
std.isNull(#1237) - RapidYAML updated to v0.10.0
- Man pages are built automatically from the CLI
--helpoutput (#1206) - The
jsonnetfmtCLI now prints the names of any input files that are changed or not cleanly formatted, when running in--testor--in-placemodes (#1303) - The
jsonnetCLI now knows a 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 Jsonnet API (see doc comments inlibjsonnet.h,libjsonnet++.h) (#1283)
-
Bug fixes:
- Function
std.objectRemoveKeyhas been re-implemented to fix several bugs and unexpected behaviours (#1269) - Parser now has an explicit recursion depth limit.
- Shift operations (
<<,>>) implementation now avoids undefined behaviour. - Multiple bugs in
std.parseYamlhave been fixed (#1148, #1292, #1293) - Built-in functions now correctly respect named arguments (#385, #1299)
- Built-in functions can now be passed to
std.makeArray(if they are type-compatible) (#511, #1299) std.flatMapnow has better type checking of its arguments (#1226)
- Function
-
Build systems, testing, CI, internal:
- CMake build configuration has been largely rewritten. It requires CMake 3.15 or greater.
- The plain Makefile build has also be somewhat rewritten.
- Bazel WORKSPACE config has been removed; bzlmod support is now required.
- Publishing website updates is now easier, with a GitHub Actions workflow to rebuild the site whenever master is updated.
- Pre-built Python binary wheels now use the Python Limited API and produce
abi3compatible wheels, improving compatibility with new Python versions (#1289)
Full commit history: v0.21.0...v0.22.0-rc1
New Contributors
- @kirisky made their first contribution in #1263
- @benjaminp made their first contribution in #1260
- @kalvdans made their first contribution in #1252
- @melosa11 made their first contribution in #1258
- @seizethedave made their first contribution in #1160
- @shrred26 made their first contribution in #1237
- @garyg1 made their first contribution in #1255
- @He-Pin made their first contribution in #1241
- @simonff made their first contribution in #1261
- @04cb made their first contribution in #1297
Full Changelog: v0.21.0...v0.22.0-rc1