-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Critical - P2
-
Affects Version/s: 6.13.0
-
Component/s: BSON
Parsing negative numbers using `useBigInt64` appears to parse the number as an unsigned int64, instead of a signed int64.
> bson = require('mongodb').BSON // OR: bson = require('bson') > bson.deserialize(bson.serialize({a: -1n}), { useBigInt64: false }) { a: -1 } > bson.deserialize(bson.serialize({a: -1}), { useBigInt64: true }) { a: -1 } > bson.deserialize(bson.serialize({a: -1n}), { useBigInt64: true }) { a: 18446744073709551615n }
Tested with mongodb 6.13.0 / bson 6.10.2.
- is depended on by
-
COMPASS-9002 Bump bson to 6.10.3
-
- Closed
-
- related to
-
COMPASS-9006 Bump mongosh to 2.4.0
-
- Closed
-
-
MONGOSH-2016 Bump node driver to bson-6.10.3
-
- Closed
-
-
VSCODE-680 Bump Shell and Compass dependencies
-
- Closed
-
-
COMPASS-9064 Release Compass 1.45.4
-
- Closed
-
-
MONGOSH-2017 Release mongosh 2.4.0
-
- Closed
-
-
VSCODE-681 Release VSCode extension 1.12.1
-
- Closed
-
(2 related to)