Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-9002

Bump bson to 6.10.3

    • Type: Icon: Investigation Investigation
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.45.4
    • Affects Version/s: None
    • Component/s: None
    • Not Needed

      Fixes following issue:
      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.

       

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            dbeng-pm-bot TPM Jira Automations Bot
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: