@substrat-run/adapter-cloudflare 0.136.0 → 0.138.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.
@@ -0,0 +1,21 @@
1
+ /**
2
+ * #1834: what the scope DO answers, INSTEAD of running anything, when a system-door call lands on an
3
+ * instance other than the one the door's gate read. A PITR restore always restarts the scope's
4
+ * object, so such a call may be meeting rewound storage the gate never saw; the door gates again
5
+ * and retries. It is an answer, not an error: only the DO's pin check produces it, and nothing an
6
+ * operation throws can look like it, because an operation's failure travels as `failure`.
7
+ */
8
+ export interface SystemDoorMoved {
9
+ readonly systemDoorMoved: true;
10
+ }
11
+ /** The one value of `SystemDoorMoved`. */
12
+ export declare const SYSTEM_DOOR_MOVED: SystemDoorMoved;
13
+ /** Is this answer the DO's "the pin missed", rather than the call's own answer? */
14
+ export declare function isSystemDoorMoved(answer: unknown): answer is SystemDoorMoved;
15
+ /**
16
+ * #1834: how many times a system-door call is gated again after the DO answered moved. Each such
17
+ * answer means the scope's object restarted between the gate and the call. A restart is rare, so a
18
+ * call still moving after this many is refused (`unavailable`) rather than retried without end.
19
+ */
20
+ export declare const SYSTEM_DOOR_REGATES = 3;
21
+ //# sourceMappingURL=system-door.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-door.d.ts","sourceRoot":"","sources":["../src/system-door.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,eAAe,EAAE,IAAI,CAAC;CAChC;AAED,0CAA0C;AAC1C,eAAO,MAAM,iBAAiB,EAAE,eAA2C,CAAC;AAE5E,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,IAAI,eAAe,CAE5E;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAC"}
@@ -0,0 +1,13 @@
1
+ /** The one value of `SystemDoorMoved`. */
2
+ export const SYSTEM_DOOR_MOVED = { systemDoorMoved: true };
3
+ /** Is this answer the DO's "the pin missed", rather than the call's own answer? */
4
+ export function isSystemDoorMoved(answer) {
5
+ return typeof answer === 'object' && answer !== null && answer.systemDoorMoved === true;
6
+ }
7
+ /**
8
+ * #1834: how many times a system-door call is gated again after the DO answered moved. Each such
9
+ * answer means the scope's object restarted between the gate and the call. A restart is rare, so a
10
+ * call still moving after this many is refused (`unavailable`) rather than retried without end.
11
+ */
12
+ export const SYSTEM_DOOR_REGATES = 3;
13
+ //# sourceMappingURL=system-door.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system-door.js","sourceRoot":"","sources":["../src/system-door.ts"],"names":[],"mappings":"AAWA,0CAA0C;AAC1C,MAAM,CAAC,MAAM,iBAAiB,GAAoB,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;AAE5E,mFAAmF;AACnF,MAAM,UAAU,iBAAiB,CAAC,MAAe;IAC/C,OAAO,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,IAAK,MAAwC,CAAC,eAAe,KAAK,IAAI,CAAC;AAC7H,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@substrat-run/adapter-cloudflare",
3
- "version": "0.136.0",
3
+ "version": "0.138.0",
4
4
  "description": "Cloudflare Durable-Object scope host (D-14): DO-per-scope, real kernel semantics on Workers",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -26,22 +26,22 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@substrat-run/contracts": "^0.136.0",
30
- "@substrat-run/kernel": "^0.136.0"
29
+ "@substrat-run/contracts": "^0.138.0",
30
+ "@substrat-run/kernel": "^0.138.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@cloudflare/vitest-pool-workers": "^0.12.21",
34
34
  "@cloudflare/workers-types": "^4.20250109.0",
35
- "hono": "^4.13.9",
35
+ "hono": "^4.13.12",
36
36
  "typescript": "^7.0.0",
37
37
  "vitest": "^3.2.7",
38
- "wrangler": "^4.139.0",
39
- "@substrat-run/attachment-extractors": "^0.1.2",
40
- "@substrat-run/cli": "^0.40.0",
41
- "@substrat-run/contract-tests": "^0.136.0",
42
- "@substrat-run/control-plane-api": "^0.136.0",
43
- "@substrat-run/vertical-host": "^0.136.0",
44
- "@substrat-run/vertical-auth": "^0.18.5"
38
+ "wrangler": "^4.146.0",
39
+ "@substrat-run/attachment-extractors": "^0.1.4",
40
+ "@substrat-run/contract-tests": "^0.138.0",
41
+ "@substrat-run/vertical-auth": "^0.19.1",
42
+ "@substrat-run/control-plane-api": "^0.138.0",
43
+ "@substrat-run/cli": "^0.40.2",
44
+ "@substrat-run/vertical-host": "^0.138.0"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"