vscode
vscode copied to clipboard
chore(deps): bump the driver group with 2 updates
Bumps the driver group with 2 updates: bson and mongodb.
Updates bson from 6.2.0 to 6.5.0
Release notes
Sourced from bson's releases.
v6.5.0
6.5.0 (2024-03-12)
The MongoDB Node.js team is pleased to announce version 6.5.0 of the
bsonpackage!Release Notes
Fixed float byte-wise handling on big-endian systems
[!CAUTION] Among the platforms BSON and the MongoDB driver support this issue impacts s390x big-endian systems. x86, ARM, and other little-endian systems are not affected. Existing versions of the driver can be upgraded to this release.
A recent change to the BSON library started parsing and serializing floats using a
Float64Array. When reading the bytes from this array the ordering is dependent on the platform it is running on and we now properly account for that ordering.Add
SUBTYPE_SENSITIVEonBinaryclassWhen a BSON.Binary object is of 'sensitive' subtype, the object's subtype will equal
0x08.Features
- NODE-5506: add Binary subtype sensitive (#657) (748ca60)
- NODE-5957: add BSON indexing API (#654) (2ac17ec)
Bug Fixes
Documentation
We invite you to try the
bsonlibrary immediately, and report any issues to the NODE project.v6.4.0
6.4.0 (2024-02-29)
The MongoDB Node.js team is pleased to announce version 6.4.0 of the
bsonpackage!Release Notes
BSON short basic latin string writing performance improved!
The BSON library's string encoding logic now attempts to optimize for basic latin (ASCII) characters. This will apply to both BSON keys and BSON values that are or contain strings. If strings are less than 6 bytes we observed approximately 100% increase in speed while around 24 bytes the performance was about 33% better. For any non-basic latin bytes or at 25 bytes or greater the BSON library will continue to use Node.js' Buffer.toString API.
The intent is to generally target the serialization of BSON keys which are often short and only use basic latin.
Fixed objectId symbol property not defined on instances from cross cjs and mjs
... (truncated)
Changelog
Sourced from bson's changelog.
6.5.0 (2024-03-12)
Features
- NODE-5506: add Binary subtype sensitive (#657) (748ca60)
- NODE-5957: add BSON indexing API (#654) (2ac17ec)
Bug Fixes
6.4.0 (2024-02-29)
Features
Bug Fixes
- NODE-5873: objectId symbol property not defined on instances from cross cjs and mjs (#643) (4d9884d)
Performance Improvements
- NODE-5557: move DataView and Set allocation used for double parsing and utf8 validation to nested path (#611) (9a150e1)
- NODE-5910: optimize small byte copies (#651) (24d035e)
- NODE-5934: replace DataView uses with bit math (#649) (6d343ab)
- NODE-5955: use pooled memory when possible (#653) (78c4264)
6.3.0 (2024-01-31)
Features
Commits
2f0effbchore(main): release 6.5.0 [skip-ci] (#655)c910db1test(NODE-6017): add an s390x big endian test (#660)6a7ef5dfix(NODE-6016): flip byte order depending on system endianness (#659)748ca60feat(NODE-5506): add Binary subtype sensitive (#657)2ac17ecfeat(NODE-5957): add BSON indexing API (#654)b64e912chore(main): release 6.4.0 [skip-ci] (#644)78c4264perf(NODE-5955): use pooled memory when possible (#653)6d343abperf(NODE-5934): replace DataView uses with bit math (#649)24d035eperf(NODE-5910): optimize small byte copies (#651)f53db84chore(NODE-5830): update js-bson dependencies (#648)- Additional commits viewable in compare view
Updates mongodb from 6.3.0 to 6.5.0
Release notes
Sourced from mongodb's releases.
v6.5.0
6.5.0 (2024-03-11)
The MongoDB Node.js team is pleased to announce version 6.5.0 of the
mongodbpackage!Release Notes
Bulk Write Operations Generate Ids using
pkFactoryWhen performing inserts, the driver automatically generates
_ids for each document if there is no_idpresent. By default, the driver generatesObjectIds. An option,pkFactory, can be used to configure the driver to generate_ids that are not object ids.For a long time, only
Collection.insertandCollection.insertManyactually used thepkFactory, if configured. Notably,Collection.bulkWrite(),Collection.initializeOrderedBulkOp()andCollection.initializeOrderedBulkOp()always generatedObjectIds, regardless of what was configured on collection.The driver always generates
_ids for inserted documents using thepkFactory.[!CAUTION] If you are using a
pkFactoryand performing bulk writes, you may have inserted data into your database that does not have_ids generated by thepkFactory.Fixed applying read preference to commands depending on topology
When connecting to a secondary in a replica set with a direct connection, if a read operation is performed, the driver attaches a read preference of
primaryPreferredto the command.Fixed memory leak in Connection layer
The Connection class has recently been refactored to operate on our socket operations using promises. An oversight how we made async network operations interruptible made new promises for every operation. We've simplified the approach and corrected the leak.
Query SRV and TXT records in parallel
When connecting using a convenient SRV connection string (
mongodb+srv://) hostnames are obtained from an SRV dns lookup and some configuration options are obtained from a TXT dns query. Those DNS operations are now performed in parallel to reduce first-time connection latency.Container and Kubernetes Awareness
The Node.js driver now keeps track of container metadata in the
client.env.containerfield of the handshake document.If space allows, the following metadata will be included in
client.env.container:env?: { container?: { orchestrator?: 'kubernetes' // if process.env.KUBERNETES_SERVICE_HOST is set runtime?: 'docker' // if the '/.dockerenv' file exists } }Note: If neither Kubernetes nor Docker is present,
client.envwill not have thecontainerproperty.Add property
errorResponseto MongoServerErrorThe MongoServer error maps keys from the error document returned by the server on to itself. There are some use cases where the original error document is desirable to obtain in isolation. So now, the
mongoServerError.errorResponseproperty stores a reference to the error document returned by the server.
... (truncated)
Changelog
Sourced from mongodb's changelog.
6.5.0 (2024-03-11)
Features
- NODE-5968: container and Kubernetes awareness in client metadata (#4005) (28b7040)
- NODE-5988: Provide access to raw results doc on MongoServerError (#4016) (c023242)
- NODE-6008: deprecate CloseOptions interface (#4030) (f6cd8d9)
Bug Fixes
- NODE-5636: generate _ids using pkFactory in bulk write operations (#4025) (fbb5059)
- NODE-5981: read preference not applied to commands properly (#4010) (937c9c8)
- NODE-5985: throw Nodejs' certificate expired error when TLS fails to connect instead of
CERT_HAS_EXPIRED(#4014) (057c223)- NODE-5993: memory leak in the
Connectionclass (#4022) (69de253)Performance Improvements
6.4.0 (2024-02-29)
Features
- NODE-3449: Add serverConnectionId to Command Monitoring Spec (735f7aa)
- NODE-3470: retry selects another mongos (#3963) (84959ee)
- NODE-3689: require hello command for connection handshake to use OP_MSG disallowing OP_QUERY (#3938) (ce7df0f)
- NODE-4686: Add log messages to CLAM (#3955) (e3bfa30)
- NODE-4687: Add logging to server selection (#3946) (7f3ce0b)
- NODE-4719: add SDAM Logging Spec (#3940) (a3c0298)
- NODE-4847: Add config error handling to logging (#3970) (8f7bb59)
- NODE-5717: make ExceededTimeLimit retryable reads error (#3947) (106ab09)
- NODE-5885: upgrade BSON to
^6.3.0(#3983) (9401d09)- NODE-5939: Implement 6.x: cache the AWS credentials provider in the MONGODB-AWS auth logic (#3991) (e0a37e5)
- NODE-5978: upgrade BSON to ^6.4.0 (#4007) (90f2f70)
Bug Fixes
- NODE-5127: implement reject kmsRequest on server close (#3964) (568e05f)
- NODE-5609: node driver omits base64 padding in sasl-continue command (#3975) (b7d28d3)
- NODE-5765: change type for countDocuments (#3932) (22cae0f)
- NODE-5791: type error with $addToSet in bulkWrite (#3953) (b93d405)
- NODE-5818: Add feature flagging to server selection logging (#3974) (55203ef)
- NODE-5839: support for multibyte code-points in stringifyWithMaxLen (#3979) (aed1cf0)
- NODE-5840: heartbeat duration includes socket creation (#3973) (a42039b)
- NODE-5901: propagate errors to transformed stream in cursor (#3985) (ecfc615)
... (truncated)
Commits
c9e32adchore(main): release 6.5.0 [skip-ci] (#4013)f6cd8d9feat(NODE-6008): deprecate CloseOptions interface (#4030)36fa752refactor(NODE-5915): topology close logic to be synchronous (#4021)937c9c8fix(NODE-5981): read preference not applied to commands properly (#4010)31f1eedtest(NODE-5969): convert CSFLE corpus test #6 to TS, async/await and add writ...fbb5059fix(NODE-5636): generate _ids using pkFactory in bulk write operations (#4025)2348548test(DRIVERS-2812): sdam load balancer tests in serverless (#4026)c023242feat(NODE-5988): Provide access to raw results doc on MongoServerError (#4016)69de253fix(NODE-5993): memory leak in theConnectionclass (#4022)28b7040feat(NODE-5968): container and Kubernetes awareness in client metadata (#4005)- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore <dependency name> major versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)@dependabot ignore <dependency name> minor versionwill close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)@dependabot ignore <dependency name>will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)@dependabot unignore <dependency name>will remove all of the ignore conditions of the specified dependency@dependabot unignore <dependency name> <ignore condition>will remove the ignore condition of the specified dependency and ignore conditions