-
Type: Improvement
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Needed
-
The separation between the bsoncodec.RegistryBuilder type and the bsoncodec.Registry type is unnecessary. Merge the RegistryBuilder API into the Registry API and deprecate the RegistryBuilder type and all functions on that type. Additionally, the "fluent" API currently supported by the RegistryBuilder type doesn't make as much sense on the Registry type, so remove the ability to call each function "fluently".
Definition of done:
- Add all functions from bsoncodec.RegistryBuilder to bsoncodec.Registry, removing the *RegistryBuilder return type (i.e. remove the "fluent" API).
- Deprecate the bsoncodec.RegistryBuilder type and all functions on that type. Recommend using the bsoncodec.Registry type instead.