bson>=7.3.0 calls v8.startupSnapshot.isBuildingSnapshot() in a static block, which Bun 1.3.14 does not implement — it throws NotImplementedError at import time, breaking mongoose under both bun run and bun test.
Workaround (in place): pinned bson to 7.2.0 via overrides in package.json.
Action: when a stable Bun release >1.3.14 includes the fix, remove the overrides.bson entry (and the //overrides note), run bun install, and verify mongoose loads on 7.3.x.
Upstream:
bson>=7.3.0callsv8.startupSnapshot.isBuildingSnapshot()in a static block, which Bun 1.3.14 does not implement — it throwsNotImplementedErrorat import time, breaking mongoose under bothbun runandbun test.Workaround (in place): pinned
bsonto7.2.0viaoverridesinpackage.json.Action: when a stable Bun release >1.3.14 includes the fix, remove the
overrides.bsonentry (and the//overridesnote), runbun install, and verify mongoose loads on 7.3.x.Upstream:
mongodboven-sh/bun#32501