Releases: mikefarah/yq
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)
Important: 3.3.0 Windows 386 build has been removed due to issues found in VirusTotal (despite being cleanly built several times)
3.2.1 - Bug fix + checksums
3.2.0 - Color output, array lengths and find matching values
3.1.2 - Bug Fixes
3.1.1 - Bug Fixes, can write using a yaml file
3.1.0 - Compare, Pretty Print and more
New features!
- new Compare command for comparing yaml files
- Pretty Print and indent flags
- Default values when reading
- Explode anchors
Heaps of bugs fixes - thank you for raising bugs with clear examples, extra thanks for @coryrc for helping with your PR.
Official v3 Release!
V3 is out of beta - and has some cool new features!
Upgrade guide, including new v3 features here: https://mikefarah.gitbook.io/yq/upgrading-from-v2
Checkout the new Validate command
New Major Version! 3.0.0-beta
Major release! Upgraded underlying yaml parser, re-written majority of yq. This has brought on a number of features that have been in demand for a while (see below).
This is in beta and needs some community feedback and testing :)
Check out the (beta) docs too! https://mikefarah.gitbook.io/yq/
New Features
- Keeps yaml comments and formatting, can specify yaml tags when updating. #19, #169, #107, #171, #245, #303
- Handles anchors! #310, #178
- Can print out matching paths and values when splatting #20
- JSON output works for all commands! Yaml files with multiple documents are printed out as one JSON document per line.
- Deep splat (**) to match arbitrary paths
Breaking changes
See https://mikefarah.gitbook.io/yq/upgrading-from-v2#breaking-changes
Go Modules + 'invalid cross-device link' bug fix
Minor fixes - affects go get
and rename files that place on different fs volumes (#268).