Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare v2 release #19

Merged
merged 1 commit into from
Jun 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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