[GODRIVER-2611] Merge the "primitive" package into the "bson" package Created: 25/Oct/22  Updated: 08/Jan/24

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

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

Issue Links:
Depends
depends on GODRIVER-2707 Merge the "bsonrw" package into the "... Backlog
depends on GODRIVER-2708 Merge the "bsoncodec" package into th... Backlog
depends on GODRIVER-2416 Completely remove "x/bsonx" package a... Closed
depends on GODRIVER-2612 Remove all references to the bson/pri... Investigating
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, it makes seemingly simple changes like making the default string or representation for a bson.D (really an alias of primitive.D) extended JSON (also due to import cycles).

Merge the primitive and package into the main bson package.

Definition of done:

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

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