Releases: itchyny/gojq
Releases · itchyny/gojq
Release v0.11.0
- improve parsing performance significantly
- rewrite the parser from
participle
library togoyacc
generated 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 (
|=
) withtry
catch
expression - fix optional operator (
?
) with alternative operator (//
) inmap_values
function - fix normalizing numeric types for library users
- export
gojq.NewModuleLoader
function for library users
Release v0.10.3
- implement
add
,unique_by
,max_by
,min_by
,reverse
by internal functions for performance and reducing the binary size - improve performance of
setpath
,delpaths
functions - 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
,bsearch
by internal functions for performance and reducing the binary size - fix object construction and constant object to allow trailing commas
- fix
tonumber
function 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
,inputs
functions - implement stream option (
--stream
) - implement slicing with object (
.[{"start": 1, "end": 2}]
) - implement
NO_COLOR
environment variable support - implement
nul
output option (-0
,--nul-output
) - implement exit status option (
-e
,--exit-status
) - implement
search
field of module meta object - implement combination of
--yaml-input
and--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
ModuleLoader
optional, implementLoadModuleWithMeta
andLoadJSONWithMeta
- fix number normalization for JSON arguments (
--argjson
,--slurpfile
) - fix
0/0
andinfinite/infinite
- fix
error
function againstnull
Release v0.9.0
- implement various functions (
infinite
,isfinite
,isinfinite
,finites
,isnormal
,normals
) - implement environment variables loader as a compiler option
- implement
$NAME::NAME
syntax 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
startswith
andendswith
- ignore type error of
ltrimstr
andrtrimstr
- remove nano seconds from
mktime
output - 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 (
-L
option 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
isnan
fornull
- fix path analyzer
- fix error after optional operator (
1? | .x
) - add
$ENV
variable - 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