Bump bson to 6.10.3

XMLWordPrintableJSON

    • Type: Investigation
    • Resolution: Fixed
    • Priority: 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
              Reporter:
              TPM Jira Automations Bot
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: