@bedrockio/model 0.11.1 → 0.11.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.11.2
2
+
3
+ - Fixed issue with non-async hooks hanging.
4
+ - Further verson bumps.
5
+
1
6
  ## 0.11.1
2
7
 
3
8
  - Changed default sort field in search to `_id`.
@@ -485,6 +485,8 @@ function runHook(query, fn, check, next, args) {
485
485
  const ret = fn.apply(query, args);
486
486
  if (ret instanceof Promise) {
487
487
  ret.finally(next);
488
+ } else {
489
+ next();
488
490
  }
489
491
  } else {
490
492
  next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bedrockio/model",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Bedrock utilities for model creation.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@bedrockio/yada": "^1.4.1",
34
- "mongoose": "^8.13.0"
34
+ "mongoose": "^8.13.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@babel/cli": "^7.26.4",
@@ -40,18 +40,18 @@
40
40
  "@bedrockio/eslint-plugin": "^1.1.7",
41
41
  "@bedrockio/prettier-config": "^1.0.2",
42
42
  "@bedrockio/yada": "^1.4.1",
43
- "@shelf/jest-mongodb": "^4.3.2",
43
+ "@shelf/jest-mongodb": "^5.1.0",
44
44
  "eslint": "^9.19.0",
45
45
  "jest": "^29.7.0",
46
46
  "jest-environment-node": "^29.7.0",
47
- "mongodb": "^6.12.0",
48
- "mongoose": "^8.13.0",
47
+ "mongodb": "^6.15.0",
48
+ "mongoose": "^8.13.1",
49
49
  "prettier": "^3.4.2",
50
50
  "typescript": "^5.7.2"
51
51
  },
52
52
  "prettier": "@bedrockio/prettier-config",
53
53
  "volta": {
54
- "node": "23.7.0",
54
+ "node": "22.14.0",
55
55
  "yarn": "1.22.22"
56
56
  }
57
57
  }
@@ -538,6 +538,8 @@ function runHook(query, fn, check, next, args) {
538
538
  const ret = fn.apply(query, args);
539
539
  if (ret instanceof Promise) {
540
540
  ret.finally(next);
541
+ } else {
542
+ next();
541
543
  }
542
544
  } else {
543
545
  next();