@akemona-org/strapi-connector-mongoose 3.14.0 → 3.14.2

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/lib/index.js +1 -3
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -62,8 +62,7 @@ module.exports = function (strapi) {
62
62
 
63
63
  _.defaults(connection.settings, strapi.config.hook.settings.mongoose);
64
64
 
65
- const { uri, host, port, username, password, database, srv, useUnifiedTopology } =
66
- connection.settings;
65
+ const { uri, host, port, username, password, database, srv } = connection.settings;
67
66
 
68
67
  // eslint-disable-next-line node/no-deprecated-api
69
68
  const uriOptions = uri ? url.parse(uri, true).query : {};
@@ -91,7 +90,6 @@ module.exports = function (strapi) {
91
90
 
92
91
  connectOptions.ssl = ssl === true || ssl === 'true';
93
92
  connectOptions.dbName = database;
94
- connectOptions.useUnifiedTopology = useUnifiedTopology || true;
95
93
 
96
94
  try {
97
95
  const connectionURL = createConnectionURL({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.14.0",
6
+ "version": "3.14.2",
7
7
  "description": "Mongoose hook for the Strapi framework",
8
8
  "homepage": "https://strapi.akemona.com",
9
9
  "keywords": [
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "main": "./lib",
20
20
  "dependencies": {
21
- "@akemona-org/strapi-utils": "3.14.0",
21
+ "@akemona-org/strapi-utils": "3.14.2",
22
22
  "lodash": "4.17.21",
23
23
  "mongoose": "8.1.2",
24
24
  "mongoose-float": "1.0.4",
@@ -54,5 +54,5 @@
54
54
  "scripts": {
55
55
  "test": "echo \"no tests yet\""
56
56
  },
57
- "gitHead": "241f7ad8f4277aa7f522f580557e15d65af4a0cc"
57
+ "gitHead": "a1766a21d909726ba2f64588830ac4b3467683a7"
58
58
  }