@nimbus-sh/loom 0.2.0 → 0.2.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.
Files changed (2) hide show
  1. package/README.md +8 -5
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -25,10 +25,13 @@ npm install @nimbus-sh/loom
25
25
 
26
26
  ## Requirements
27
27
 
28
- Set `compatibility_flags: ["nodejs_compat"]` in your Worker. Loom dispatches
29
- timers through fabric, and fabric's dispatcher imports `AsyncLocalStorage`
30
- from `node:async_hooks`. Without the flag the module fails to load at deploy
31
- time.
28
+ Use a compatibility date of 2026-08-04 or later, or list `nodejs_compat` in
29
+ `compatibility_flags`. Loom dispatches timers through fabric, and fabric's
30
+ dispatcher imports `AsyncLocalStorage` from `node:async_hooks`, which workerd
31
+ ships only under `nodejs_compat` (on by date from 2026-08-04). Without it the
32
+ module fails to load at deploy time. An actor that composes the fabric also
33
+ needs `enhanced_error_serialization` (2026-04-21 or later, or the flag); see
34
+ `@nimbus-sh/fabric`.
32
35
 
33
36
  Actor classes must be SQLite-backed Durable Objects. State and schedules
34
37
  live in the actor's own SQLite.
@@ -83,7 +86,7 @@ Bind the class, and give it a SQLite migration:
83
86
  ```jsonc
84
87
  // wrangler.jsonc
85
88
  {
86
- "compatibility_flags": ["nodejs_compat"],
89
+ "compatibility_date": "2026-09-26",
87
90
  "durable_objects": {
88
91
  "bindings": [{ "name": "Counter", "class_name": "Counter" }]
89
92
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nimbus-sh/loom",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "The actor framework of Nimbus: partyserver's surface on top, the @nimbus-sh/fabric Durable Object floor pre-wired underneath.",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -51,13 +51,13 @@
51
51
  "typecheck": "tsc --noEmit"
52
52
  },
53
53
  "dependencies": {
54
- "@nimbus-sh/fabric": "^0.8.0",
54
+ "@nimbus-sh/fabric": "^0.9.0",
55
55
  "cron-schedule": "^6.0.0",
56
56
  "partyserver": "0.5.10",
57
57
  "zod": "^4.4.3"
58
58
  },
59
59
  "devDependencies": {
60
- "@cloudflare/workers-types": "^4.20260424.1",
60
+ "@cloudflare/workers-types": "^5.20260928.1",
61
61
  "typescript": "^5.7.0"
62
62
  },
63
63
  "publishConfig": {