Bump github.com/itchyny/gojq from 0.12.6 to 0.12.11
Bumps github.com/itchyny/gojq from 0.12.6 to 0.12.11.
Release notes
Sourced from github.com/itchyny/gojq's releases.
Release v0.12.11
- fix crash on the assignment operator (
=
) with multiple values (. = (0,0)
)- fix
isnormal
andnormals
functions against subnormal numbersRelease v0.12.10
- fix
break
intry
-catch
query (label $x | try break $x catch .
)- fix path value validation for
getpath
function (path(getpath([[0]][0]))
)- fix path value validation for custom iterator functions
- fix
walk
function with argument emitting multiple values ([1],{x:1} | walk(.,0)
)- fix
@csv
,@tsv
,@sh
to escape the null character (["\u0000"] | @csv,@tsv,@sh
)- improve performance of assignment operator (
=
), update-assignment operator (|=
),map_values
,del
,delpaths
,walk
,ascii_downcase
, andascii_upcase
functionsRelease v0.12.9
- fix
fromjson
to emit error on unexpected trailing string- fix path analyzer on variable argument evaluation (
def f($x): .y; path(f(.x))
)- fix raw input option
--raw-input
(-R
) to keep carriage returns and support 64KiB+ linesRelease v0.12.8
- implement
gojq.Compare
for comparing values in custom internal functions- implement
gojq.TypeOf
for obtaining type name of values in custom internal functions- implement
gojq.Preview
for previewing values for error messages of custom internal functions- fix query lexer to parse string literals as JSON to support surrogate pairs (
"\ud83d\ude04"
)- fix priority bug of declared and builtin functions (
def empty: .; null | select(.)
)- fix string indexing by index out of bounds to emit
null
("abc" | .[3]
)- fix array binding pattern not to match against strings (
"abc" as [$a] ?// $a | $a
)- fix
sub
andgsub
functions to emit results in the same order of jq- fix
fromjson
to keep integer precision ("10000000000000000" | fromjson + 1
)- fix stream option to raise error against incomplete JSON input
- improve array updating index and string repetition to increase limitations
- improve
mktime
to support nanoseconds, just likegmtime
andnow
- improve query lexer to report unterminated string literals
- improve performance of string indexing and slicing by reducing allocations
- improve performance of object and array indexing, slicing, and iteration, by validating path values by comparing data addresses. This change improves jq compatibility of path value validation (
{} | {}.x = 0
,[0] | [.[]][] = 1
). Also optimize constant indexing and slicing by specialized instruction- improve performance of
add
(on array of strings),flatten
,min
,max
,sort
,unique
,join
,to_entries
,from_entries
,indices
,index
,rindex
,startswith
,endswith
,ltrimstr
,rtrimstr
,explode
,capture
,sub
, andgsub
functionsRelease v0.12.7
- fix precedence of try expression against operators (
try 0 * error(0)
)- fix iterator suffix with optional operator (
0 | .x[]?
)- fix stream option with slurp option or
input
,inputs
functions- fix the command flag parser to support equal sign in short options with argument
- fix string conversion of query including empty strings in module and import metadata
- improve performance of
isempty
function
Changelog
Sourced from github.com/itchyny/gojq's changelog.
v0.12.11 (2022-12-24)
- fix crash on assignment operators (
=
) with multiple values (. = (0,0)
)- fix
isnormal
andnormals
functions against subnormal numbersv0.12.10 (2022-12-01)
- fix
break
intry
-catch
query (label $x | try break $x catch .
)- fix path value validation for
getpath
function (path(getpath([[0]][0]))
)- fix path value validation for custom iterator functions
- fix
walk
function with argument emitting multiple values ([1],{x:1} | walk(.,0)
)- fix
@csv
,@tsv
,@sh
to escape the null character (["\u0000"] | @csv,@tsv,@sh
)- improve performance of assignment operator (
=
), update-assignment operator (|=
),map_values
,del
,delpaths
,walk
,ascii_downcase
, andascii_upcase
functionsv0.12.9 (2022-09-01)
- fix
fromjson
to emit error on unexpected trailing string- fix path analyzer on variable argument evaluation (
def f($x): .y; path(f(.x))
)- fix raw input option
--raw-input
(-R
) to keep carriage returns and support 64KiB+ linesv0.12.8 (2022-06-01)
- implement
gojq.Compare
for comparing values in custom internal functions- implement
gojq.TypeOf
for obtaining type name of values in custom internal functions- implement
gojq.Preview
for previewing values for error messages of custom internal functions- fix query lexer to parse string literals as JSON to support surrogate pairs (
"\ud83d\ude04"
)- fix priority bug of declared and builtin functions (
def empty: .; null | select(.)
)- fix string indexing by index out of bounds to emit
null
("abc" | .[3]
)- fix array binding pattern not to match against strings (
"abc" as [$a] ?// $a | $a
)- fix
sub
andgsub
functions to emit results in the same order of jq- fix
fromjson
to keep integer precision ("10000000000000000" | fromjson + 1
)- fix stream option to raise error against incomplete JSON input
- improve array updating index and string repetition to increase limitations
- improve
mktime
to support nanoseconds, just likegmtime
andnow
- improve query lexer to report unterminated string literals
- improve performance of string indexing and slicing by reducing allocations
- improve performance of object and array indexing, slicing, and iteration, by validating path values by comparing data addresses. This change improves jq compatibility of path value validation (
{} | {}.x = 0
,[0] | [.[]][] = 1
). Also optimize constant indexing and slicing by specialized instruction- improve performance of
add
(on array of strings),flatten
,min
,max
,sort
,unique
,join
,to_entries
,from_entries
,indices
,index
,rindex
,startswith
,endswith
,ltrimstr
,rtrimstr
,explode
,capture
,sub
, andgsub
functionsv0.12.7 (2022-03-01)
- fix precedence of try expression against operators (
try 0 * error(0)
)- fix iterator suffix with optional operator (
0 | .x[]?
)- fix stream option with slurp option or
input
,inputs
functions- fix the command flag parser to support equal sign in short options with argument
- fix string conversion of query including empty strings in module and import metadata
- improve performance of
isempty
function
Commits
-
584107c
bump up version to 0.12.11 -
720bf54
update CHANGELOG.md for v0.12.11 -
e4b9b6a
fix crash on assignment operators with multiple values -
afc4c6c
fix isnormal and normals functions against subnormal numbers -
c1a3ebd
bump up version to 0.12.10 -
5294c9e
update CHANGELOG.md for v0.12.10 -
319a797
update dependencies -
20ca575
add notes on precedence of unary operators against variable binding -
62ffdf7
fix break in try catch syntax -
35c123b
improve the order of test cases - Additional commits viewable in compare view