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): [Snyk] Upgrade bson from 5.1.0 to 5.4.0 #6661

Merged
merged 1 commit into from
Oct 19, 2023

Conversation

tshuli
Copy link
Contributor

@tshuli tshuli commented Aug 25, 2023

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade bson from 5.1.0 to 5.4.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 3 versions ahead of your current version.
  • The recommended version was released 2 months ago, on 2023-07-05.
Release notes
Package name: bson
  • 5.4.0 - 2023-07-05

    5.4.0 (2023-07-03)

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

    Release Notes

    Improved React Native experience

    The BSON package now ships a bundle made to work on React Native without additional polyfills preconfigured. The necessary APIs (TextEncoder/TextDecoder & atob/btoa) are now vendored into the RN bundle directly. Users should still install react-native-get-random-values themselves to get securely generated UUIDs and ObjectIds. Read more in the React Native section of our readme.

    Improved BSON UTF8 Decoding Performance

    In the v5 major release of BSON we internally abstracted the different byte manipulation APIs used based on whether the library is running in Node.js or in a browser. This abstraction required us to create a subarray before invoking the environment's UTF8 decoding API. Creating the subarray before invoking Node.js' Buffer.prototype.toString API turns out to cause an unnecessary slow down. We have now updated the UTF8 stringification step on Node.js to invoke Buffer.prototype.toString with the start and end offsets. See #585 for our research.

    Features

    Bug Fixes

    Documentation

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

  • 5.3.0 - 2023-05-10

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

    Release Highlights

    This release fixes a strictness issue with our UUID class. The UUID class has and will continue to generate UUID v4 bytes. However, now when reading UUIDs from MongoDB the UUID can be whatever format was inserted to the database, instead of throwing an error. This will notably help with data that has empty GUID values.

    Deprecation

    Bug Fix

    Documentation

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

  • 5.2.0 - 2023-04-04

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

    Release Highlights

    With this release we've added APIs to create BSON Binary / UUID / ObjectId types from hex and base64 strings.

    class ObjectId {
    static createFromHexString(hex: string): ObjectId;
    static createFromBase64(base64: string): ObjectId;
    }

    class Binary {
    static createFromHexString(hex: string, subType? number): Binary;
    static createFromBase64(base64: string, subType? number): Binary;
    }

    class UUID extends Binary {
    static override createFromHexString(hex: string): UUID;
    static override createFromBase64(base64: string): UUID;
    }

    Features

    Documentation

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

  • 5.1.0 - 2023-03-16

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

    Release Highlights

    EJSON.stringify now supports ES Map!

    import { EJSON } from 'bson';

    const m = new Map([
    ['a', new Map([['b', 1]])],
    ['b', 2]
    ]);

    console.log(EJSON.stringify(m))
    // '{"a":{"b":1},"b":2}'

    Features

    Documentation

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

from bson GitHub release notes
Commit messages
Package name: bson

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@KenLSM KenLSM changed the title [Snyk] Upgrade bson from 5.1.0 to 5.4.0 chore(deps): [Snyk] Upgrade bson from 5.1.0 to 5.4.0 Aug 30, 2023
@KenLSM KenLSM self-assigned this Aug 30, 2023
@KenLSM KenLSM merged commit 723e923 into develop Oct 19, 2023
25 of 26 checks passed
@KenLSM KenLSM deleted the snyk-upgrade-1e133617fa569ccb9271f7f5cead93fa branch October 19, 2023 11:17
@foochifa foochifa mentioned this pull request Oct 25, 2023
5 tasks
@wanlingt wanlingt mentioned this pull request Oct 26, 2023
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants