mongoplusplus 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/mongoplus.js +3 -6
  2. package/package.json +2 -2
package/mongoplus.js CHANGED
@@ -32,15 +32,12 @@ class Mongoplus {
32
32
  return uri;
33
33
  }
34
34
 
35
- connectToAll() {
35
+ connectToAll(connectionOptions = {}) {
36
36
  for (let i = 0; i < this.mongoURI.length; i++) {
37
37
  const uri = this.mongoURI[i].replaceAll("readonly:", '');
38
38
 
39
- // Update deprecated SSL options for MongoDB Node Driver 6+
40
- const connectionOptions = {
41
- useNewUrlParser: true,
42
- useUnifiedTopology: true,
43
- };
39
+
40
+
44
41
 
45
42
  const con = mongoose.createConnection(uri, connectionOptions);
46
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mongoplusplus",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "load balancing of read and write operations across multiple MongoDB servers ",
5
5
  "main": "mongoplus.js",
6
6
  "types": "index.d.ts",
@@ -60,4 +60,4 @@
60
60
  },
61
61
  "./package.json": "./package.json"
62
62
  }
63
- }
63
+ }