Skip to content

Commit

Permalink
Update to json-patch.v5.
Browse files Browse the repository at this point in the history
  • Loading branch information
scr-oath committed Dec 13, 2024
1 parent 67147d9 commit 867b85f
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion adapters/relevantdigital/relevantdigital.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/prebid/prebid-server/v3/macros"
"github.com/prebid/prebid-server/v3/openrtb_ext"
"github.com/prebid/prebid-server/v3/util/jsonutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

type adapter struct {
Expand Down
2 changes: 1 addition & 1 deletion adservertargeting/respdataprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/prebid/openrtb/v20/openrtb2"
"github.com/prebid/prebid-server/v3/openrtb_ext"
"github.com/prebid/prebid-server/v3/util/jsonutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

const MaxKeyLength = 20
Expand Down
2 changes: 1 addition & 1 deletion endpoints/openrtb2/amp_auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/prebid/prebid-server/v3/hooks/hookexecution"
"github.com/prebid/prebid-server/v3/ortb"
"github.com/prebid/prebid-server/v3/util/uuidutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

accountService "github.com/prebid/prebid-server/v3/account"
"github.com/prebid/prebid-server/v3/amp"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/openrtb2/auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/prebid/prebid-server/v3/privacysandbox"
"github.com/prebid/prebid-server/v3/schain"
"golang.org/x/net/publicsuffix"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

accountService "github.com/prebid/prebid-server/v3/account"
"github.com/prebid/prebid-server/v3/analytics"
Expand Down
2 changes: 1 addition & 1 deletion endpoints/openrtb2/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import (
"github.com/prebid/prebid-server/v3/util/iputil"
"github.com/prebid/prebid-server/v3/util/jsonutil"
"github.com/prebid/prebid-server/v3/util/uuidutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

// In this file we define:
Expand Down
2 changes: 1 addition & 1 deletion endpoints/openrtb2/video_auction.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/prebid/prebid-server/v3/hooks/hookexecution"
"github.com/prebid/prebid-server/v3/ortb"
"github.com/prebid/prebid-server/v3/privacy"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

accountService "github.com/prebid/prebid-server/v3/account"
"github.com/prebid/prebid-server/v3/analytics"
Expand Down
2 changes: 1 addition & 1 deletion exchange/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"time"

"github.com/prebid/prebid-server/v3/exchange/entities"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

"github.com/prebid/prebid-server/v3/analytics"
"github.com/prebid/prebid-server/v3/config"
Expand Down
2 changes: 1 addition & 1 deletion exchange/exchange_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import (
"github.com/prebid/prebid-server/v3/util/ptrutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

func TestNewExchange(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion firstpartydata/first_party_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"

"github.com/prebid/openrtb/v20/openrtb2"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

"github.com/prebid/prebid-server/v3/errortypes"
"github.com/prebid/prebid-server/v3/openrtb_ext"
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ go 1.21
retract v3.0.0 // Forgot to update major version in import path and module name

require (
github.com/51Degrees/device-detection-go/v4 v4.4.35
github.com/DATA-DOG/go-sqlmock v1.5.0
github.com/IABTechLab/adscert v0.34.0
github.com/NYTimes/gziphandler v1.1.1
Expand Down Expand Up @@ -32,20 +33,22 @@ require (
github.com/prometheus/client_model v0.2.0
github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475
github.com/rs/cors v1.11.0
github.com/spf13/cast v1.5.0
github.com/spf13/viper v1.12.0
github.com/stretchr/testify v1.8.1
github.com/tidwall/gjson v1.17.1
github.com/tidwall/sjson v1.2.5
github.com/vrischmann/go-metrics-influxdb v0.1.1
github.com/xeipuuv/gojsonschema v1.2.0
github.com/yudai/gojsondiff v1.0.0
golang.org/x/net v0.23.0
golang.org/x/text v0.14.0
google.golang.org/grpc v1.56.3
gopkg.in/evanphx/json-patch.v4 v4.12.0
gopkg.in/evanphx/json-patch.v5 v5.9.0
gopkg.in/yaml.v3 v3.0.1
)

require (
github.com/51Degrees/device-detection-go/v4 v4.4.35 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
Expand All @@ -65,15 +68,12 @@ require (
github.com/prometheus/procfs v0.7.3 // indirect
github.com/sergi/go-diff v1.2.0 // indirect
github.com/spf13/afero v1.8.2 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/stretchr/objx v0.5.0 // indirect
github.com/subosito/gotenv v1.3.0 // indirect
github.com/tidwall/gjson v1.17.1 // indirect
github.com/tidwall/match v1.1.1 // indirect
github.com/tidwall/pretty v1.2.0 // indirect
github.com/tidwall/sjson v1.2.5 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -987,8 +987,8 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4=
gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M=
gopkg.in/evanphx/json-patch.v5 v5.9.0 h1:hx1VU2SGj4F8r9b8GUwJLdc8DNO8sy79ZGui0G05GLo=
gopkg.in/evanphx/json-patch.v5 v5.9.0/go.mod h1:/kvTRh1TVm5wuM6OkHxqXtE/1nUZZpihg29RtuIyfvk=
gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
gopkg.in/ini.v1 v1.66.4 h1:SsAcf+mM7mRZo2nJNGt8mZCjG8ZRaNGMURJw7BsIST4=
Expand Down
2 changes: 1 addition & 1 deletion hooks/hookexecution/enricher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/prebid/openrtb/v20/openrtb2"
"github.com/prebid/prebid-server/v3/config"
"github.com/prebid/prebid-server/v3/util/jsonutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion stored_requests/backends/file_fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

"github.com/prebid/prebid-server/v3/stored_requests"
"github.com/prebid/prebid-server/v3/util/jsonutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"
)

// NewFileFetcher _immediately_ loads stored request data from local files.
Expand Down
2 changes: 1 addition & 1 deletion stored_requests/backends/http_fetcher/fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/prebid/prebid-server/v3/stored_requests"
"github.com/prebid/prebid-server/v3/util/jsonutil"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

"github.com/golang/glog"
"golang.org/x/net/context/ctxhttp"
Expand Down
2 changes: 1 addition & 1 deletion util/jsonutil/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

jsoniter "github.com/json-iterator/go"
"github.com/modern-go/reflect2"
jsonpatch "gopkg.in/evanphx/json-patch.v4"
jsonpatch "gopkg.in/evanphx/json-patch.v5"

"github.com/prebid/prebid-server/v3/errortypes"
)
Expand Down

0 comments on commit 867b85f

Please sign in to comment.