-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
Use Case
As a driver engineer
I want to add BigInt stringification to js-bson
So that users can make use of native JS BigInts
Open Questions
- Should we truncate BigInts greater than 64 bits inside stringify?
- Yes, we want it to have semantics that mirror those of BSON.serialize
Acceptance Criteria
Implementation Requirements
- Ensure that stringify can correctly handle stringification of BigInt
- Ensure that stringify does not use the trailing 'n' syntax used by BigInt natively
Testing Requirements
- Implement tests from User-facing syntax section of the design document
- Ensure that stringify does not use the trailing 'n' syntax
- Ensure that stringified BigInts have appropriate truncation behaviour (see Open questions)
- is related to
-
NODE-4976 Add tests to ensure that no BigInt features are used when useBigInt64 flag is set to false
- Closed