Releases: mikefarah/yq
Releases · mikefarah/yq
v4.29.1
- 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
- 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
- Added
setpath
anddelpaths
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
v4.27.3
- 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!
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
- 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
- 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
v4.25.1
- 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.