@eco-foundation/api-schemas 0.4.0 → 0.4.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/README.md +39 -7
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/index.js +3 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/v1/errors/problem.js.map +1 -1
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -14,13 +14,13 @@ While the package is 0.x, pin the patch range or the exact version:
|
|
|
14
14
|
```json
|
|
15
15
|
{
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@eco-foundation/api-schemas": "~0.4.
|
|
17
|
+
"@eco-foundation/api-schemas": "~0.4.1"
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
**Never write `^0`.** npm resolves `^0.x` as `>=0.0.0 <1.0.0`, so it silently accepts every
|
|
23
|
-
future breaking `0.y` — it is not a pin at all. Use `~0.4.
|
|
23
|
+
future breaking `0.y` — it is not a pin at all. Use `~0.4.1` or the exact `0.4.1`.
|
|
24
24
|
|
|
25
25
|
A matching version string is not evidence of a matching artifact: also compare
|
|
26
26
|
`V1_SCHEMA_DIGEST` (see [Invariants](#invariants-enforced-in-ci)). Two builds both called
|
|
@@ -30,6 +30,25 @@ A matching version string is not evidence of a matching artifact: also compare
|
|
|
30
30
|
zod-bearing entry point. Which case you are in is decided entirely by your imports; see
|
|
31
31
|
[Consumers](#consumers).
|
|
32
32
|
|
|
33
|
+
## Migrating 0.4.0 -> 0.4.1
|
|
34
|
+
|
|
35
|
+
Purely additive; no schema, wire, or digest change. `V1_SCHEMA_DIGEST` is UNCHANGED, so this is
|
|
36
|
+
not a coordinated-rollout release — a fleet may run 0.4.0 and 0.4.1 side by side.
|
|
37
|
+
|
|
38
|
+
**Added — the two conformance skip reasons are exported constants.**
|
|
39
|
+
`SIDE_EFFECT_SKIP_REASON` and `DRAFT_SKIP_REASON` are now named exports of the `./testing`
|
|
40
|
+
subpath. They were previously inline literals in this package's own spec, which meant a consumer
|
|
41
|
+
pinning them had to copy the strings and had no way to notice a rewording — the published tarball
|
|
42
|
+
ships `dist/`, never the sources those literals lived in. Import them instead of copying:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
import { DRAFT_SKIP_REASON, SIDE_EFFECT_SKIP_REASON } from '@eco-foundation/api-schemas/testing';
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This is also the first release cut from `eco/eco-api-schemas`, the package's own repository. It
|
|
49
|
+
previously shipped from a pnpm workspace inside `eco-incorp/router`; nothing about the published
|
|
50
|
+
artifact's contents or layout changed with the move.
|
|
51
|
+
|
|
33
52
|
## Migrating 0.3.1 -> 0.4.0
|
|
34
53
|
|
|
35
54
|
`0.3.1` was never published, so **`0.4.0` is the upgrade from `0.3.0`** and carries `0.3.1`'s
|
|
@@ -135,6 +154,13 @@ Tron-source funding quote. Do not read the SVM lane as a precedent that a `tvm`
|
|
|
135
154
|
behind it: adding one would be a breaking wire change with its own migration note, and nothing
|
|
136
155
|
here commits `/v1` to that surface.
|
|
137
156
|
|
|
157
|
+
**Added — `./package.json` is an exported subpath.**
|
|
158
|
+
`require('@eco-foundation/api-schemas/package.json')` previously threw
|
|
159
|
+
`ERR_PACKAGE_PATH_NOT_EXPORTED`, which broke tooling that reads a dependency's manifest for
|
|
160
|
+
its version. Nothing else changes; it is purely additive. (`prepack` now also rebuilds
|
|
161
|
+
`dist/` on a manual `npm pack`/`npm publish`, which affects publishing rather than
|
|
162
|
+
consuming.)
|
|
163
|
+
|
|
138
164
|
**Added — the `errors` problem extension (per-field caller faults).**
|
|
139
165
|
|
|
140
166
|
```json
|
|
@@ -150,8 +176,13 @@ here commits `/v1` to that surface.
|
|
|
150
176
|
|
|
151
177
|
`errors` is **OPTIONAL**: an `invalid-request` for a body that is not JSON at all has no
|
|
152
178
|
field to name, so absence is legal and means exactly that. `field` names the offending
|
|
153
|
-
input in YOUR terms — the path into what you sent
|
|
154
|
-
|
|
179
|
+
input in YOUR terms — the path into what you sent, with **no `body.`/`query.` prefix**:
|
|
180
|
+
`source.chainId`, `funder`, `limit`. `detail` obeys the same free-text policy as the
|
|
181
|
+
problem's own `detail`.
|
|
182
|
+
|
|
183
|
+
Because there is no prefix, `field` alone does not say whether the value came from the body
|
|
184
|
+
or the query string. Every /v1 endpoint takes its parameters in exactly one of the two, so
|
|
185
|
+
**key on the route plus `field`**, not on `field` alone.
|
|
155
186
|
|
|
156
187
|
**`errors` is NOT `solverErrors`.** They sit adjacent and answer different questions:
|
|
157
188
|
`errors` is your own fault (a field you sent, and naming it is how you fix it);
|
|
@@ -546,12 +577,13 @@ Two `catalog:check` outcomes are NOT failures and must not be confused with each
|
|
|
546
577
|
|
|
547
578
|
## Publishing
|
|
548
579
|
|
|
549
|
-
Tag `
|
|
550
|
-
|
|
580
|
+
Tag `v<version>` (must equal `package.json` version) — the `publish` workflow verifies and
|
|
581
|
+
publishes. It needs the `NPM_TOKEN` repo secret (an npm automation token with publish rights on
|
|
582
|
+
`@eco-foundation`). It fails with `::error::tag version <x> != package version <y>`
|
|
551
583
|
if the two drift, so a stale tag can never publish a mismatched artifact.
|
|
552
584
|
|
|
553
585
|
Semver: breaking schema change = major, additive = minor; consumers pin minor. **While the
|
|
554
|
-
package is 0.x, "pin minor" means `~0.4.
|
|
586
|
+
package is 0.x, "pin minor" means `~0.4.1` or the exact `0.4.1` — never `^0`** (see
|
|
555
587
|
[Install](#install)). Consumers additionally compare `V1_SCHEMA_DIGEST`: a matching version
|
|
556
588
|
string is not evidence of a matching artifact. `/v1/routes` is draft-tagged and exempt until its
|
|
557
589
|
stability flips.
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export declare function assertMatchesV1Schema(endpointId: V1EndpointId, payload:
|
|
|
5
5
|
direction?: 'request' | 'response';
|
|
6
6
|
}): void;
|
|
7
7
|
export declare function loadV1Fixtures(): readonly V1Fixture[];
|
|
8
|
+
export declare const SIDE_EFFECT_SKIP_REASON = "sideEffect fixture \u2014 covered by flow E2Es";
|
|
9
|
+
export declare const DRAFT_SKIP_REASON = "draft endpoint (x-stability: draft) \u2014 not served at launch";
|
package/dist/testing/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DRAFT_SKIP_REASON = exports.SIDE_EFFECT_SKIP_REASON = void 0;
|
|
3
4
|
exports.assertMatchesV1Schema = assertMatchesV1Schema;
|
|
4
5
|
exports.loadV1Fixtures = loadV1Fixtures;
|
|
5
6
|
const zod_1 = require("zod");
|
|
@@ -24,4 +25,6 @@ function assertMatchesV1Schema(endpointId, payload, opts = {}) {
|
|
|
24
25
|
function loadV1Fixtures() {
|
|
25
26
|
return fixtures_1.V1_FIXTURES;
|
|
26
27
|
}
|
|
28
|
+
exports.SIDE_EFFECT_SKIP_REASON = 'sideEffect fixture — covered by flow E2Es';
|
|
29
|
+
exports.DRAFT_SKIP_REASON = 'draft endpoint (x-stability: draft) — not served at launch';
|
|
27
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":";;;AA0BA,sDAqBC;AAED,wCAEC;AAnDD,6BAAwB;AAExB,0CAAqD;AACrD,uDAA4F;AAY5F,MAAM,WAAW,GAA+C,uBAAY,CAAC;AAW7E,SAAgB,qBAAqB,CACnC,UAAwB,EACxB,OAAgB,EAChB,OAA+C,EAAE;IAEjD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,UAAU,CAAC;IAC/C,MAAM,GAAG,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;IACpC,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,MAAM,IAAI,KAAK,CACb,4BAA4B,MAAM,CAAC,UAAU,CAAC,iBAAiB,SAAS,KAAK;YAC3E,cAAc,MAAM,CAAC,IAAI,CAAC,uBAAY,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CACvD,CAAC;IACJ,CAAC;IACD,MAAM,MAAM,GAA0B,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC;IAC3F,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,UAAU,WAAW,SAAS,SAAS,CAAC,CAAC;IACzE,MAAM,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,MAAM,IAAI,KAAK,CACb,0BAA0B,UAAU,IAAI,SAAS,aAAa,OAAC,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC9F,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAgB,cAAc;IAC5B,OAAO,sBAAW,CAAC;AACrB,CAAC;AASY,QAAA,uBAAuB,GAAG,2CAA2C,CAAC;AACtE,QAAA,iBAAiB,GAAG,4DAA4D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"problem.js","sourceRoot":"","sources":["../../../src/v1/errors/problem.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"problem.js","sourceRoot":"","sources":["../../../src/v1/errors/problem.ts"],"names":[],"mappings":";;;AAgPA,sCAEC;AAYD,sDAOC;AA4BD,sDAQC;AAED,kDAsBC;AAED,0BAsBC;AAzVD,6BAAwB;AAExB,8CAA2C;AAC3C,uCAA6F;AA8BhF,QAAA,oBAAoB,GAAG,0BAA0B,CAAC;AAsFlD,QAAA,mBAAmB,GAAG,OAAC,CAAC,WAAW,CAAC;IAC/C,MAAM,EAAE,uBAAU;IACl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,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC9D,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eco-foundation/api-schemas",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Zod-first schemas, error catalog, golden fixtures, and generated OpenAPI 3.1 for the Eco /v1 API",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/jest": "^29.5.12",
|
|
57
|
+
"@types/node": "22.20.0",
|
|
57
58
|
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
58
59
|
"@typescript-eslint/parser": "^7.9.0",
|
|
59
60
|
"eslint": "^8.57.0",
|
|
@@ -80,6 +81,7 @@
|
|
|
80
81
|
"openapi:generate": "pnpm run build && node dist/scripts/generate-openapi.js",
|
|
81
82
|
"openapi:check": "node dist/scripts/generate-openapi.js --check",
|
|
82
83
|
"digest:generate": "pnpm run openapi:generate && node dist/scripts/generate-build-digest.js",
|
|
83
|
-
"digest:check": "node dist/scripts/generate-build-digest.js --check"
|
|
84
|
+
"digest:check": "node dist/scripts/generate-build-digest.js --check",
|
|
85
|
+
"canon:check": "scripts/check-vendored-signature-vectors.sh"
|
|
84
86
|
}
|
|
85
87
|
}
|