-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
Use Case
As a... Node.js Driver Developer
I want... to replace the usage of the Node.js os.endianness() method with the platform-agnostic NumberUtils.isBigEndian (or equivalent) from the BSON library.
So that... I can remove the import of the os module, moving one step closer to a fully environment-agnostic driver that doesn't rely on Node.js internal modules.
User Experience
- No change. This is a purely internal refactor.
Dependencies
- Requires a version of the bson library that exports NumberUtils.
Risks/Unknowns
- As long as BSON implements it correctly for the JS runtime, there is no risk
Acceptance Criteria
Implementation Requirements
- Export NumberUtils from BSON
- Use NumberUtils instead of os.endianness in the one location in the driver
Testing Requirements
- Existing tests must pass
Documentation Requirements
- None
Follow Up Requirements
- Highlight those changes in the release section
1.
|
Export NumberUtils from BSON | NODE-7316 |
|
Closed | Durran Jordan | bson-7.0.1 |
2.
|
Use BSON NumberUtils in Driver | NODE-7317 |
|
In Progress | Durran Jordan |