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

Releases: krishicks/yaml-patch

v0.0.10

Choose a tag to compare

@krishicks krishicks released this 30 Aug 16:23

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

Choose a tag to compare

@krishicks krishicks released this 19 Jul 18:34

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

v0.0.8

Choose a tag to compare

@krishicks krishicks released this 05 Jul 22:37

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

v0.0.7

Choose a tag to compare

@krishicks krishicks released this 12 Jun 20:31

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

Choose a tag to compare

@krishicks krishicks released this 12 Jun 18:35

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

Choose a tag to compare

@krishicks krishicks released this 03 May 20:49

Remove unnecessary panic.

v0.0.4

Choose a tag to compare

@krishicks krishicks released this 03 May 19:00

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

Choose a tag to compare

@krishicks krishicks released this 02 May 19:29

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

v0.0.2

Choose a tag to compare

@krishicks krishicks released this 01 May 22:46
Add cmd/yaml-patch

v0.0.1

Choose a tag to compare

@krishicks krishicks released this 28 Apr 23:08
Remove problematic panic