Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): bump bson from 4.0.4 to 5.0.1 #18

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Feb 20, 2023

Bumps bson from 4.0.4 to 5.0.1.

Release notes

Sourced from bson's releases.

v5.0.1

The MongoDB Node.js team is pleased to announce version 5.0.1 of the bson package!

Bug Fixes

  • NODE-5025: no type definitions for es module (#563) (50e90fc)
  • NODE-5048: webpack unable to bundle import with leading 'node:' (#564) (3aed24a)
  • NODE-5056: EJSON.parse date handling when useBigInt64=true (#562) (d5088af)

Documentation

We invite you to try the bson library immediately, and report any issues to the NODE project.

v5.0.0

The MongoDB Node.js team is pleased to announce version 5.0.0 of the bson package!

Release Highlights

BSON v5 is out and ready to rumble!

The focus of this release was to modernize our library's approach to delivering a unified cross-platform JavaScript experience. We no longer support EOL Node.js versions, so the new minimum requirement for the library is v14.20.1 or later. With ES modules no longer experimental and top-level await available, BSON now offers a native ESM bundle that works in Node.js and the browser in addition to the existing CommonJS format.

Remove reliance on Node.js Buffer

Our main improvement centers around the code's use of Uint8Array on the web and Buffer in Node.js. By pulling out all the byte-by-byte helpers needed to parse and create BSON documents we were able to accomplish the original vision of the Node.js project: true isomorphism (almost!). Our ES module build of the library is runnable in Node.js and the browser, without shims or polyfills. We are so excited for this "write once, run everywhere" future!

The Remove reliance on Node.js Buffer section in the migration guide provides more detail.

Use BigInt with BSON and EJSON

Speaking of modernization, we are delighted to announce support for BigInt as a native way to represent and interact with BSON int64s!

JavaScript introduced an infinite precision integer type called BigInt in 2018. BSON 5.0 supports Nodejs 14+, which enables us to use it as an alternate numeric representation for BSON Longs. You can start sending BigInts down into BSON right away: BSON.serialize and EJSON.stringify understand how to convert them into BSON Long and EJSON's $numberLong format.

Returning BigInts is not enabled by default, however this can be accomplished by adding the useBigInt64: true flag in BSON.deserialize or EJSON.parse. For more information on how we transform BigInt’s to 64-bit Integers see the abstract ToBigInt64 operation.

Note: Full support for this feature is not going to be available in the driver v5.0.0 release, we are intending to make it available in the first feature release after 5.0.0

Upgrade today!

We have a detailed migration guide that provides more context on the changes listed below.

... (truncated)

Changelog

Sourced from bson's changelog.

5.0.1 (2023-02-16)

Bug Fixes

  • NODE-5025: no type definitions for es module (#563) (50e90fc)
  • NODE-5048: webpack unable to bundle import with leading 'node:' (#564) (3aed24a)
  • NODE-5056: EJSON.parse date handling when useBigInt64=true (#562) (d5088af)

5.0.0 (2023-01-31)

5.0.0-alpha.3 (2023-01-20)

⚠ BREAKING CHANGES

  • NODE-4892: error on bson types not from this version (#543)
  • NODE-4890: make all thrown errors into BSONErrors (#545)
  • NODE-4713: modernize bundling (#534)
  • NODE-1921: validate serializer root input (#537)
  • NODE-4711: remove evalFunctions option (#539)

Features

  • NODE-1921: validate serializer root input (#537) (95d5edf)
  • NODE-4711: remove evalFunctions option (#539) (0427eb5)
  • NODE-4713: modernize bundling (#534) (28ce4d5)
  • NODE-4870: Support BigInt serialization (#541) (e9e40a2)
  • NODE-4871: Add support for int64 deserialization to BigInt (#542) (9ff60ba)
  • NODE-4873: support EJSON stringify from BigInt to $numberLong (#547) (37e8690)
  • NODE-4874: support EJSON parse for BigInt from $numberLong (#552) (854aa70)
  • NODE-4890: make all thrown errors into BSONErrors (#545) (5b837a9)
  • NODE-4892: error on bson types not from this version (#543) (d9f0eaa)
  • NODE-4927: exports in package.json for react native and document how to polyfill for BSON (#550) (3b4b61e)

Bug Fixes

  • NODE-4771: serializeFunctions breaks function names outside of basic latin (#538) (35a9234)
  • NODE-4887: serializeInto does not check for the presence of a toBSON method for values in Map entries (#555) (ebc1c76)
  • NODE-4905: double precision accuracy in canonical EJSON (#548) (e0dbb17)
  • NODE-4932: remove .0 suffix from double extended json values (#554) (946866d)

4.7.0 (2022-08-18)

Features

  • NODE-4405: support serializing UUID class (#508) (f5dc9ed)
  • NODE-4419: UUID class deserialization (#509) (ff2b975)

... (truncated)

Commits
  • b6a15b5 chore(release): 5.0.1
  • 3aed24a fix(NODE-5048): webpack unable to bundle import with leading 'node:' (#564)
  • 50e90fc fix(NODE-5025): no type definitions for es module (#563)
  • d5088af fix(NODE-5056): EJSON.parse date handling when useBigInt64=true (#562)
  • 6ef1000 chore(NODE-5057): add compass:exports fields to package.json (#561)
  • c095034 test(NODE-4976): ensure all use of BigInt is gated by the useBigInt64 flag (#...
  • c7e19af chore: bump http-cache-semantics from 4.1.0 to 4.1.1 (#559)
  • ddb7ec8 chore(release): 5.0.0
  • 8bba395 chore(release): 5.0.0-alpha.3
  • c6d9215 chore: bump json5 from 2.2.1 to 2.2.3 (#551)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by nbbeeken, a new releaser for bson since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [bson](https://github.com/mongodb/js-bson) from 4.0.4 to 5.0.1.
- [Release notes](https://github.com/mongodb/js-bson/releases)
- [Changelog](https://github.com/mongodb/js-bson/blob/main/HISTORY.md)
- [Commits](mongodb/js-bson@v4.0.4...v5.0.1)

---
updated-dependencies:
- dependency-name: bson
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants