chore(deps): update dependency jq to v1.7 #363
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.6
->1.7
Release Notes
stedolan/jq (jq)
v1.7
: jq 1.7Compare Source
After a five year hiatus we're back with a GitHub organization, with new admins and new maintainers who have brought a great deal of energy to make a long-awaited and long-needed new release. We're very grateful for all the new owners, admins, and maintainers. Special thanks go to Owen Ou (@owenthereal) for pushing to set up a new GitHub organization for jq, Stephen Dolan (@stedolan) for transferring the jq repository to the new organization, @itchyny for doing a great deal of work to get the release done, Mattias Wadman (@wader) and Emanuele Torre (@emanuele6) for many PRs and code reviews. Many others also contributed PRs, issues, and code reviews as well, and you can find their contributions in the Git log and on the closed issues and PRs page.
What's Changed
Since the last stable release many things have happened:
amd64
,arm64
,armel
,armhf
,i386
,mips
,mips64
,mips64el
,mips64r6
,mips64r6el
,mipsel
,mipsr6
,mipsr6el
,powerpc
,ppc64el
,riscv64
ands390x
amd64
andarm64
i386
andamd64
linux/386
,linux/amd64
,linux/arm64
,linux/mips64le
,linux/ppc64le
,linux/riscv64
andlinux/s390x
ghcr.io/jqlang/jq
instead of Docker Hub. @itchyny #2652 #2686Full commit log can be found at jqlang/jq@jq-1.6...jq-1.7 but here are some highlights:
CLI changes
Make object key color configurable using
JQ_COLORS
environment variable. @itchyny @haguenau @ericpruitt #2703this would make "field" bold yellow (
1;33
, the last value)$ JQ_COLORS="0;90:0;37:0;37:0;37:0;32:1;37:1;37:1;33" ./jq -n '{field: 123}'
{
"field": 123
}
Add
--binary
/-b
on Windows for binary output. To get\n
instead of\r\n
line endings. @nicowilliams0dab2b1
Add
--raw-output0
for NUL (zero byte) separated output. @asottile @pabs3 @itchyny #1990 #2235 #2684will output a zero byte after each output
$ jq -n --raw-output0 '1,2,3' | xxd
0000000
: 3100 3200 3300 1.2.3.can be used with xargs -0
$ jq -n --raw-output0 '"a","b","c"' | xargs -0 -n1
a
b
c
$ jq -n --raw-output0 '"a b c", "d\ne\nf"' | xargs -0 printf '[%s]\n'
[a b c]
[d
e
f]
can be used with read -d ''
$ while IFS= read -r -d '' json; do
also it's an error to output a string containing a NUL when using NUL separator
$ jq -n --raw-output0 '"\u0000"'
jq: error (at ): Cannot dump a string containing NUL with --raw-output0 option
Adds new builtin
pick(stream)
to emit a projection of the input object or array. @pkoppstein #2656 #2779Adds new builtin
debug(msgs)
that works likedebug
but applies a filter on the input before writing to stderr. @pkoppstein #2710Adds new builtin
scan($re; $flags)
. Was documented but not implemented. @itchyny #1961look for pattern "ab" in "abAB" ignoring casing
$ jq -n '"abAB" | scan("ab"; "i")'
"ab"
"AB"
Allow use of
$binding
as key in object literals. @nicowilliams8ea4a55
previously parentheses were needed
$ jq -n '"a" as $key | {($key): 123}'
{
"a": 123
}
Allow dot for chained value iterator
.[]
,.[]?
@wader #2650$ jq -n '{"a": [123]} | .a[]' 123
now this also works
$ jq -n '{"a": [123]} | .a.[]'
123
nan
as NaN in JSON. @emanuele6 #2712modulemeta
. @mrwilson #2837contains/1
to handle strings with NUL. @nicowilliams61cd6db
stderr/0
to output raw text without any decoration. @itchyny #2751nth/2
to emit empty on index out of range. @itchyny #2674implode
to not assert and instead replace invalid unicode codepoints. @wader #2646indices/1
andrindex/1
in case of overlapping matches in strings. @emanuele6 #2718sub/3
to resolve issues involving global search-and-replace (gsub) operations. @pkoppstein #2641significand/0
,gamma/0
anddrem/2
to be available on macOS. @itchyny #2756 #2775error/0
,error/1
to throw null error. @emanuele6 #2823transpose
. @pkoppstein #2758walk/1
. @pkoppstein #2795leaf_paths
,recurse_down
. @itchyny #2666Full Changelog: jqlang/jq@jq-1.7rc2...jq-1.7
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 has been generated by Mend Renovate. View repository job log here.