mongoose-elasticsearch-xp
mongoose-elasticsearch-xp copied to clipboard
build(deps): bump mongodb from 3.0.2 to 3.2.3
Bumps mongodb from 3.0.2 to 3.2.3.
Release notes
Sourced from mongodb's releases.
v3.2.1
The MongoDB Node.js team is pleased to announce version 3.2.1 of the driver.
Due to a publishing snafu v3.2.1 was immediately published without a proper v3.2.0 release
The
Topologyclass no longer uses a callback store, instead relying on a server selection loop for operation execution. This means failed operations will fail faster, with more accurate stack traces and specifics about the failure. It generally makes it much easier to reason about what the driver is doing each time an operation is executed.You can enable it with the
useUnifiedTopologyfeature flag passed to yourMongoClientconstructor, like so:const client = MongoClient('mongodb://localhost:27017', { useUnifiedTopology: true });This topology layer will replace the existing topologies in a breaking 4.x release later this year, so we strongly encourage our users to try it out as soon as possible.
A call to
withTransactionbegins a new transaction, executes the provided function, and then attempts to commit the transaction. The function passed towithTransactionmust take asessionparameter, and this session must be passed to all methods within the function. If some error is encountered, it will attempt to re-commit the transaction before ultimately failing back to the user after aborting the transaction. NOTE: A mentioned, the passed in function MAY be retried multiple times, please keep this in mind when executing non-database operations within the function.Here’s an example of it in action:
const client = new MongoClient(); await client.connect();const session = client.startSession();
// NOTE: the
withTransactionmethod only supports functions that return aPromisetry { await session.withTransaction(async function(session) { const coll = client.db('foo').collection('coll'); await coll.insertOne({ a: 42 }, { session }); }); } catch (err) { // transaction failed after attempted retry console.dir({ err }); }
Commits
6d4f18bchore(release): 3.2.31c5357afeat: update to mongodb-core v3.2.349c8ceffix(async): rewrote asyncGenerator in node < 10 syntax72e88adRevert "feat(lib): implement executeOperationV2"e1e24edRevert "refactor(collection): move operations in collection to their own clas...66e2580refactor(collection): move operations in collection to their own classesf2e3ec2docs: fix documentation typos4f4c45bstyle: fix test collection name typo16b2fdcstyle: fix test function name typof562714style: fix test name typos- 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 ignore this major versionwill 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 versionwill 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 dependencywill 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 labelswill set the current labels as the default for future PRs for this repo and language@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.