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(main): release 6.1.0 #619

Merged
merged 1 commit into from
Sep 13, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Sep 7, 2023

🌱 A new release!

6.1.0 (2023-09-12)

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

Release Notes

Add new Decimal128.fromStringWithRounding static method

Following the merging of the Decimal128.fromString bug fix in #613, we understand that some users may have been relying on our inexact rounding behaviour in their applications. To address this need, we have exposed the inexact rounding behaviour via a new static method, Decimal128.fromStringWithRounding.

Thank you to @hconn-riparian for reporting a related rounding bug and fix in #560 which has been included in this feature.

// 5.x
> let d = Decimal128.fromString('127341286781293491234791234667890123')
new Decimal128("1.273412867812934912347912346678901E+35")

// 6.x
> let d = Decimal128.fromString('127341286781293491234791234667890123')
Uncaught:
BSONError: "127341286781293491234791234667890123" is not a valid Decimal128 string - inexact rounding
    at invalidErr (./js-bson/lib/bson.cjs:1402:11)
    at Decimal128.fromStringInternal (./js-bson/lib/bson.cjs:1633:25)
    at Decimal128.fromString (./js-bson/lib/bson.cjs:1424:27)

> d = Decimal128.fromStringWithRounding('127341286781293491234791234667890123')
new Decimal128("1.273412867812934912347912346678901E+35")

See our driver specifications for more information on inexact rounding.

Improved ObjectId serialization performance

Thanks to @billouboq for submitting the performance fix merged in #614. When using a for-loop instead of creating a new 12 byte view before calling Uint8Array.prototype.set, our internal testing shows a 25% increase in MB/s throughput of ObjectId serialization!

Features

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 force-pushed the release-please--branches--main--components--bson branch from cb19bfa to 9983df3 Compare September 8, 2023 19:50
@github-actions github-actions bot force-pushed the release-please--branches--main--components--bson branch from 9983df3 to bdc4d38 Compare September 12, 2023 17:13
@W-A-James W-A-James changed the title chore(main): release 6.1.0 [skip-ci] chore(main): release 6.1.0 Sep 13, 2023
@W-A-James W-A-James merged commit 04d7486 into main Sep 13, 2023
1 check passed
@W-A-James W-A-James deleted the release-please--branches--main--components--bson branch September 13, 2023 16:45
W-A-James added a commit that referenced this pull request Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants