golang/go
### [`v1.19.3`](https://togithub.com/golang/go/compare/go1.19.2...go1.19.3)
[Compare Source](https://togithub.com/golang/go/compare/go1.19.2...go1.19.3)
google/jsonnet
### [`v0.19.1`](https://togithub.com/google/jsonnet/releases/tag/v0.19.1)
[Compare Source](https://togithub.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://togithub.com/google/jsonnet/releases/tag/v0.19.0)
[Compare Source](https://togithub.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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.19.2
->1.19.3
0.18.0
->v0.19.1
Release Notes
golang/go
### [`v1.19.3`](https://togithub.com/golang/go/compare/go1.19.2...go1.19.3) [Compare Source](https://togithub.com/golang/go/compare/go1.19.2...go1.19.3)google/jsonnet
### [`v0.19.1`](https://togithub.com/google/jsonnet/releases/tag/v0.19.1) [Compare Source](https://togithub.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://togithub.com/google/jsonnet/releases/tag/v0.19.0) [Compare Source](https://togithub.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.splitLimitRConfiguration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.