@sprucelabs/data-store-plugins 5.0.4 → 6.0.0

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.
@@ -13,7 +13,7 @@ export default class OptimisticLockingPlugin implements DataStorePlugin {
13
13
  [x: string]: any;
14
14
  };
15
15
  }>;
16
- willUpdateOne(query: Record<string, any>): Promise<{
16
+ willUpdate(query: Record<string, any>): Promise<{
17
17
  query: {
18
18
  [x: string]: any;
19
19
  };
@@ -51,7 +51,7 @@ export default class OptimisticLockingPlugin {
51
51
  };
52
52
  });
53
53
  }
54
- willUpdateOne(query) {
54
+ willUpdate(query) {
55
55
  return __awaiter(this, void 0, void 0, function* () {
56
56
  this.assertLockFieldInQuery(query);
57
57
  const q = yield this.assertLockAndRemoveFromQuery(query);
@@ -13,7 +13,7 @@ export default class OptimisticLockingPlugin implements DataStorePlugin {
13
13
  [x: string]: any;
14
14
  };
15
15
  }>;
16
- willUpdateOne(query: Record<string, any>): Promise<{
16
+ willUpdate(query: Record<string, any>): Promise<{
17
17
  query: {
18
18
  [x: string]: any;
19
19
  };
@@ -42,7 +42,7 @@ class OptimisticLockingPlugin {
42
42
  query: q,
43
43
  };
44
44
  }
45
- async willUpdateOne(query) {
45
+ async willUpdate(query) {
46
46
  this.assertLockFieldInQuery(query);
47
47
  const q = await this.assertLockAndRemoveFromQuery(query);
48
48
  return { query: q };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprucelabs/data-store-plugins",
3
- "version": "5.0.4",
3
+ "version": "6.0.0",
4
4
  "files": [
5
5
  "build"
6
6
  ],
@@ -41,16 +41,16 @@
41
41
  "watch.tsc": "tsc -w"
42
42
  },
43
43
  "devDependencies": {
44
- "@sprucelabs/esm-postbuild": "^7.0.16",
45
- "@sprucelabs/jest-json-reporter": "^9.0.26",
46
- "@sprucelabs/jest-sheets-reporter": "^4.0.16",
44
+ "@sprucelabs/esm-postbuild": "^7.0.17",
45
+ "@sprucelabs/jest-json-reporter": "^9.0.27",
46
+ "@sprucelabs/jest-sheets-reporter": "^4.0.17",
47
47
  "@sprucelabs/resolve-path-aliases": "^3.0.14",
48
48
  "@sprucelabs/semantic-release": "^5.0.2",
49
- "@sprucelabs/spruce-store-plugin": "^70.0.6",
50
- "@sprucelabs/spruce-test-fixtures": "^70.0.6",
49
+ "@sprucelabs/spruce-store-plugin": "^71.0.0",
50
+ "@sprucelabs/spruce-test-fixtures": "^71.0.0",
51
51
  "@sprucelabs/test": "^10.0.11",
52
- "@sprucelabs/test-utils": "^6.0.38",
53
- "@types/node": "^24.0.14",
52
+ "@sprucelabs/test-utils": "^6.0.39",
53
+ "@types/node": "^24.0.15",
54
54
  "chokidar-cli": "^3.0.0",
55
55
  "concurrently": "^9.2.0",
56
56
  "eslint": "^9.31.0",
@@ -89,8 +89,8 @@
89
89
  }
90
90
  },
91
91
  "dependencies": {
92
- "@sprucelabs/data-stores": "^29.0.45",
92
+ "@sprucelabs/data-stores": "^30.0.1",
93
93
  "@sprucelabs/error": "^7.0.25",
94
- "@sprucelabs/schema": "^32.0.41"
94
+ "@sprucelabs/schema": "^32.0.42"
95
95
  }
96
96
  }