[GODRIVER-2707] Merge the "bsonrw" package into the "bson" package Created: 22/Dec/22  Updated: 08/Jan/24

Status: Backlog
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 2.0.0

Type: Task Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by GODRIVER-2611 Merge the "primitive" package into th... Blocked
Epic Link: Go Driver 2.0 BSON
Quarter: FY24Q3
Backwards Compatibility: Major Change

 Description   

The separation between the BSON packages mostly exists to prevent import cycles, but otherwise doesn't make a lot of sense to users. Additionally, the separation between BSON packages requires that much more code is exported that otherwise doesn't need to be exported. For example, most functions on the the Copier type only need to be exported because they are used by code in the bson and mgocompat packages. Otherwise, there is no known use case for that type.

Definition of done:

  • Move all exported symbols from the bsonrw package into the bson package.
  • Update all dependent code in the Go driver to reference bson instead of bsonrw.
  • Update all documentation in the Go driver to reference bson instead of bsonrw.

Generated at Thu Feb 08 08:39:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.