@akemona-org/strapi-connector-mongoose 3.13.2 → 3.14.1

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.
@@ -130,7 +130,7 @@ module.exports = async ({ models, target }, ctx) => {
130
130
  _.omitBy(definition.loadedModel, ({ type }) => type === 'virtual')
131
131
  );
132
132
 
133
- const findLifecycles = ['find', 'findOne', 'findOneAndUpdate', 'findOneAndRemove'];
133
+ const findLifecycles = ['find', 'findOne', 'findOneAndUpdate', 'findOneAndDelete'];
134
134
 
135
135
  /*
136
136
  Override populate path for polymorphic association.
package/lib/queries.js CHANGED
@@ -548,7 +548,7 @@ module.exports = ({ model, strapi }) => {
548
548
 
549
549
  async function deleteOne(id, { session = null } = {}) {
550
550
  const entry = await model
551
- .findOneAndRemove({ [model.primaryKey]: id }, { session })
551
+ .findOneAndDelete({ [model.primaryKey]: id }, { session })
552
552
  .populate(defaultPopulate());
553
553
 
554
554
  if (!entry) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.13.2",
6
+ "version": "3.14.1",
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.13.2",
21
+ "@akemona-org/strapi-utils": "3.14.1",
22
22
  "lodash": "4.17.21",
23
23
  "mongoose": "8.1.2",
24
24
  "mongoose-float": "1.0.4",
@@ -47,12 +47,12 @@
47
47
  "url": "https://github.com/akemona/strapi/issues"
48
48
  },
49
49
  "engines": {
50
- "node": ">=14.19.1 <=18.x.x",
50
+ "node": ">=18.17.0 <=20.x.x",
51
51
  "npm": ">=6.0.0"
52
52
  },
53
53
  "license": "SEE LICENSE IN LICENSE",
54
54
  "scripts": {
55
55
  "test": "echo \"no tests yet\""
56
56
  },
57
- "gitHead": "b0b438b488e293906dc4041239967f16c68e281a"
57
+ "gitHead": "bbf71e936ef4e8da75771eac49c5f50b36e5166e"
58
58
  }