@lostgradient/weft 0.10.0 → 0.11.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.
Files changed (34) hide show
  1. package/README.md +10 -2
  2. package/dist/cli-main.js +62 -62
  3. package/dist/core/checkpoint/serialization.js +2 -2
  4. package/dist/core/engine/disposal.js +4 -0
  5. package/dist/core/engine/engine-leak-warnings.d.ts +2 -0
  6. package/dist/core/engine/engine-leak-warnings.js +7 -1
  7. package/dist/core/engine/index.d.ts +6 -3
  8. package/dist/core/engine/index.js +19 -3
  9. package/dist/core/engine/inline-parking.js +14 -1
  10. package/dist/core/engine/internals.d.ts +21 -0
  11. package/dist/core/engine/operations-time.js +8 -28
  12. package/dist/core/engine/sleep-timer-acknowledgements.d.ts +15 -0
  13. package/dist/core/engine/sleep-timer-acknowledgements.js +144 -0
  14. package/dist/core/engine/termination/cleanup.js +3 -0
  15. package/dist/mcp/cli.js +17 -17
  16. package/dist/server/handler.js +12 -12
  17. package/dist/server/index.js +17 -17
  18. package/dist/service-worker/index.js +12 -12
  19. package/dist/service-worker/scheduler.js +1 -0
  20. package/dist/storage/lazy-postgres-pool.d.ts +38 -0
  21. package/dist/storage/lazy-postgres-pool.js +38 -0
  22. package/dist/storage/neon-batch.d.ts +8 -8
  23. package/dist/storage/neon.d.ts +26 -79
  24. package/dist/storage/neon.js +3 -3
  25. package/dist/storage/postgres-key-value-queries.d.ts +1 -1
  26. package/dist/storage/postgres-key-value-queries.js +1 -1
  27. package/dist/storage/postgres-key-value-storage.d.ts +110 -0
  28. package/dist/storage/postgres-key-value-storage.js +204 -0
  29. package/dist/storage/postgres.d.ts +59 -0
  30. package/dist/storage/postgres.js +15 -0
  31. package/dist/testing/index.js +26 -26
  32. package/dist/version.d.ts +1 -1
  33. package/dist/version.js +1 -1
  34. package/package.json +16 -3
package/dist/version.d.ts CHANGED
@@ -9,4 +9,4 @@
9
9
  * console.log(`Running Weft ${VERSION}`);
10
10
  * ```
11
11
  */
12
- export declare const VERSION = "0.10.0";
12
+ export declare const VERSION = "0.11.0";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "0.10.0";
1
+ export const VERSION = "0.11.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lostgradient/weft",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "A Bun-native durable execution engine with pluggable key-value storage.",
5
5
  "keywords": [
6
6
  "bun",
@@ -117,6 +117,12 @@
117
117
  "import": "./dist/storage/neon.js",
118
118
  "default": "./dist/storage/neon.js"
119
119
  },
120
+ "./storage/postgres": {
121
+ "types": "./dist/storage/postgres.d.ts",
122
+ "bun": "./dist/storage/postgres.js",
123
+ "import": "./dist/storage/postgres.js",
124
+ "default": "./dist/storage/postgres.js"
125
+ },
120
126
  "./storage/indexeddb": {
121
127
  "types": "./dist/storage/indexeddb.d.ts",
122
128
  "import": "./dist/storage/indexeddb.js",
@@ -214,7 +220,7 @@
214
220
  "markdown-doctests:inventory": "bun run scripts/extract-markdown-doctests.ts inventory",
215
221
  "prepack": "bun run scripts/run-gates.ts prepack",
216
222
  "pr:title": "bun run scripts/pr-title.ts",
217
- "prepare": "husky",
223
+ "prepare": "husky && bun run scripts/husky/verify-hooks-installed.ts",
218
224
  "prepublishOnly": "bun run validate",
219
225
  "start": "bun run src/index.ts",
220
226
  "test": "bun test --timeout 15000 --path-ignore-patterns='src/benchmarks/**' --path-ignore-patterns='examples/checkout/**' --path-ignore-patterns='src/service-worker/service-worker-browser.test.ts' --path-ignore-patterns='src/storage/indexeddb-browser.test.ts' --path-ignore-patterns='src/storage/web-extension-browser.test.ts'",
@@ -233,6 +239,7 @@
233
239
  "verify:jsdoc:doctests": "bun run scripts/verify-jsdoc-doctests.ts",
234
240
  "verify:jsdoc:full": "bun run build && bun run verify:jsdoc && bun run verify:jsdoc:doctests && bun run verify:jsdoc:declarations && bun run verify:markdown-doctests",
235
241
  "verify:markdown-doctests": "bun run scripts/extract-markdown-doctests.ts verify",
242
+ "verify:markdown-doctests:ratchet": "bun run scripts/extract-markdown-doctests.ts ratchet",
236
243
  "verify:no-test-sleeps": "bun run scripts/verify-no-test-sleeps.ts",
237
244
  "verify:portability": "bun run scripts/verify-portability.ts",
238
245
  "verify:public-api-jsdoc": "bun run build && bun run verify:jsdoc",
@@ -263,6 +270,7 @@
263
270
  "@libsql/client": "^0.17.2",
264
271
  "@neondatabase/serverless": "^1.1.0",
265
272
  "@types/bun": "^1.3.13",
273
+ "@types/pg": "^8.11.0",
266
274
  "better-sqlite3": "^12.8.0",
267
275
  "chalk": "^5.6.2",
268
276
  "change-case": "^5.4.4",
@@ -272,6 +280,7 @@
272
280
  "lmdb": "^3.5.2",
273
281
  "oxlint": "^1.56.0",
274
282
  "oxlint-tsgolint": "^0.17.0",
283
+ "pg": "^8.11.0",
275
284
  "playwright": "^1.60.0",
276
285
  "prettier": "^3.8.1",
277
286
  "prettier-plugin-organize-imports": "^4.3.0",
@@ -283,7 +292,8 @@
283
292
  "@neondatabase/serverless": "^1.1.0",
284
293
  "@opentelemetry/api": "^1.0.0",
285
294
  "better-sqlite3": "^12.8.0",
286
- "lmdb": "^3.5.2"
295
+ "lmdb": "^3.5.2",
296
+ "pg": "^8.11.0"
287
297
  },
288
298
  "peerDependenciesMeta": {
289
299
  "@libsql/client": {
@@ -300,6 +310,9 @@
300
310
  },
301
311
  "lmdb": {
302
312
  "optional": true
313
+ },
314
+ "pg": {
315
+ "optional": true
303
316
  }
304
317
  },
305
318
  "optionalDependencies": {