Releases: itchyny/gojq
Releases · itchyny/gojq
Release v0.11.0
- improve parsing performance significantly
- rewrite the parser from
participlelibrary togoyaccgenerated parser - reduce executable size (about -24%)
- release to itchyny/gojq - Docker Hub
- support string interpolation for object pattern key
Release v0.10.4
- implement variable in object key (
. as $x | { $x: 1 }) - fix modify operator (
|=) withtrycatchexpression - fix optional operator (
?) with alternative operator (//) inmap_valuesfunction - fix normalizing numeric types for library users
- export
gojq.NewModuleLoaderfunction for library users
Release v0.10.3
- implement
add,unique_by,max_by,min_by,reverseby internal functions for performance and reducing the binary size - improve performance of
setpath,delpathsfunctions - fix assignment against nested slicing (
[1,2,3] | .[1:][:1] = [5]) - limit the array index of assignment operator
- optimize constant arrays and objects
Release v0.10.2
- implement
sort_by,group_by,bsearchby internal functions for performance and reducing the binary size - fix object construction and constant object to allow trailing commas
- fix
tonumberfunction to allow leading zeros - minify the builtin functions to reduce the binary size
Release v0.10.1
- fix array addition not to modify the left hand side
Release v0.10.0
- implement various functions (
format,significand,modulemeta,halt_error) - implement
input,inputsfunctions - implement stream option (
--stream) - implement slicing with object (
.[{"start": 1, "end": 2}]) - implement
NO_COLORenvironment variable support - implement
nuloutput option (-0,--nul-output) - implement exit status option (
-e,--exit-status) - implement
searchfield of module meta object - implement combination of
--yaml-inputand--slurp - improve string token lexer and support nested string interpolation
- improve the exit code for jq compatibility
- improve default module search paths for jq compatibility
- improve documentation for the usage as a library
- change methods of
ModuleLoaderoptional, implementLoadModuleWithMetaandLoadJSONWithMeta - fix number normalization for JSON arguments (
--argjson,--slurpfile) - fix
0/0andinfinite/infinite - fix
errorfunction againstnull
Release v0.9.0
- implement various functions (
infinite,isfinite,isinfinite,finites,isnormal,normals) - implement environment variables loader as a compiler option
- implement
$NAME::NAMEsyntax for imported JSON variable - fix modify operator with empty against array (
[range(9)] | (.[] | select(. % 2 > 0)) |= empty) - fix variable and function scopes (
{ x: 1 } | . as $x | (.x as $x | $x) | ., $x) - fix path analyzer
- fix type check in
startswithandendswith - ignore type error of
ltrimstrandrtrimstr - remove nano seconds from
mktimeoutput - trim newline at the end of error messages
- improve documents and examples
Release v0.8.0
- implement format strings (
@text,@json,@html,@uri,@csv,@tsv,@sh,@base64,@base64d) - implement modules feature (
-Loption for directory to search modules from) - implement options for binding variables from arguments (
--arg,--argjson) - implement options for binding variables from files (
--slurpfile,--rawfile) - implement an option for indentation count (
--indent) - fix
isnanfornull - fix path analyzer
- fix error after optional operator (
1? | .x) - add
$ENVvariable - add zsh completion file
Release v0.7.0
v0.6.0
- implement arbitrary-precision integer calculation
- implement various functions (
repeat,pow10,nan,isnan,nearbyint,halt,INDEX,JOIN,IN) - implement long options (
--compact-output,--raw-output, etc.) - implement join output options (
-j,--join-output) - implement color/monochrome output options (
-C,--color-output,-M,--monochrome-output) - refactor builtin functions