Codebase list gojq-upstream / 6559370
update CHANGELOG.md for v0.12.8 itchyny 1 year, 11 months ago
1 changed file(s) with 24 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 # Changelog
1 ## [v0.12.8](https://github.com/itchyny/gojq/compare/v0.12.7..v0.12.8) (2022-06-01)
2 * implement `gojq.Compare` for comparing values in custom internal functions
3 * implement `gojq.TypeOf` for obtaining type name of values in custom internal functions
4 * implement `gojq.Preview` for previewing values for error messages of custom internal functions
5 * fix query lexer to parse string literals as JSON to support surrogate pairs (`"\ud83d\ude04"`)
6 * fix priority bug of declared and builtin functions (`def empty: .; null | select(.)`)
7 * fix string indexing by index out of bounds to emit `null` (`"abc" | .[3]`)
8 * fix array binding pattern not to match against strings (`"abc" as [$a] ?// $a | $a`)
9 * fix `sub` and `gsub` functions to emit results in the same order of jq
10 * fix `fromjson` to keep integer precision (`"10000000000000000" | fromjson + 1`)
11 * fix stream option to raise error against incomplete JSON input
12 * improve array updating index and string repetition to increase limitations
13 * improve `mktime` to support nanoseconds, just like `gmtime` and `now`
14 * improve query lexer to report unterminated string literals
15 * improve performance of string indexing and slicing by reducing allocations
16 * improve performance of object and array indexing, slicing, and iteration,
17 by validating path values by comparing data addresses. This change improves jq
18 compatibility of path value validation (`{} | {}.x = 0`, `[0] | [.[]][] = 1`).
19 Also optimize constant indexing and slicing by specialized instruction
20 * improve performance of `add` (on array of strings), `flatten`, `min`, `max`,
21 `sort`, `unique`, `join`, `to_entries`, `from_entries`, `indices`, `index`,
22 `rindex`, `startswith`, `endswith`, `ltrimstr`, `rtrimstr`, `explode`,
23 `capture`, `sub`, and `gsub` functions
24
125 ## [v0.12.7](https://github.com/itchyny/gojq/compare/v0.12.6..v0.12.7) (2022-03-01)
226 * fix precedence of try expression against operators (`try 0 * error(0)`)
327 * fix iterator suffix with optional operator (`0 | .x[]?`)