-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rebase fq changes on latester gojq main. Most notable change visiable to users is that gojq now allows queries as object literal values. For example this now works: {a: 1+2+3} From upstream: 083fb39 refactor code using built-in min and max functions 470db58 bump up to Go 1.23, drop support for Go 1.20 0607aa5 bump up version to 0.12.16 0709341 update CHANGELOG.md for v0.12.16 1324e6e update dependencies 01355e9 improve parser to allow binary operators as object values a41a5f8 fix debug/1 function to be available only when debug/0 is defined f694c1b fix a benchmark test BenchmarkCompile f2559f6 remove private compare function 0cd3a66 improve compiler to abort with error if query is missing 422cc9d refactor stringify function declarations of query 1130c4e refactor program body, rename rules, remove empty actions in parser 8d7ccc9 add tests for immutability of arrays 375e90d remove useless receivers 1b5ce7f set correct offset for multibyte tokens 8874f53 fix tests of exp10 and atan2 failing on some platforms
- Loading branch information
Showing
9 changed files
with
24 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -277,4 +277,4 @@ def _main: | |
) | ||
) | ||
end | ||
); | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ def _query_object: | |
( to_entries | ||
| map( | ||
{ key: .key | ||
, val: {queries: [.value]} | ||
, val: .value | ||
} | ||
) | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters