-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
Use Case
As a Node.js engineer working on a BSON library after ver 5
I want to improve BSON logic based on the knowledge that only BSON types from the current library are permitted into the serializer
So that I can reduce the checks made on inputs
User Impact
- None
Dependencies
- None
Unknowns
- Can we avoid invoking the .id getter and access "buffer" directly?
Acceptance Criteria
Implementation Requirements
- Remove isUint8Array check from serializeObjectId
- See unknown
- copy the 12 bytes manually instead of calling .set()
-
- Do the same for 16 byte binaries (uuid)
Testing Requirements
- None
Documentation Requirements
- None
Follow Up Requirements
- None
- related to
-
NODE-4858 Decouple BSON type interpretation from BSON type structure
- Backlog