-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Needed
-
There are no known use cases for the mongo.NewClient API that aren't followed by an immediate call to client.Connect. Since mongo.Connect already combines those two behaviors, there's no known use case for mongo.NewClient, so deprecate it for removal.
Definition of done:
- Deprecate mongo.NewClient and Client.Connect.
- Document that a Client cannot be reconnected after calling Client.Disconnect.
- is depended on by
-
GODRIVER-2617 Remove or un-export all currently deprecated code in Go Driver 2.0
- Closed
- is related to
-
GODRIVER-979 Remove context.Context parameter to mongo.Connect
- Closed
-
GODRIVER-2606 Deprecate unused functionality in preparation to remove it in Go Driver 2.0
- Closed