@gscdump/engine-sqlite 3.7.0 → 4.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.
@@ -208,6 +208,9 @@ function createD1ManifestStore(db) {
208
208
  }
209
209
  }).run();
210
210
  }
211
+ async function setSyncStates(scopes, state, detail) {
212
+ for (const scope of scopes) await setSyncState(scope, state, detail);
213
+ }
211
214
  async function withLock(scope, fn) {
212
215
  const key = lockScopeKey(scope);
213
216
  const holderId = crypto.randomUUID();
@@ -274,6 +277,7 @@ function createD1ManifestStore(db) {
274
277
  bumpWatermark,
275
278
  getSyncStates,
276
279
  setSyncState,
280
+ setSyncStates,
277
281
  withLock,
278
282
  purgeTenant
279
283
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gscdump/engine-sqlite",
3
3
  "type": "module",
4
- "version": "3.7.0",
4
+ "version": "4.0.0",
5
5
  "description": "SQLite / D1 engine adapter for @gscdump/analysis — typed analytics over sqlite-proxy executors (Cloudflare D1, libsql).",
6
6
  "author": {
7
7
  "name": "Harlan Wilton",
@@ -38,17 +38,17 @@
38
38
  "dist"
39
39
  ],
40
40
  "engines": {
41
- "node": ">=22"
41
+ "node": ">=22.13.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "drizzle-orm": "1.0.0-rc.4"
45
45
  },
46
46
  "dependencies": {
47
- "@gscdump/engine": "^3.7.0"
47
+ "@gscdump/engine": "^4.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "drizzle-orm": "1.0.0-rc.4",
51
- "vitest": "^5.0.0"
51
+ "vitest": "^5.0.1"
52
52
  },
53
53
  "scripts": {
54
54
  "build": "obuild",