Upgrading go.mongodb.org/mongo-driver 0.2 to 0.3
Unknownv0.2.0 → v0.3.0
Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published Go source. Not mixed with prose notes.
- removed:
field DeleteManyModel.DeleteManyModel: embedded driver.DeleteManyModel - removed:
field DeleteOneModel.DeleteOneModel: embedded driver.DeleteOneModel - removed:
field InsertOneModel.InsertOneModel: embedded driver.InsertOneModel - removed:
field ReplaceOneModel.ReplaceOneModel: embedded driver.ReplaceOneModel - removed:
field UpdateManyModel.UpdateManyModel: embedded driver.UpdateManyModel - removed:
field UpdateOneModel.UpdateOneModel: embedded driver.UpdateOneModel - removed:
method Cursor.DecodeBytes() (bson.Raw, error) - removed:
method DeleteManyModel.Collation(*options.Collation) *DeleteManyModel - removed:
method DeleteManyModel.Filter(interface{}) *DeleteManyModel - removed:
method DeleteOneModel.Collation(*options.Collation) *DeleteOneModel - removed:
method DeleteOneModel.Filter(interface{}) *DeleteOneModel - removed:
method InsertOneModel.Document(interface{}) *InsertOneModel - removed:
method ReplaceOneModel.Collation(*options.Collation) *ReplaceOneModel - removed:
method ReplaceOneModel.Filter(interface{}) *ReplaceOneModel - removed:
method ReplaceOneModel.Replacement(interface{}) *ReplaceOneModel - removed:
method ReplaceOneModel.Upsert(bool) *ReplaceOneModel - removed:
method UpdateManyModel.ArrayFilters(options.ArrayFilters) *UpdateManyModel - removed:
method UpdateManyModel.Collation(*options.Collation) *UpdateManyModel - removed:
method UpdateManyModel.Filter(interface{}) *UpdateManyModel - removed:
method UpdateManyModel.Update(interface{}) *UpdateManyModel - removed:
method UpdateManyModel.Upsert(bool) *UpdateManyModel - removed:
method UpdateOneModel.ArrayFilters(options.ArrayFilters) *UpdateOneModel - removed:
method UpdateOneModel.Collation(*options.Collation) *UpdateOneModel - removed:
method UpdateOneModel.Filter(interface{}) *UpdateOneModel - removed:
method UpdateOneModel.Update(interface{}) *UpdateOneModel - removed:
method UpdateOneModel.Upsert(bool) *UpdateOneModel - changed:
method Client.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (Cursor, error) → method Client.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (*ChangeStream, error) - changed:
method Collection.Aggregate(context.Context, interface{}, ...*options.AggregateOptions) (Cursor, error) → method Collection.Aggregate(context.Context, interface{}, ...*options.AggregateOptions) (*Cursor, error) - changed:
method Collection.Find(context.Context, interface{}, ...*options.FindOptions) (Cursor, error) → method Collection.Find(context.Context, interface{}, ...*options.FindOptions) (*Cursor, error) - changed:
method Collection.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (Cursor, error) → method Collection.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (*ChangeStream, error) - changed:
method Database.ListCollections(context.Context, interface{}, ...*options.ListCollectionsOptions) (Cursor, error) → method Database.ListCollections(context.Context, interface{}, ...*options.ListCollectionsOptions) (*Cursor, error) - changed:
method Database.RunCommandCursor(context.Context, interface{}, ...*options.RunCmdOptions) (Cursor, error) → method Database.RunCommandCursor(context.Context, interface{}, ...*options.RunCmdOptions) (*Cursor, error) - changed:
method Database.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (Cursor, error) → method Database.Watch(context.Context, interface{}, ...*options.ChangeStreamOptions) (*ChangeStream, error) - changed:
method IndexView.List(context.Context, ...*options.ListIndexesOptions) (Cursor, error) → method IndexView.List(context.Context, ...*options.ListIndexesOptions) (*Cursor, error) - changed:
type Cursor: interface → type Cursor: struct - added:
field ChangeStream.Current: bson.Raw - added:
field Cursor.Current: bson.Raw - added:
field DeleteManyModel.Collation: *options.Collation - added:
field DeleteManyModel.Filter: interface{} - added:
field DeleteOneModel.Collation: *options.Collation - added:
field DeleteOneModel.Filter: interface{} - added:
field InsertOneModel.Document: interface{} - added:
field ReplaceOneModel.Collation: *options.Collation - added:
field ReplaceOneModel.Filter: interface{} - added:
field ReplaceOneModel.Replacement: interface{} - added:
field ReplaceOneModel.Upsert: *bool - added:
field UpdateManyModel.ArrayFilters: *options.ArrayFilters - added:
field UpdateManyModel.Collation: *options.Collation - added:
field UpdateManyModel.Filter: interface{} - added:
field UpdateManyModel.Update: interface{} - added:
field UpdateManyModel.Upsert: *bool - added:
field UpdateOneModel.ArrayFilters: *options.ArrayFilters - added:
field UpdateOneModel.Collation: *options.Collation - added:
field UpdateOneModel.Filter: interface{} - added:
field UpdateOneModel.Update: interface{} - added:
field UpdateOneModel.Upsert: *bool - added:
field WriteException.WriteConcernError: *WriteConcernError - added:
field WriteException.WriteErrors: WriteErrors - added:
method ChangeStream.Close(context.Context) error - added:
method ChangeStream.Decode(interface{}) error - added:
method ChangeStream.Err() error - added:
method ChangeStream.ID() int64 - added:
method ChangeStream.Next(context.Context) bool - added:
method DeleteManyModel.SetCollation(*options.Collation) *DeleteManyModel - added:
method DeleteManyModel.SetFilter(interface{}) *DeleteManyModel - added:
method DeleteOneModel.SetCollation(*options.Collation) *DeleteOneModel - added:
method DeleteOneModel.SetFilter(interface{}) *DeleteOneModel - added:
method InsertOneModel.SetDocument(interface{}) *InsertOneModel - added:
method ReplaceOneModel.SetCollation(*options.Collation) *ReplaceOneModel - added:
method ReplaceOneModel.SetFilter(interface{}) *ReplaceOneModel - added:
method ReplaceOneModel.SetReplacement(interface{}) *ReplaceOneModel - added:
method ReplaceOneModel.SetUpsert(bool) *ReplaceOneModel - added:
method UpdateManyModel.SetArrayFilters(options.ArrayFilters) *UpdateManyModel - added:
method UpdateManyModel.SetCollation(*options.Collation) *UpdateManyModel - added:
method UpdateManyModel.SetFilter(interface{}) *UpdateManyModel - added:
method UpdateManyModel.SetUpdate(interface{}) *UpdateManyModel - added:
method UpdateManyModel.SetUpsert(bool) *UpdateManyModel - added:
method UpdateOneModel.SetArrayFilters(options.ArrayFilters) *UpdateOneModel - added:
method UpdateOneModel.SetCollation(*options.Collation) *UpdateOneModel - added:
method UpdateOneModel.SetFilter(interface{}) *UpdateOneModel - added:
method UpdateOneModel.SetUpdate(interface{}) *UpdateOneModel - added:
method UpdateOneModel.SetUpsert(bool) *UpdateOneModel - added:
method WriteException.Error() string - added:
type ChangeStream: struct - added:
type WriteException: struct
- changed:
method Bucket.Find(interface{}, ...*options.GridFSFindOptions) (mongo.Cursor, error) → method Bucket.Find(interface{}, ...*options.GridFSFindOptions) (*mongo.Cursor, error)
- changed:
field CountOptions.MaxTime: *int64 → field CountOptions.MaxTime: *time.Duration - changed:
field DistinctOptions.MaxTime: *int64 → field DistinctOptions.MaxTime: *time.Duration - changed:
field EstimatedDocumentCountOptions.MaxTime: *int64 → field EstimatedDocumentCountOptions.MaxTime: *time.Duration - changed:
method CountOptions.SetMaxTime(int64) *CountOptions → method CountOptions.SetMaxTime(time.Duration) *CountOptions - changed:
method DistinctOptions.SetMaxTime(int64) *DistinctOptions → method DistinctOptions.SetMaxTime(time.Duration) *DistinctOptions - changed:
method EstimatedDocumentCountOptions.SetMaxTime(int64) *EstimatedDocumentCountOptions → method EstimatedDocumentCountOptions.SetMaxTime(time.Duration) *EstimatedDocumentCountOptions - added:
field Collation.Normalization: bool
- changed:
func Aggregate(context.Context, command.Aggregate, *topology.Topology, description.ServerSelector, description.ServerSelector, uuid.UUID, *session.Pool, *bsoncodec.Registry, ...*options.AggregateOptions) (command.Cursor, error) → func Aggregate(context.Context, command.Aggregate, *topology.Topology, description.ServerSelector, description.ServerSelector, uuid.UUID, *session.Pool, *bsoncodec.Registry, ...*options.AggregateOptions) (*BatchCursor, error) - changed:
func Find(context.Context, command.Find, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, *bsoncodec.Registry, ...*options.FindOptions) (command.Cursor, error) → func Find(context.Context, command.Find, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, *bsoncodec.Registry, ...*options.FindOptions) (*BatchCursor, error) - changed:
func ListCollections(context.Context, command.ListCollections, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, ...*options.ListCollectionsOptions) (command.Cursor, error) → func ListCollections(context.Context, command.ListCollections, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, ...*options.ListCollectionsOptions) (*ListCollectionsBatchCursor, error) - changed:
func ListIndexes(context.Context, command.ListIndexes, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, ...*options.ListIndexesOptions) (command.Cursor, error) → func ListIndexes(context.Context, command.ListIndexes, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, ...*options.ListIndexesOptions) (*BatchCursor, error) - changed:
func ReadCursor(context.Context, command.Read, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool) (command.Cursor, error) → func ReadCursor(context.Context, command.Read, *topology.Topology, description.ServerSelector, uuid.UUID, *session.Pool, ...bsonx.Elem) (*BatchCursor, error) - added:
func NewBatchCursor(bsoncore.Document, *session.Client, *session.ClusterClock, *topology.Server, ...bsonx.Elem) (*BatchCursor, error) - added:
func NewEmptyBatchCursor() *BatchCursor - added:
func NewLegacyBatchCursor(command.Namespace, int64, []bson.Raw, int32, int32, *topology.Server) (*BatchCursor, error) - added:
func NewLegacyListCollectionsBatchCursor(*BatchCursor) (*ListCollectionsBatchCursor, error) - added:
func NewListCollectionsBatchCursor(*BatchCursor) (*ListCollectionsBatchCursor, error) - added:
method BatchCursor.Batch([]byte) []byte - added:
method BatchCursor.Close(context.Context) error - added:
method BatchCursor.Err() error - added:
method BatchCursor.ID() int64 - added:
method BatchCursor.Next(context.Context) bool - added:
method BatchCursor.RequiredBytes() int - added:
method ListCollectionsBatchCursor.Batch([]byte) []byte - added:
method ListCollectionsBatchCursor.Close(context.Context) error - added:
method ListCollectionsBatchCursor.Err() error - added:
method ListCollectionsBatchCursor.ID() int64 - added:
method ListCollectionsBatchCursor.Next(context.Context) bool - added:
method ListCollectionsBatchCursor.RequiredBytes() int - added:
type BatchCursor: struct - added:
type ListCollectionsBatchCursor: struct
- removed:
func NewListCollectionsCursor(command.Cursor) command.Cursor - removed:
method Server.BuildCursor(bson.Raw, *session.Client, *session.ClusterClock, ...bsonx.Elem) (command.Cursor, error) - removed:
method Server.BuildLegacyCursor(command.Namespace, int64, []bson.Raw, int32, int32) (command.Cursor, error) - added:
method Server.String() string - added:
method Topology.String() string
- removed:
method Cursor.Close(context.Context) error - removed:
method Cursor.Decode(interface{}) error - removed:
method Cursor.DecodeBytes() (bson.Raw, error) - removed:
method Cursor.Err() error - removed:
method Cursor.ID() int64 - removed:
method Cursor.Next(context.Context) bool - removed:
method CursorBuilder.BuildCursor(bson.Raw, *session.Client, *session.ClusterClock, ...bsonx.Elem) (Cursor, error) - removed:
method CursorBuilder.BuildLegacyCursor(Namespace, int64, []bson.Raw, int32, int32) (Cursor, error) - removed:
type Cursor: interface - removed:
type CursorBuilder: interface - changed:
method Aggregate.Decode(description.SelectedServer, CursorBuilder, wiremessage.WireMessage) *Aggregate → method Aggregate.Decode(description.SelectedServer, wiremessage.WireMessage) *Aggregate - changed:
method Aggregate.Result() (Cursor, error) → method Aggregate.Result() (bson.Raw, error) - changed:
method Aggregate.RoundTrip(context.Context, description.SelectedServer, CursorBuilder, wiremessage.ReadWriter) (Cursor, error) → method Aggregate.RoundTrip(context.Context, description.SelectedServer, wiremessage.ReadWriter) (bson.Raw, error) - changed:
method CountDocuments.Decode(context.Context, description.SelectedServer, CursorBuilder, wiremessage.WireMessage) *CountDocuments → method CountDocuments.Decode(context.Context, description.SelectedServer, wiremessage.WireMessage) *CountDocuments - changed:
method CountDocuments.RoundTrip(context.Context, description.SelectedServer, CursorBuilder, wiremessage.ReadWriter) (int64, error) → method CountDocuments.RoundTrip(context.Context, description.SelectedServer, wiremessage.ReadWriter) (int64, error) - changed:
method Find.Decode(description.SelectedServer, CursorBuilder, wiremessage.WireMessage) *Find → method Find.Decode(description.SelectedServer, wiremessage.WireMessage) *Find - changed:
method Find.Result() (Cursor, error) → method Find.Result() (bson.Raw, error) - changed:
method Find.RoundTrip(context.Context, description.SelectedServer, CursorBuilder, wiremessage.ReadWriter) (Cursor, error) → method Find.RoundTrip(context.Context, description.SelectedServer, wiremessage.ReadWriter) (bson.Raw, error) - changed:
method ListCollections.Decode(description.SelectedServer, CursorBuilder, wiremessage.WireMessage) *ListCollections → method ListCollections.Decode(description.SelectedServer, wiremessage.WireMessage) *ListCollections - changed:
method ListCollections.Result() (Cursor, error) → method ListCollections.Result() (bson.Raw, error) - changed:
method ListCollections.RoundTrip(context.Context, description.SelectedServer, CursorBuilder, wiremessage.ReadWriter) (Cursor, error) → method ListCollections.RoundTrip(context.Context, description.SelectedServer, wiremessage.ReadWriter) (bson.Raw, error) - changed:
method ListIndexes.Decode(description.SelectedServer, CursorBuilder, wiremessage.WireMessage) *ListIndexes → method ListIndexes.Decode(description.SelectedServer, wiremessage.WireMessage) *ListIndexes - changed:
method ListIndexes.Result() (Cursor, error) → method ListIndexes.Result() (bson.Raw, error) - changed:
method ListIndexes.RoundTrip(context.Context, description.SelectedServer, CursorBuilder, wiremessage.ReadWriter) (Cursor, error) → method ListIndexes.RoundTrip(context.Context, description.SelectedServer, wiremessage.ReadWriter) (bson.Raw, error) - added:
var ErrEmptyCursor