diff --git a/CHANGELOG.md b/CHANGELOG.md index 66f316b..5793519 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log -## [0.2.0](https://github.com/gomodules/jsonpatch/tree/0.2.0) (2019-06-25) -[Full Changelog](https://github.com/gomodules/jsonpatch/compare/1.0.0...0.2.0) +## [v2.0.0](https://github.com/gomodules/jsonpatch/tree/v2.0.0) (2019-06-25) +[Full Changelog](https://github.com/gomodules/jsonpatch/compare/1.0.0...v2.0.0) **Merged pull requests:** diff --git a/README.md b/README.md index 10359ce..a51d95a 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ As per http://jsonpatch.com JSON Patch is specified in RFC 6902 from the IETF. JSON Patch allows you to generate JSON that describes changes you want to make to a document, so you don't have to send the whole doc. JSON Patch format is supported by HTTP PATCH method, allowing for standards based partial updates via REST APIs. ```console -go get gomodules.xyz/jsonpatch +go get gomodules.xyz/jsonpatch/v2 ``` I tried some of the other "jsonpatch" go implementations, but none of them could diff two json documents and generate format like jsonpatch.com specifies. Here's an example of the patch format: @@ -31,7 +31,7 @@ package main import ( "fmt" - "gomodules.xyz/jsonpatch" + "gomodules.xyz/jsonpatch/v2" ) var simpleA = `{"a":100, "b":200, "c":"hello"}` diff --git a/go.mod b/go.mod index b6ebcf6..b5eaf83 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gomodules.xyz/jsonpatch +module gomodules.xyz/jsonpatch/v2 go 1.12 diff --git a/jsonpatch_json_test.go b/jsonpatch_json_test.go index 703e31a..76ccffc 100644 --- a/jsonpatch_json_test.go +++ b/jsonpatch_json_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "gomodules.xyz/jsonpatch" + "gomodules.xyz/jsonpatch/v2" ) func TestMarshalNullableValue(t *testing.T) { diff --git a/jsonpatch_test.go b/jsonpatch_test.go index 8422fa4..ff2f711 100644 --- a/jsonpatch_test.go +++ b/jsonpatch_test.go @@ -6,7 +6,7 @@ import ( jp "github.com/evanphx/json-patch" "github.com/stretchr/testify/assert" - "gomodules.xyz/jsonpatch" + "gomodules.xyz/jsonpatch/v2" ) var simpleA = `{"a":100, "b":200, "c":"hello"}`