Skip to content

Releases: mikefarah/yq

3.2.1 - Bug fix + checksums

01 Mar 22:29
Compare
Choose a tag to compare

3.2.0 - Color output, array lengths and find matching values

28 Feb 05:47
Compare
Choose a tag to compare

Some great new features in this release, particularly the long await colourised output thanks @risentveber

Backwards breaking change:
Compare function now returns exit code (1) when there are differences (#360)

Fixes:

3.1.2 - Bug Fixes

21 Feb 09:37
Compare
Choose a tag to compare

Fixes:

Thanks for raising clear bugs :)

3.1.1 - Bug Fixes, can write using a yaml file

12 Feb 05:36
Compare
Choose a tag to compare

3.1.0 - Compare, Pretty Print and more

07 Feb 00:26
Compare
Choose a tag to compare

New features!

Heaps of bugs fixes - thank you for raising bugs with clear examples, extra thanks for @coryrc for helping with your PR.

Official v3 Release!

30 Jan 23:31
Compare
Choose a tag to compare

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

10 Jan 22:54
Compare
Choose a tag to compare
Pre-release

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

01 Nov 01:10
Compare
Choose a tag to compare

Minor fixes - affects go get and rename files that place on different fs volumes (#268).

Splat and numeric keys!

16 May 04:48
Compare
Choose a tag to compare

Prefix Splat!

Fixes #218

Delete Splat!

Fixes #175

Support numeric keys

Fixes: #219 and #215

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

2.3.0

21 Mar 22:19
Compare
Choose a tag to compare
  • Adds --allow-empty flag to merge command to fix #205

Thanks @Ruenzuo !