Skip to content

Releases: mikefarah/yq

v4.29.1

29 Oct 07:47
Compare
Choose a tag to compare
  • Fixed Square brackets removing update #1342
  • Added slice array operator (.[10:15]) #44
  • XML decoder/encoder now parses directives and proc instructions (#1344). Please use the new skip flags documented here to ignore them.
  • XML users note that the default attribute prefix will change to +@ in the 4.30 release to avoid naming conflicts!
  • Improved comment handling of decoders (breaking change for yqlib users sorry)
  • Fixed load operator bug when loading yaml file with multiple documents
  • Bumped Go compiler version #1394
  • Bumped dependencies

v4.28.2

19 Oct 00:36
Compare
Choose a tag to compare
  • Fixed Github Actions issues (thanks @mattphelps-8451)
  • yq Github action docker image is now built as part of the release
  • Fixed bug - can now delete documents #1377
  • Fixed handling of UTF8 encoded CSVs #1373
  • Detect and fail on missing closing brackets #1366
  • Bumped dependencies

v4.28.1

05 Oct 09:35
Compare
Choose a tag to compare
  • Added setpath and delpaths operators, like jq (#1374)
  • Added is_key operator, to check if a match was a key when recursing
  • Added validation when attempting to add sequences to maps (#1341)

v4.27.5

09 Sep 04:22
Compare
Choose a tag to compare

4.27.5:

  • Fixed relative merge bug #1333
  • Fixed bug in alternative (//) operator, RHS being evaluated when it didn't need to be
  • Fixed footer comment issue #1231
  • Github action now runs as root (as recommended by Github Actions doc)
  • Updated dependencies

Skipped over 4.27.4 to get the #1333 bug fix in.

v4.27.3

29 Aug 08:27
Compare
Choose a tag to compare
  • Added new 'c' merge and assign flag that clobbers custom tags
  • Bumped go dependency to fix CVE (#1316)
  • Updated dependencies

v4.27.2 - Multi json document handling, CSV decoding and more!

01 Aug 06:44
Compare
Choose a tag to compare

4.27.2:

  • Fixed JSON decoder to maintain object key order.

4.27.1:

  • Added 'json' decoder for support for multiple JSON documents in a single file (e.g. NDJSON)
  • Added 'csv' decoding, array of objects encoding, and round-triping
  • New StringEvaluator when using yq as a lib (thanks @leviliangtw)
  • Fixed XML decoding issue (#1284)

v4.26.1

15 Jul 00:43
Compare
Choose a tag to compare
  • Switched to new expression parser (#1264)
  • Don't clobber anchor when adding nodes (#1269)
  • New error operator for custom validation (#1259)
  • Added support for --wrapScalar=false in properties encoder (#1241) Thanks @dcarbone
  • Fix error on multiple assign (#1257) Thanks @care0717
  • Bumped dependency versions

v4.25.3

23 Jun 09:56
Compare
Choose a tag to compare
  • xml decoder now maintains namespaces by default. Use new flags to disable if required. Thanks @rndmit
  • Length and other similar operators no longer return comments (#1231)
  • When split expression includes an extension, dont add .yml automatically (#1165)
  • Map -r to --unwrapScalar to be more a drop in replacement for jq (#1245) Thanks @SuperSandro2000
  • Fixing usage of quoted numeric keys #1247
  • Bumped dependency versions

v4.25.2

28 May 04:22
Compare
Choose a tag to compare
  • Fixed comments disappearing from end of file (#1217)
  • Fixed empty base64 decoding error (#1209)
  • JSON output now in colors (#1208)
  • Added codeql and fixed minor issues
  • Bumped go-yaml library
  • Bumped go dependency

v4.25.1

29 Apr 02:16
Compare
Choose a tag to compare
  • Can specify a split expression file via the new --split-exp-file flag #1194
  • Fixed append map bug when key matches value in existing map #1200
  • Nicer error message when trying to use merge anchor tags other than maps #1184
  • Fixed Don't automatically read stdin when the null input flag is used
  • Added type as an alias for tag #1195
  • Fixes bug when using write in-place with no expression and multiple files #1193

Note There was a bug where the last file instead of the first was being updated when using eval-all with write inplace, and no expression (or expression via --from-file. This has been fixed to the first file is updated, as per the documentation.