Skip to content

dependabot npm(deps): bump mongodb from 4.7.0 to 4.8.0

Depen d'Abot requested to merge dependabot-npm_and_yarn-mongodb-4.8.0 into master

Bumps mongodb from 4.7.0 to 4.8.0.

Release notes

Sourced from mongodb's releases.

v4.8.0

The MongoDB Node.js team is pleased to announce version 4.8.0 of the mongodb package!

Release Highlights

UpdateFilter nested fields

In this release you will now get auto-complete and type safety for nested keys in an update filter. See the example below: image1

Optional client.connect() fixup

In our last release we made explicitly calling client.connect() before performing operations optional with some caveats. In this release client.startSession() can now be called before connecting to MongoDB.

NOTES:

  • The only APIs that need the client to be connected before using are the legacy collection.initializeUnorderedBulkOp() / collection.initializeOrderedBulkOp() builder methods. However, the preferred collection.bulkWrite() API can be used without calling connect explicitly.
  • While executing operations without explicitly connecting may be streamlined and convenient, depending on your use case client.connect() could still be useful to find out early if there is some easily detectable issue (ex. networking) that prevents you from accessing your database.

Features

  • NODE-4078: allow comment with estimated doc count (#3301) (bed1fe3)
  • NODE-4267: support nested fields in type completion for UpdateFilter (#3259) (1a9a44c)

Bug Fixes

  • NODE-4125: change stream resumability (#3289) (aa5f97e)
  • NODE-4262: make startSession work without a connection (#3286) (89ad7c3)

Documentation

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

Changelog

Sourced from mongodb's changelog.

4.8.0 (2022-07-13)

Features

  • NODE-4078: allow comment with estimated doc count (#3301) (bed1fe3)
  • NODE-4267: support nested fields in type completion for UpdateFilter (#3259) (1a9a44c)
  • NODE-4294: mark queryable encryption options beta (#3300) (4c07bbb)
  • NODE-4301: remove shared lib experimental tags (#3298) (3976783)

Bug Fixes

  • NODE-4125: change stream resumability (#3289) (aa5f97e)
  • NODE-4262: make startSession work without a connection (#3286) (89ad7c3)
  • sync showExpandedEvents spec tests (#3288) (cfe18f9)
Commits
  • be34a94 chore(release): 4.8.0
  • 07cb5b7 test(NODE-4363): Add support for ClientEncryption in the unified test runner ...
  • 3c5bcb9 test(NODE-4282): sync fle2 payload spec test updates (#3309)
  • bb31ef4 chore: update to latest bson patch (#3316)
  • 13158be test(NODE-4347): add coverage for auto connecting operations (#3299)
  • c9083db chore(NODE-4358): move legacy tests to legacy folder (#3307)
  • 761f853 test(NODE-4382): update fle setup in test readme (#3302)
  • de35a62 test(NODE-4260): add test for csfle bulk write error (#3305)
  • 7797b73 docs(NODE-4380): fix grammar issue in documentation (#3312)
  • 3545698 chore: remove unusued eslint directives (#3310)
  • Additional commits viewable in compare view

Merge request reports

Loading