Skip to content

Commit

Permalink
BREAKING CHANGE: allow using mongodb node driver 6 as well as 5 re: #112
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 25, 2024
1 parent 30e06eb commit 3bcae9a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ var store = new MongoDBStore({
// Lets you set options passed to `MongoClient.connect()`. Useful for
// configuring connectivity or working around deprecation warnings.
connectionOptions: {
useNewUrlParser: true,
useUnifiedTopology: true,
serverSelectionTimeoutMS: 10000
}
});
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const OptionsType = new Archetype({
},
connectionOptions: {
$type: Object,
$default: () => ({ useNewUrlParser: true, useUnifiedTopology : true })
$default: null
},
expires: {
$type: 'number',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"archetype": "0.13.x",
"mongodb": "5.x"
"mongodb": "5.x || 6.x"
},
"devDependencies": {
"acquit": "1.0.5",
Expand Down
2 changes: 0 additions & 2 deletions test/examples.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,6 @@ describe('MongoDBStore', function() {
// Lets you set options passed to `MongoClient.connect()`. Useful for
// configuring connectivity or working around deprecation warnings.
connectionOptions: {
useNewUrlParser: true,
useUnifiedTopology: true,
serverSelectionTimeoutMS: 10000
}
});
Expand Down

0 comments on commit 3bcae9a

Please sign in to comment.