Skip to content

Commit 6559370

Browse files
committed
update CHANGELOG.md for v0.12.8
1 parent b2dc4a0 commit 6559370

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

CHANGELOG.md

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

0 commit comments

Comments
 (0)