Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
DeprecationWarnings: autoReconnect, reconnectTries, reconnectInterval #948
I'm using the Docker Image mongo:3.6 and switched the "useUnifiedTopology" parameter to true as advised. If I do so I get the following deprecation warnings:
(node:51) DeprecationWarning: The option autoReconnect is incompatible with the unified topology, please read more by visiting http://bit.ly/2D8WfT6
The fix checks if "useUnifiedTopology" is set and then doesn't use the deprecated options. If "useUnifiedTopology" isn't used, the options stay the same.
…ul-shutdown * 'master' of https://github.com/agenda/agenda: (58 commits) DeprecationWarnings: autoReconnect, reconnectTries, reconnectInterval (agenda#948) Update dependency eslint-plugin-ava to v10.2.0 (agenda#930) Fix for skipImmediate resetting nextRunAt to current date (agenda#860) Update dependency xo to v0.26.1 (agenda#926) Ability to set a skip when querying jobs. (agenda#898) 3.0.0 Update History.md Prepare v3.0.0 changelog Support of MongoDB: Unified Topology Design (agenda#921) Fix wrong path in DOCS (agenda#907) Update History.md Update dependency xo to v0.26.0 (agenda#922) Update dependency eslint-plugin-unicorn to v16 (agenda#920) Update dependency eslint-plugin-ava to v10 (agenda#912) Update dependency eslint-plugin-node to v11 (agenda#903) Drop Node.js 8 support (agenda#925) Update History.md Update History.md Update dependency mongodb to ~3.5.0 (agenda#910) Update dependency eslint-plugin-import to v2.20.1 (agenda#908) ... # Conflicts: # lib/job/run.js