Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

Releases: krishicks/yaml-patch

v0.0.10

30 Aug 16:23
Compare
Choose a tag to compare

Fix issues with copy:

  • copying an element into an array previously replaced the element at that index; it now properly adds as per the spec:

    This operation is functionally identical to an "add" operation at the target location using the value specified in the "from" member.

  • copying an object previously would copy the pointer to the object internally, meaning a subsequent replace on the target object would modify the origin object, as well.

v0.0.9

19 Jul 18:34
Compare
Choose a tag to compare

Fix test operation panic when given an object to compare rather than just a value.

v0.0.8

05 Jul 22:37
Compare
Choose a tag to compare

Fix using an array addition path with pathfinder: /jobs/name=some-job/plan/- works.

v0.0.7

12 Jun 20:31
Compare
Choose a tag to compare

This release fixes an issue with the pathfinder, where trying to add an element to an existing object found via pathfinder would fail.

v0.0.6

12 Jun 18:35
Compare
Choose a tag to compare

This release fixes some issues:

It adds support for escape ordering to the path-finding extension (/key=value). If you have a path that you want to find and the value contains a /, use ~1 to escape the slash, e.g. /key=a~1b to match an object with key key and value a/b.

It also adds support for the test operation, to test that a value at a certain path matches the given value.

v0.0.5

03 May 20:49
Compare
Choose a tag to compare

Remove unnecessary panic.

v0.0.4

03 May 19:00
Compare
Choose a tag to compare

Add support for nested extended syntax, e.g. /foo/bar=baz/grault/fred=grault.

Previous to this release there could be only one use of extended syntax and it had to occur at the end of the pointer.

v0.0.3

02 May 19:29
Compare
Choose a tag to compare

CLI will automatically fix Concourse-style {{placeholders}}. If you're using the library, use PlaceholderWrapper as you wish.

v0.0.2

01 May 22:46
Compare
Choose a tag to compare
Add cmd/yaml-patch

v0.0.1

28 Apr 23:08
Compare
Choose a tag to compare
Remove problematic panic