Skip to content

Commit

Permalink
Prepare v2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Jun 25, 2019
1 parent 9fbceb0 commit 78cc641
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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:**

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -31,7 +31,7 @@ package main

import (
"fmt"
"gomodules.xyz/jsonpatch"
"gomodules.xyz/jsonpatch/v2"
)

var simpleA = `{"a":100, "b":200, "c":"hello"}`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module gomodules.xyz/jsonpatch
module gomodules.xyz/jsonpatch/v2

go 1.12

Expand Down
2 changes: 1 addition & 1 deletion jsonpatch_json_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"gomodules.xyz/jsonpatch"
"gomodules.xyz/jsonpatch/v2"
)

func TestMarshalNullableValue(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion jsonpatch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"}`
Expand Down

0 comments on commit 78cc641

Please sign in to comment.