Skip to content
Myr

chore(binding): upgrade bson dependency to mongo-driver v2 (#4549)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Bob Du · committed by GitHub · parent 1b414bd · Browse files · 7 files+8 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Bob Du <i@bobdu.cc>

Diff stats

7 files+8 added−8 removed

  • other:+8 added−8 removed

7 files+8 added−8 removed

modified:binding/binding_test.go+1 added-1 removed
19 unmodified lines
2021 "github.com/gin-gonic/gin/testdata/protoexample"22 "github.com/stretchr/testify/assert"23 "github.com/stretchr/testify/require"24 "go.mongodb.org/mongo-driver/bson"24 "go.mongodb.org/mongo-driver/v2/bson"25 "google.golang.org/protobuf/proto"26)2728type appkey struct {
1406 unmodified lines
modified:binding/bson.go+1 added-1 removed
6 unmodified lines
7import (8 "io"9 "net/http"1011 "go.mongodb.org/mongo-driver/bson"11 "go.mongodb.org/mongo-driver/v2/bson"12)1314type bsonBinding struct{}15
15 unmodified lines
modified:render/bson.go+1 added-1 removed
5 unmodified lines
67import (8 "net/http"910 "go.mongodb.org/mongo-driver/bson"10 "go.mongodb.org/mongo-driver/v2/bson"11)1213// BSON contains the given interface object.14type BSON struct {
20 unmodified lines
modified:render/render_test.go+1 added-1 removed
17 unmodified lines
18 "github.com/gin-gonic/gin/codec/json"19 testdata "github.com/gin-gonic/gin/testdata/protoexample"20 "github.com/stretchr/testify/assert"21 "github.com/stretchr/testify/require"22 "go.mongodb.org/mongo-driver/bson"22 "go.mongodb.org/mongo-driver/v2/bson"23 "google.golang.org/protobuf/proto"24)2526// TODO unit tests
628 unmodified lines
modified:context_test.go+1 added-1 removed
30 unmodified lines
31 "github.com/gin-gonic/gin/codec/json"32 testdata "github.com/gin-gonic/gin/testdata/protoexample"33 "github.com/stretchr/testify/assert"34 "github.com/stretchr/testify/require"35 "go.mongodb.org/mongo-driver/bson"35 "go.mongodb.org/mongo-driver/v2/bson"36 "google.golang.org/protobuf/proto"37)3839var _ context.Context = (*Context)(nil)
3715 unmodified lines
modified:go.mod+1 added-1 removed
15 unmodified lines
16 github.com/pelletier/go-toml/v2 v2.2.417 github.com/quic-go/quic-go v0.59.018 github.com/stretchr/testify v1.11.119 github.com/ugorji/go/codec v1.3.120 go.mongodb.org/mongo-driver v1.17.920 go.mongodb.org/mongo-driver/v2 v2.5.021 golang.org/x/net v0.50.022 google.golang.org/protobuf v1.36.1023)24
23 unmodified lines
modified:go.sum+2 added-2 removed
69 unmodified lines
70github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=71github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=72github.com/ugorji/go/codec v1.3.1 h1:waO7eEiFDwidsBN6agj1vJQ4AG7lh2yqXyOXqhgQuyY=73github.com/ugorji/go/codec v1.3.1/go.mod h1:pRBVtBSKl77K30Bv8R2P+cLSGaTtex6fsA2Wjqmfxj4=74go.mongodb.org/mongo-driver v1.17.9 h1:IexDdCuuNJ3BHrELgBlyaH9p60JXAvdzWR128q+U5tU=75go.mongodb.org/mongo-driver v1.17.9/go.mod h1:LlOhpH5NUEfhxcAwG0UEkMqwYcc4JU18gtCdGudk/tQ=74go.mongodb.org/mongo-driver/v2 v2.5.0 h1:yXUhImUjjAInNcpTcAlPHiT7bIXhshCTL3jVBkF3xaE=75go.mongodb.org/mongo-driver/v2 v2.5.0/go.mod h1:yOI9kBsufol30iFsl1slpdq1I0eHPzybRWdyYUs8K/0=76go.uber.org/mock v0.6.0 h1:hyF9dfmbgIX5EfOdasqLsWD6xqpNZlXblLB/Dbnwv3Y=77go.uber.org/mock v0.6.0/go.mod h1:KiVJ4BqZJaMj4svdfmHM0AUx4NJYO8ZNpPnZn1Z+BBU=78golang.org/x/arch v0.22.0 h1:c/Zle32i5ttqRXjdLyyHZESLD/bB90DCU1g9l/0YBDI=79golang.org/x/arch v0.22.0/go.mod h1:dNHoOeKiyja7GTvF9NJS1l3Z2yntpQNzgrjh1cU103A=
17 unmodified lines