Commit Graph

1709 Commits

Author SHA1 Message Date
Mike Farah
08fc058934 Fix JSON encoding removing null #985 2021-10-30 13:37:21 +11:00
Mike Farah
2b3d0552a6 Refactored command logic 2021-10-30 13:04:05 +11:00
Mike Farah
0b2688c0f1 Split printer 2021-10-30 10:04:41 +11:00
Mike Farah
65fd001575 Improving docs 2021-10-28 09:15:28 +11:00
Mike Farah
d508ac3fa4 Fixed flatten error message 2021-10-26 15:43:43 +11:00
Mike Farah
80084e89cc Added flatten operator 2021-10-26 15:42:25 +11:00
Mike Farah
2491051fd9 Added group_by operator 2021-10-26 15:13:26 +11:00
Mike Farah
d390fdc641 better docs 2021-10-26 14:33:57 +11:00
Mike Farah
91717b3c5d Can specify indent in encode ops 2021-10-24 11:35:40 +11:00
Mike Farah
587af7f722 Fixed newline handling in encoder/decoder 2021-10-22 15:21:01 +11:00
Mike Farah
a1af1b95d0 better docs 2021-10-22 14:55:58 +11:00
Mike Farah
b1e64a0d80 Fixed newline handling when decoding/encoding 2021-10-22 14:53:39 +11:00
Mike Farah
7288d34778 Added decoder op 2021-10-22 12:37:47 +11:00
Mike Farah
cdc5ef7b15 Added encoder op 2021-10-22 12:00:47 +11:00
Mike Farah
7d0376b8ee Removing no longer needed github action 2021-10-21 20:09:47 +11:00
Mike Farah
57f058555c Bumping version 2021-10-21 20:08:32 +11:00
Mike Farah
d22de94e8c Updated github action release to generate man page 2021-10-21 19:59:35 +11:00
Mike Farah
e8b30b1dbf Man page release workflow wip 2021-10-20 19:22:53 +11:00
Mike Farah
9c98d3effe Man page release workflow wip 2021-10-20 18:45:14 +11:00
Mike Farah
ee376fdfd2 Man page release workflow wip 2021-10-20 15:01:08 +11:00
Mike Farah
e5f389d0c2 Added test release flow 2021-10-20 11:11:52 +11:00
Mike Farah
7b92aa0fcf Bumping go-lang, docker versions 2021-10-20 10:58:54 +11:00
Mike Farah
5819dd0853 Fixed expression parsing bug #970 2021-10-18 11:47:03 +11:00
Mike Farah
bc04873292 Man page 2021-10-18 11:03:53 +11:00
Mike Farah
7fdd205858 Updated Readme 2021-10-15 11:47:54 +11:00
Mike Farah
67541a2fe9 Keep flag, it is needed in corner cases 2021-10-15 11:47:00 +11:00
Mike Farah
0064b68ed9 Revert "Removed leadingContentPreProcessing flag - header preprocessing is stable"
This reverts commit 4ce9433468.
2021-10-15 11:47:00 +11:00
Mike Farah
e741e6d52f Man page wip 2021-10-15 10:39:33 +11:00
Mike Farah
948399f163 Man page wip 2021-10-15 09:59:08 +11:00
Mike Farah
0436b77d91 Man page wip 2021-10-15 09:51:42 +11:00
Mike Farah
4ce9433468 Removed leadingContentPreProcessing flag - header preprocessing is stable 2021-10-15 08:53:00 +11:00
Peter Matseykanets
dd259b4957 Make deepMatch report in linear time
The current implementation of the deepMatch() has the exponential runtime.
Given the long enough input and the pattern with multiple wildcards
it takes a while if ever to complete which can potentially be used
maliciously to cause a denial of service (cpu and memory consumption).

E.g. running this in the root of this repository
time yq eval '.jobs.publishDocker.steps.[] | select (.run == "****outputs")' .github/workflows/release.yml
gives on my laptop
25.11s user 0.06s system 99% cpu 25.182 total

Whereas the updated implementation gives
0.01s user 0.01s system 36% cpu 0.049 total

There are numerous similar CVEs reported for glob evaluation in
different shells/ftp-servers/libraries.

The replacement implementation with the linear runtime is shamelessly taken
verbatim from the briliant article by Russ Cox https://research.swtch.com/glob
2021-10-14 18:45:25 +11:00
Chris Kerr
2da2001651 Update README with recently added / changed options
In particular, remove reference to the deprecated `--tojson` option.
2021-10-14 18:40:58 +11:00
Mike Farah
d363963f98 Bump version 2021-10-11 14:50:17 +11:00
Mike Farah
ed4d888bfa Speed up multiply 2021-10-11 14:46:46 +11:00
Mike Farah
79bc1f95cb Slight performance improvement to context.ChildContext 2021-10-11 12:56:27 +11:00
Mike Farah
4a4aae00af Sped up explode operator 2021-10-11 10:41:15 +11:00
Mike Farah
839f795710 Fixed select bug (#958) 2021-10-07 15:04:36 +11:00
Emmanuel Bourg
e87808683a Skip the tests if the nocheck Debian build option is specified 2021-10-07 13:44:16 +11:00
Emmanuel Bourg
bec30e910f Fix a typo in root.go 2021-10-07 13:43:57 +11:00
Mike Farah
b8aeb76f29 Bump version 2021-10-02 15:14:45 +10:00
Mike Farah
989b11764d Updating to go 1.17 to fix CVE #944 2021-10-02 15:12:57 +10:00
Mike Farah
e052ff8025 New release with docker build fixes 2021-09-20 11:58:21 +10:00
Mike Farah
111c1a0e4a Fixed docker timeout - simplify docker builds 2021-09-20 11:57:05 +10:00
Mike Farah
222bfd3d17 Bumping version 2021-09-20 10:40:27 +10:00
Mike Farah
4123669efe Help text tweak 2021-09-20 09:57:41 +10:00
Mike Farah
7caefc8521 minor readme cleanup 2021-09-20 09:55:35 +10:00
Roberto Mier Escandon
91018683bf Bump deb to version 4.13.0 2021-09-17 08:44:13 +10:00
Mike Farah
282d047dc2 Added STDIN example to the top 2021-09-17 08:38:10 +10:00
Mike Farah
b68e6adce9 Added STDIN example to the top 2021-09-17 08:37:28 +10:00