node-mongodb-native icon indicating copy to clipboard operation
node-mongodb-native copied to clipboard

fix(NODE-6165): useBigInt64 causes compareTopologyVersion to throw

Open nbbeeken opened this issue 9 months ago • 0 comments

Description

What is changing?

  • compareTopologyVersion handles bigint inputs
Is there new documentation needed for these changes?

No

What is the motivation for this change?

BSON settings should not make driver internals throw

Release Highlight

Fixed error when useBigInt64=true was set on Db or MongoClient

Fixed an issue where when setting useBigInt64=true on MongoClients or Dbs an internal function compareTopologyVersion would throw an error when encountering a bigint value.

Double check the following

  • [x] Ran npm run check:lint script
  • [x] Self-review completed using the steps outlined here
  • [x] PR title follows the correct format: type(NODE-xxxx)[!]: description
    • Example: feat(NODE-1234)!: rewriting everything in coffeescript
  • [x] Changes are covered by tests
  • [x] New TODOs have a related JIRA ticket

nbbeeken avatar May 09 '24 20:05 nbbeeken