Closed
Conversation
Snyk has created this PR to upgrade bson from 6.7.0 to 6.8.0. See this package in npm: bson See this project in Snyk: https://app.snyk.io/org/biancode/project/ca3a6f1d-7eb7-46ca-9602-da5034e4f631?utm_source=github&utm_medium=referral&page=upgrade-pr
|
Greet Contributors Bot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.

Snyk has created this PR to upgrade bson from 6.7.0 to 6.8.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 1 version ahead of your current version.
The recommended version was released on 22 days ago.
Release notes
Package name: bson
-
6.8.0 - 2024-06-27
- NODE-6156: add signature to github releases (#692) (f0fbe91)
- NODE-6126: improve Long.fromBigInt performance (#681) (63eafcb)
- API
- Changelog
-
6.7.0 - 2024-05-02
- input string has invalid characters, for the given radix
- the string contains whitespace
- the value the input parameters represent is too large or too small to be a 64-bit Long
Long.fromStringStrict('1234xxx5'); // throws BSONError
- Strings in non-decimal and non-exponential formats (binary, hex, or octal digits)
- Strings with characters other than sign, numeric, floating point, or slash characters (Note:
- Strings with leading and/or trailing whitespace
- Strings in non-decimal formats (exponent notation, binary, hex, or octal digits)
- Strings with non-numeric and non-leading sign characters (ex: '2.0', '24,000')
- Strings with leading and/or trailing whitespace
- NODE-5648: add Long.fromStringStrict() (#675) (9d5a5df)
- NODE-6086: add Double.fromString() method (#671) (e943cdb)
- NODE-6087: add Int32.fromString method (#670) (5a21889)
- NODE-6123: utf8 validation is insufficiently strict (#676) (ae8bac7)
- NODE-6144: Long.fromString incorrectly coerces valid inputs to Long.ZERO in special cases (#677) (208f7e8)
- API
- Changelog
from bson GitHub release notes6.8.0 (2024-06-27)
The MongoDB Node.js team is pleased to announce version 6.8.0 of the
bsonpackage!Release Notes
Add Signature to Github Releases
The Github release for
js-bsonnow contains a detached signature file for the NPM package (namedbson-X.Y.Z.tgz.sig), on every major and patch release to 6.x and 5.x. To verify the signature, follow the instructions in the 'Release Integrity' section of theREADME.mdfile.Optimize performance of
Long.fromBigIntInternally fromBigInt was originally implemented using toString of the bigint value. Now,
Long.fromBigInthas been refactored to use bitwise operations greatly improving performance.Features
Performance Improvements
Documentation
We invite you to try the
bsonlibrary immediately, and report any issues to the NODE project.6.7.0 (2024-05-01)
The MongoDB Node.js team is pleased to announce version 6.7.0 of the
bsonpackage!Release Notes
Add
Long.fromStringStrictmethodThe
Long.fromStringStrictmethod is almost identical to theLong.fromStringmethod, except it throws aBSONErrorif any of the following are true:Unlike
Long.fromString, this method does not coerce the inputs'+/-Infinity'and'NaN'toLong.ZERO, in any case.Examples:
Long.fromString('1234xxx5'); // coerces input and returns new Long(123400)
// when writing in radix 10, 'n' and 'a' are both invalid characters
Long.fromStringStrict('NaN'); // throws BSONError
Long.fromString('NaN'); // coerces input and returns Long.ZERO
Note
Long.fromStringStrict's functionality will be present inLong.fromStringin the V7 BSON release.Add static
Double.fromStringmethodThis method attempts to create an
Doubletype from a string, and will throw aBSONErroron any string input that is not representable as aIEEE-754 64-bit double.Notably, this method will also throw on the following string formats:
'Infinity','-Infinity', and'NaN'input strings are still allowed)Strings with leading zeros, however, are also allowed.
Add static
Int32.fromStringmethodThis method attempts to create an
Int32type from string, and will throw aBSONErroron any string input that is not representable as anInt32.Notably, this method will also throw on the following string formats:
Strings with leading zeros, however, are allowed
UTF-8 validation now throws a
BSONErroron overlong encodings in Node.jsSpecifically, this affects
deserializewhen utf8 validation is enabled, which is the default.An overlong encoding is when the number of bytes in an encoding is inflated by padding the code point with leading 0s (see here for more information).
Long.fromStringtakes radix into account before coercing '+/-Infinity' and 'NaN' toLong.ZEROLong.fromStringno longer coerces the following cases toLong.ZEROwhen the provided radix supports all characters in the string:'+Infinity','-Infinity', or'Infinity'when 35 <= radix <= 36'NaN'when 24 <= radix <= 36Features
Bug Fixes
Documentation
We invite you to try the
bsonlibrary immediately, and report any issues to the NODE project.Important
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: