Releases: mikefarah/yq
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).
Splat and numeric keys!
Prefix Splat!
Fixes #218
Delete Splat!
Fixes #175
Support numeric keys
Note there is a (slight) backwards incompatible change.
When there is no match at a given path, numeric keys are assumed to be strings.
To create an array '+' must be used.
e.g:
yq n thing[+].cat fred
will create an array under thing, whereas
yq n thing[0].cat fred
will create a map under thing, with a key '0'
Extra help description
From #242
Thanks @georgicodes