- Update to v0.12.18
* Implement `trimstr/1`, `toboolean/0` function
* Fix `last/1` to be included in builtins/0
* Fix `--indent 0` to preserve newlines
* Fix string repetition to emit error when the result is too large
* Increase the array index limit to 536870912 (`2^29`)
* Stop numeric normalization for concurrent execution
* Support binding expressions with binary operators (`1 + 2 as $x | -$x`)
* Improve `gojq.NewIter` to be a generic function
* Improve logic for getting file contents on JSON parse error
* Improve JSON parsing to preserve the precision of floating-point numbers
* Improve YAML parsing performance and preserve the precision of large integers
* Improve performance and reduce memory allocation of long-running queries
OBS-URL: https://build.opensuse.org/request/show/1320791
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=8
* Implement `trimstr/1`, `toboolean/0` function
* Fix `last/1` to be included in builtins/0
* Fix `--indent 0` to preserve newlines
* Fix string repetition to emit error when the result is too large
* Increase the array index limit to 536870912 (`2^29`)
* Stop numeric normalization for concurrent execution
* Support binding expressions with binary operators (`1 + 2 as $x | -$x`)
* Improve `gojq.NewIter` to be a generic function
* Improve logic for getting file contents on JSON parse error
* Improve JSON parsing to preserve the precision of floating-point numbers
* Improve YAML parsing performance and preserve the precision of large integers
* Improve performance and reduce memory allocation of long-running queries
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=18
- Update to v0.12.17
* Implement `add/1`, `skip/2` functions.
* Implement `--library-path` option as the alias of `-L` option.
* Fix `reduce` syntax to emit results for each initial value.
* Fix `last/1` to yield no values when the argument yields no values.
* Fix `limit/2` to emit an error on negative count.
* Fix `@uri` and `@urid` formats not to convert space between plus sign.
* Fix resolving search paths of import statements in the query.
* Improve time functions to accept fewer element arrays.
OBS-URL: https://build.opensuse.org/request/show/1227621
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=7
* Implement `add/1`, `skip/2` functions.
* Implement `--library-path` option as the alias of `-L` option.
* Fix `reduce` syntax to emit results for each initial value.
* Fix `last/1` to yield no values when the argument yields no values.
* Fix `limit/2` to emit an error on negative count.
* Fix `@uri` and `@urid` formats not to convert space between plus sign.
* Fix resolving search paths of import statements in the query.
* Improve time functions to accept fewer element arrays.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=16
* Fix offset of query parsing error on multi-byte characters.
* Fix tests of `exp10` and `atan2` failing on some platforms.
* Fix `debug/1` to be available only when `debug/0` is defined.
* Improve parser to allow binary operators as object values.
* Improve compiler to emit error if query is missing.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=14
- Update to v0.12.15
* Implement `ltrim`, `rtrim`, and `trim` functions.
* Fix object construction with duplicate keys (`{x:0,y:1} | {a:.x,a:.y}`)
* Fix `halt` and `halt_error` functions to stop the command execution
immediately.
* Fix variable scope of binding syntax
(`"a" as $v | def f: $v; "b" as $v | f`).
* Fix pre-defined variables to be available in initial modules
(`$ARGS` in `~/.jq`).
* Fix `ltrimstr` and `rtrimstr` functions to emit error on non-string input.
* Fix `nearbyint` and `rint` functions to round ties to even.
* Improve parser to allow `reduce`, `foreach`, `if`, `try`-`catch` syntax
as object values.
* Remove `pow10` in favor of `exp10`, define `scalbn` and `scalbln`
by `ldexp`.
- Suppress rpmlint error statically-linked-binary.
- Fix rpmlint warning no-%check-section.
OBS-URL: https://build.opensuse.org/request/show/1163958
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=5
* Implement `ltrim`, `rtrim`, and `trim` functions.
* Fix object construction with duplicate keys (`{x:0,y:1} | {a:.x,a:.y}`)
* Fix `halt` and `halt_error` functions to stop the command execution
immediately.
* Fix variable scope of binding syntax
(`"a" as $v | def f: $v; "b" as $v | f`).
* Fix pre-defined variables to be available in initial modules
(`$ARGS` in `~/.jq`).
* Fix `ltrimstr` and `rtrimstr` functions to emit error on non-string input.
* Fix `nearbyint` and `rint` functions to round ties to even.
* Improve parser to allow `reduce`, `foreach`, `if`, `try`-`catch` syntax
as object values.
* Remove `pow10` in favor of `exp10`, define `scalbn` and `scalbln`
by `ldexp`.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=11
- Update to v0.12.14
* Implement `abs`, `pick` and `debug/1` functions.
* Implement `--raw-output0` option, and remove `--nul-output` (`-0`) option.
* Fix string multiplication by zero to emit an empty string.
* Fix zero divided by zero to emit an error, not `nan`.
* Fix modulo operator to emit `nan` if either side is `nan`.
* Fix `implode` function to emit replacement characters on
invalid code points.
* Fix `stderr` function to output strings in raw format.
* Fix `error` function to throw an error even for `null`.
* Fix `walk` function on multiple outputs arguments.
* Fix `--from-file` option to work with `--arg` and `--argjson` options.
* Improve query parser to support comment continuation with backslash.
* Improve `modulemeta` function to include defined function names in
the module.
* Improve search path of `import` and `include` directives to support
`$ORIGIN` expansion.
* Remove deprecated `leaf_paths` function.
OBS-URL: https://build.opensuse.org/request/show/1130335
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=4
* Implement `abs`, `pick` and `debug/1` functions.
* Implement `--raw-output0` option, and remove `--nul-output` (`-0`) option.
* Fix string multiplication by zero to emit an empty string.
* Fix zero divided by zero to emit an error, not `nan`.
* Fix modulo operator to emit `nan` if either side is `nan`.
* Fix `implode` function to emit replacement characters on
invalid code points.
* Fix `stderr` function to output strings in raw format.
* Fix `error` function to throw an error even for `null`.
* Fix `walk` function on multiple outputs arguments.
* Fix `--from-file` option to work with `--arg` and `--argjson` options.
* Improve query parser to support comment continuation with backslash.
* Improve `modulemeta` function to include defined function names in
the module.
* Improve search path of `import` and `include` directives to support
`$ORIGIN` expansion.
* Remove deprecated `leaf_paths` function.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=9