bazel-contrib / rules_jsonnet

Jsonnet rules for Bazel
https://bazelbuild.github.io/rules_jsonnet/
Apache License 2.0
68 stars 73 forks source link

Update dependency jsonnet to v0.20.0 #203

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 1 month ago

This PR contains the following updates:

Package Type Update Change
jsonnet http_archive minor v0.18.0 -> v0.20.0

Release Notes

google/jsonnet (jsonnet) ### [`v0.20.0`](https://redirect.github.com/google/jsonnet/releases/tag/v0.20.0) [Compare Source](https://redirect.github.com/google/jsonnet/compare/v0.19.1...v0.20.0) #### Bug fix This release has a bug fix for `std.member` on strings ([https://github.com/google/go-jsonnet/issues/656](https://redirect.github.com/google/go-jsonnet/issues/656)) #### Standard library additions - `std.escapeStringXML` - `std.sum` - `std.xor` - `std.xnor` - `std.isEmpty` - `std.round` - `std.objectKeysValues` (convert an object to a list of pairs) - `std.objectKeysValuesAll` #### jsonnet-go specific updates: jsonnet-deps and jsonnet-lint are now included in releases ### [`v0.19.1`](https://redirect.github.com/google/jsonnet/releases/tag/v0.19.1) [Compare Source](https://redirect.github.com/google/jsonnet/compare/v0.19.0...v0.19.1) The previous v0.19.0 release had a small change in the C bindings to allow `importbin` to function, but missing from the release notes was mention of the fact that the Python bindings had also changed in a similar way - to require the content of the file to be provided as a `bytes` type instead of a `str`. To convert from `str` to `bytes`, simply call `.encode()` on the `str`. In order to write Python code that works for both Jsonnet versions, the Jsonnet version is now provided as a field of the \_jsonnet module, which allows writing code like the following: import _jsonnet import semver import_returns_bytes = semver.compare(getattr(_jsonnet, 'version', 'v0.18.0')[1:], '0.18.0') > 0 def no_nl_eof(directory, rel): if import_returns_bytes: return "foo.jsonnet", b"42" else: return "foo.jsonnet", "42" _jsonnet.evaluate_snippet("test.jsonnet", "{\nlocal foo = import 'foo.jsonnet',\n \n 'bar': foo\n }\n", import_callback=no_nl_eof) This release also fixes an off-by-one truncation error in the import callback logic of the Python bindings introduced in the previous release. This was only noticeable if the imported file had no trailing \n, or if you were using `importbin` with a Python import callback. ### [`v0.19.0`](https://redirect.github.com/google/jsonnet/releases/tag/v0.19.0) [Compare Source](https://redirect.github.com/google/jsonnet/compare/v0.18.0...v0.19.0) ### Language - importbin feature for loading binary files ### Tooling - In order to support importbin, it was necessary to change the C API for import callbacks so that they can return arbitrary binary blobs (that can contain \0) as opposed to just strings. This change is not binary compatible with previous versions of libjsonnet. If you build against libjsonnet.h and you use import callbacks then you will have to make a small adjustment to your code. - The emscripten build rules are now gone. - Fixed memory leak in libjsonnet++.cpp - Fixed lack of jsonnet_realloc in Go C bindings - There are many more native implementations of library functions on the Go side, resulting in better performance for Jsonnet code calling those library functions. ### Standard library - std.all - std.any - std.split and std.splitLimit support multi-character split strings - std.splitLimitR

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR was generated by Mend Renovate. View the repository job log.

EdSchouten commented 1 month ago

This only pertains to WORKSPACE. I'm not going to touch anything there, as I think we should simply remove support for WORKSPACE altogether soon.

renovate[bot] commented 1 month ago

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (v0.20.0). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.