Releases: mikefarah/yq
4.0.0-beta1
More features ported from v3, a few fixes.
- sort keys operator for comparing
- fixed create new yaml bug
- added exit-status flag
- added write-in-place flag
- fixed recursive decent on empty objects/arrays
First beta release!
4.0.0-alpha2
Some new features added:
- merging between files
- concatenating arrays
- has operator
- path operator
and more....
The path expression '.a[]' is no longer accepted, you must have a dot in front of the square brackets '.a.[]'
Docs have been updated. This is to disambiguate from the empty array expression.
All things going well, this will be the final alpha build, the next one will be beta.
4.0.0-alpha1
First draft release of yq
v4!
This is a major breaking change from v3 - yq
v4 uses jq
like syntax - and so has much more powerful expressions (though a bigger learning curve if you haven't used jq
before.
The docs are also in alpha - here: https://mikefarah.gitbook.io/yq/v/v4.x-alpha/
In the coming weeks I'll be adding more operations, working on the docs and adding more tests.
I'd love some feedback!
Currently v4 alpha is only available via github releases, expect to see docker and snap releases soon.
3.4.1 - Json Key Ordering!
3.4.0
Some more fixes, and one (minor) backwards incompatible change!
If you were previously using the -a
flag to indicate append
when merging, this flag now sets the array merge strategy, and so you need to explicitly set it to append -a=append
.
- Explode anchors now applies to map keys too (#466)
- Fixed printing to STDERR incorrectly (#479, #486, #472, #537)
- Fixed outputting non string keys to json (null, numbers) (#519)
- Can now specify how you want arrays to be merged in the merge command using the
-a/--arrays
flag with one ofupdate/append/overwrite
. Note that this has a minor backwards incompatibility: if you were previously using the-a
flag to indicate 'append', you now need to set it like so-a=append
(#455)
3.3.4 - Fixed alpine build, version inconsistency
Fixes dynamic build issue (#532)
Fixes bad versioning from previous release
3.2.3 - Minor fixes and updates
3.3.2 - Minor update
3.3.1
A number of fixes and improvements in this release:
- Unicode handling in comments has been fixed #396
- Comments save their original positions #427, #343
- Array indentation has been fixed #343
- Convert to Json (andexplode yaml) speed has significantly improved #422
- Strip comments now works for compare #450
- Explode anchors now works for compare
- Delete now works properly with deep splat #421
- Add missing 'flow' style #417
- Fixed printing errors to stdout (#440)
- You can write aliases and anchors (#377) (https://mikefarah.gitbook.io/yq/commands/write-update#writing-anchors)
- YQ can now generate bash/zshell/fish/powershell completions! Check out the shell-completion command
3.3.0
New features and fixes in this release:
- You can control string styles (quotes) using the new
--style
flag (https://mikefarah.gitbook.io/yq/usage/value-parsing#the-style-flag). Fixes: #413, #387) - String values now always have quotes when outputting to JSON. Fixes: (#392, #388, #341) and you can optionally turn off unwrapping of scalars when outputting to yaml by setting
--unwrapScalar=false
(https://mikefarah.gitbook.io/yq/usage/output-format#unwrap-scalars) - Negative array indices now traverse the array backwards https://mikefarah.gitbook.io/yq/usage/path-expressions#arrays. Fixes: (#398)
- Added a
--stripComments
flag to print yaml without any comments (https://mikefarah.gitbook.io/yq/usage/output-format#strip-comments), Fixes: #385 - Bumped go version to 1.14 (#409)