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

Bump mongodb from 3.2.7 to 3.3.0 #84

Closed

Conversation

dependabot-preview[bot]
Copy link
Contributor

Bumps mongodb from 3.2.7 to 3.3.0.

Release notes

Sourced from mongodb's releases.

v3.3.0

The MongoDB Node.js team is pleased to announce version 3.3.0 of the driver

Release Highlights

Server Version 4.2 feature support

This latest release brings support for features in the newly released MongoDB v4.2:

  • Distributed Transactions
  • On-Demand Materialized Views with the $merge operator
  • Wildcard Indexes
  • Retryable Reads
  • MongoDB Query Language Enhancements.

SRV Polling for Sharded Clusters

The Driver has supported connecting to a cluster using an SRV record since version 3.0. Prior to now, we would only resolve the SRV record when initially connecting. This was fine for single replica sets, as the driver is able to discover new members added after initial connect from any member of a replica set. However, in a sharded deployment, individual mongos processes do not have an awareness of each other. This means that if the deployment changes in a shared cluster, the driver would have no way of knowing without disconnecting and connecting with a new client.

Starting in 3.3, if a driver connects to a sharded cluster with an SRV record, we will now periodically check that SRV record for any changes in the deployment, and update the client-side connections accordingly.

**NOTE: This feature is only available when starting a client with { useUnifiedTopology: true } **

Beta support for MongoDB Client-Side Encryption

The driver now has support for MongoDB Client-Side Encryption. This requires installing the mongodb-client-encryption npm package in your project.

Merged mongodb-core into node-mongodb-native

Up until this release, the mongodb driver has consisted of two components:

  • mongodb-core: The low-level engine of the driver.
  • node-mongodb-native: The API layer of the driver, published as mongodb

Over time, this separation has done more harm than good, and has led to increased development time for repairing bugs and implementing new features. Starting in the 3.3 release of mongodb, we have merged mongodb-core into node-mongodb-native, removing this barrier to development.

Release Notes

Bug

Changelog

Sourced from mongodb's changelog.

3.3.0 (2019-08-13)

Bug Fixes

  • aggregate-operation: move type assertions to constructor (25b27ff)
  • autoEncryption: tear down mongocryptd client when main client closes (fe2f57e)
  • autoEncryption: use new url parser for autoEncryption client (d3670c2)
  • Bulk: change BulkWriteError message to first item from writeErrors (#2013) (6bcf1e4)
  • change_stream: emit 'close' event if reconnecting failed (41aba90)
  • change_stream: emit close event after cursor is closed during error (c2d80b2)
  • change-streams: don't copy irrelevant resume options (f190072)
  • changestream: removes all event listeners on close (30eeeb5)
  • ChangeStream: remove startAtOperationTime once we have resumeToken (8d27e6e)
  • ClientSessions: initialize clientOptions and cluster time (b95d64e)
  • connect: don't treat 'connect' as an error event (170a011)
  • connect: fixed syntax issue in connect error handler (ff7166d)
  • connections_stepdown_tests: use correct version of mongo for tests (ce2c9af)
  • createCollection: Db.createCollection should pass readConcern to new collection (#2026) (6145d4b)
  • cursor: do not truncate an existing Long (317055b), closes mongodb-js/mongodb-core#441
  • distinct: return full response if full option was specified (95a7d05)
  • MongoClient: allow Object.prototype items as db names (dc6fc37)
  • MongoClient: only check own properties for valid options (c9dc717)
  • OpMsg: cap requestIds at 0x7fffffff (c0e87d5)
  • read-operations: send sessions on all read operations (4d45c8a)
  • ReadPreference: improve ReadPreference error message and remove irrelevant sharding test (dd34ce4)
  • ReadPreference: only allow valid ReadPreference modes (06bbef2)
  • replset: correct legacy max staleness calculation (2eab8aa)
  • replset: introduce a fixed-time server selection loop (cf53299)
  • server: emit "first connect" error if initial connect fails due to ECONNREFUSED (#2016) (5a7b15b)
  • serverSelection: make sure to pass session to serverSelection (eb5cc6b)
  • sessions: ensure an error is thrown when attempting sharded transactions (3a1fdc1)
  • topology: add new error for retryWrites on MMAPv1 (392f5a6)
  • don't check non-unified topologies for session support check (2bccd3f)
  • maintain internal database name on collection rename (884d46f)
  • only check for transaction state if session exists (360975a)
  • preserve aggregate explain support for legacy servers (032b204)
  • read concern only supported for mapReduce without inline (51a36f3)
  • reintroduce support for 2.6 listIndexes (c3bfc05)
  • return executeOperation for explain, if promise is desired (b4a7ad7)
  • validate atomic operations in all update methods (88bb77e)
  • transactions: fix error message for attempting sharded (eb5dfc9)
  • transactions: fix sharded transaction error logic (083e18a)

Features

  • Aggregate: support ReadConcern in aggregates with $out (21cdcf0)
  • AutoEncryption: improve error message for missing mongodb-client-encryption (583f29f)
  • ChangeStream: adds new resume functionality to ChangeStreams (9ec9b8f)
... (truncated)
Commits
  • 8b3c3b0 chore(release): 3.3.0
  • 0d2018c docs(AutoEncryption): adds documentation for extraOptions
  • 3ecda98 docs(autoEncryption): document that autoEncryption is in beta
  • 814a4cc chore(useUnifiedTopology): add deprecation warning for useUnifiedTopology
  • b7308db test: disable some failing tests for later investigation
  • b23e606 test(transactions): disable invalid pinning test
  • 82a7a6e chore(travis): add 4.2 testing to travis
  • 392f5a6 fix(topology): add new error for retryWrites on MMAPv1
  • 2ef8f2c chore(ci): update evergreen config to test Ubuntu 18.04 on mongodb >= 4.2
  • ae729f8 refactor(change-stream): use AggregateOperation for stream cursor
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Aug 14, 2019
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c4e38e9 on dependabot/npm_and_yarn/mongodb-3.3.0 into edce580 on master.

@dependabot-preview
Copy link
Contributor Author

Superseded by #91.

@dependabot-preview dependabot-preview bot deleted the dependabot/npm_and_yarn/mongodb-3.3.0 branch August 26, 2019 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant