@substrat-run/contracts 0.92.0 → 0.92.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.
- package/dist/errors.d.ts +2 -2
- package/dist/errors.js +2 -2
- package/package.json +1 -1
package/dist/errors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* The ONE error model for every surface on the platform (`docs/
|
|
3
|
+
* The ONE error model for every surface on the platform (`docs/architecture/error-model.md`,
|
|
4
4
|
* issue #113): RFC 9457 `application/problem+json`, a CLOSED code taxonomy, and one
|
|
5
5
|
* mapper — replacing the seven hand-rolled `onError` handlers that today choose a
|
|
6
6
|
* status by matching on error message TEXT.
|
|
@@ -299,7 +299,7 @@ export declare function problemForStatus(status: number, detail?: string, instan
|
|
|
299
299
|
export declare const DOCUMENTED_ERROR_CODES: readonly ErrorCode[];
|
|
300
300
|
/**
|
|
301
301
|
* An error flattened for a boundary that carries only data — the DO↔coordinator wire
|
|
302
|
-
* (#113 phase 3, `docs/
|
|
302
|
+
* (#113 phase 3, `docs/architecture/error-model.md` §3).
|
|
303
303
|
*
|
|
304
304
|
* This exists because a THROW cannot carry structure across the ScopeDO hop: workerd
|
|
305
305
|
* delivers a thrown error's message and nothing else, folding `name` into it and
|
package/dist/errors.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { entityRef } from './events.js';
|
|
3
3
|
/**
|
|
4
|
-
* The ONE error model for every surface on the platform (`docs/
|
|
4
|
+
* The ONE error model for every surface on the platform (`docs/architecture/error-model.md`,
|
|
5
5
|
* issue #113): RFC 9457 `application/problem+json`, a CLOSED code taxonomy, and one
|
|
6
6
|
* mapper — replacing the seven hand-rolled `onError` handlers that today choose a
|
|
7
7
|
* status by matching on error message TEXT.
|
|
@@ -429,7 +429,7 @@ export const DOCUMENTED_ERROR_CODES = [
|
|
|
429
429
|
];
|
|
430
430
|
/**
|
|
431
431
|
* An error flattened for a boundary that carries only data — the DO↔coordinator wire
|
|
432
|
-
* (#113 phase 3, `docs/
|
|
432
|
+
* (#113 phase 3, `docs/architecture/error-model.md` §3).
|
|
433
433
|
*
|
|
434
434
|
* This exists because a THROW cannot carry structure across the ScopeDO hop: workerd
|
|
435
435
|
* delivers a thrown error's message and nothing else, folding `name` into it and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrat-run/contracts",
|
|
3
|
-
"version": "0.92.
|
|
3
|
+
"version": "0.92.1",
|
|
4
4
|
"description": "Substrat kernel contract schemas — Zod is the source of truth (master plan D-22); OAS/JSON Schema are emitted artifacts",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|