Skip to content

chore(main): release 6.10.4 #789

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

Merged

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 3, 2025

🌱 A new release!

6.10.4 (2025-05-05)

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

Release Notes

Top-Level Await removed from the browser BSON bundle

In versions <6.10.4, BSON uses a top-level await to asynchronously import the crypto module. This change unintentionally caused headaches for users of webpack, react native, vite and other tools bundlers and tools.

The top-level await has been removed from all BSON bundles. Thanks to @lourd for this contribution.

Prevent the creation of incorrectly sized float32 vectors

This adds validation to our BSON.serialize and EJSON.stringify methods that will prevent creating float 32 vectors that are not a multiple of 4. Previously created vectors that do not meet this validation will still be deserialized and parsed so they can be fixed.

Additionally, the toFloat32Array(), toInt8Array(), and toPackedBits() methods now perform the same validation that serialize does to prevent use of incorrectly formatted Binary vector values. (For example, a packed bits vector with more than 7 bits of padding)

Vectors of an incorrect length could only be made manually (directly constructing the bytes and calling new Binary). We recommend using toFloat32Array and fromFloat32Array when interacting with Vectors in MongoDB as they handle the proper creation and translation of this data type.

Bug Fixes

Documentation

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


@github-actions github-actions bot requested a review from a team as a code owner April 3, 2025 18:22
@github-actions github-actions bot force-pushed the release-please--branches--main--components--bson branch 3 times, most recently from d7c282d to 3312147 Compare May 1, 2025 14:53
@github-actions github-actions bot force-pushed the release-please--branches--main--components--bson branch from 3312147 to bf728d2 Compare May 5, 2025 16:49
@baileympearson
Copy link
Contributor

run release_notes

1 similar comment
@baileympearson
Copy link
Contributor

run release_notes

@baileympearson baileympearson changed the title chore(main): release 6.10.4 [skip-ci] chore(main): release 6.10.4 Jun 2, 2025
@baileympearson
Copy link
Contributor

evergreen retry

@baileympearson baileympearson merged commit b021bd8 into main Jun 2, 2025
2 of 3 checks passed
@baileympearson baileympearson deleted the release-please--branches--main--components--bson branch June 2, 2025 19:55
baileympearson added a commit that referenced this pull request Jun 2, 2025
Copy link
Contributor Author

github-actions bot commented Jun 2, 2025

🤖 Created releases:

🌻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant