[GODRIVER-2599] Separate the Go BSON library into its own module Created: 24/Oct/22  Updated: 09/Mar/23

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

Type: Improvement 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


 Description   

Create a new module and repository for the go.mongodb.org/mongo-driver/bson package. For example, create the "go.mongodb.org/bson" package that points to the "https://github.com/mongodb/go-bson" repository.

The motivations for this are:

  1. More quickly improve the usability of the BSON library by separating its release schedule from the Go Driver release schedule (i.e. it enables more frequent BSON major version releases).
  2. Make the BSON library more usable by Go devs who don't use MongoDB or the Go Driver.

Concerning the existing go.mongodb.org/mongo-driver/bson package, there are some options for what to do with it:

  1. Remove it with the next Go Driver major release (currently 2.0) and direct users to update all references to the new package path.
  2. Create a Git submodule that references a version of the proposed "https://github.com/mongodb/go-bson" repo.
  3. Manually maintain the code in the bson/ directory in the Go Driver by copying updates from the proposed "https://github.com/mongodb/go-bson" repo.

In any case, our goal should be to eventually remove the "bson" package from the Go Driver while easing the transition to the separate module as much as possible.


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