From 78cc6417d4f010f76eeafaacccb14ad884431052 Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Tue, 25 Jun 2019 04:10:49 -0700 Subject: [PATCH] Prepare v2 release --- CHANGELOG.md | 4 ++-- README.md | 4 ++-- go.mod | 2 +- jsonpatch_json_test.go | 2 +- jsonpatch_test.go | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) 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"}`