19 Commits

Author SHA256 Message Date
a88e28552a Accepting request 1320791 from utilities
- 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
2025-12-02 12:20:24 +00:00
Arnav Singh
2e7fc97100 - 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/package/show/utilities/gojq?expand=0&rev=18
2025-12-02 02:00:19 +00:00
f891941702 Accepting request 1227621 from utilities
- 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
2024-12-02 15:59:01 +00:00
Arnav Singh
ff901bf419 - 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/package/show/utilities/gojq?expand=0&rev=16
2024-12-01 17:27:33 +00:00
2282fed4d2 Accepting request 1178069 from utilities
- Update to v0.12.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/request/show/1178069
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=6
2024-06-03 15:42:45 +00:00
Arnav Singh
d1d0d219af - Update to v0.12.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
2024-06-01 15:49:45 +00:00
f969a10af9 Accepting request 1163958 from utilities
- 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
2024-04-02 14:43:19 +00:00
Arnav Singh
446cd1c999 - Suppress rpmlint error statically-linked-binary.
- Fix rpmlint warning no-%check-section.

OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=12
2024-04-01 16:35:05 +00:00
Arnav Singh
8cbc4be302 - 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`.

OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=11
2024-04-01 16:03:52 +00:00
38ca071e29 Accepting request 1130335 from utilities
- 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
2023-12-02 16:13:02 +00:00
Arnav Singh
c8bf743f55 - 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/package/show/utilities/gojq?expand=0&rev=9
2023-12-01 17:00:14 +00:00
04f5b1a6bc Accepting request 1090546 from utilities
- Update to v0.12.13
  * Implement `@urid` format string to decode URI values.
  * Fix some functions returning arrays to emit empty slices instead of nil.

- Update vendor tarball.

OBS-URL: https://build.opensuse.org/request/show/1090546
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=3
2023-06-03 22:13:06 +00:00
Arnav Singh
57cd107b20 - Update vendor tarball.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=7
2023-06-01 21:15:04 +00:00
Arnav Singh
bbae62a7f1 - Update to v0.12.13
* Implement `@urid` format string to decode URI values.
  * Fix some functions returning arrays to emit empty slices instead of nil.

OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=6
2023-06-01 21:08:47 +00:00
bf5aa83fb1 Accepting request 1087017 from utilities
- Restrict minumum golang version to the one listed in go.mod

- Disable -buildmode=pie on ppc64, and add some verbosity flags.

OBS-URL: https://build.opensuse.org/request/show/1087017
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=2
2023-05-14 14:31:50 +00:00
Arnav Singh
ec8a78c105 - Restrict minumum golang version to the one listed in go.mod
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=4
2023-05-13 20:12:45 +00:00
Arnav Singh
a1e84404e2 - Disable -buildmode=pie on ppc64, and add some verbosity flags.
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=3
2023-05-13 20:04:15 +00:00
154f924a30 Accepting request 1086681 from utilities
Add package for gojq, a pure Go implementation of jq.

OBS-URL: https://build.opensuse.org/request/show/1086681
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gojq?expand=0&rev=1
2023-05-12 18:38:31 +00:00
4228f26702 Accepting request 1086646 from home:Arnavion
I would like to maintain gojq in Factory using utilities as the devel project.

OBS-URL: https://build.opensuse.org/request/show/1086646
OBS-URL: https://build.opensuse.org/package/show/utilities/gojq?expand=0&rev=1
2023-05-12 06:23:59 +00:00