Releases: krishicks/yaml-patch
v0.0.10
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
v0.0.8
v0.0.7
v0.0.6
This release fixes some issues:
- https://github.com/krishicks/yaml-patch/issues/5
- https://github.com/krishicks/yaml-patch/issues/4
- https://github.com/krishicks/yaml-patch/issues/3
- https://github.com/krishicks/yaml-patch/issues/2
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.