@contractkit/plugin-typescript 0.29.0 → 0.31.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.
@@ -5,9 +5,9 @@ $ tsup src/index.ts --format esm --sourcemap --dts && tsc --emitDeclarationOnly
5
5
  CLI tsup v8.5.1
6
6
  CLI Target: esnext
7
7
  ESM Build start
8
- ESM dist/index.js 178.19 KB
9
- ESM dist/index.js.map 395.78 KB
10
- ESM ⚡️ Build success in 396ms
8
+ ESM dist/index.js 188.58 KB
9
+ ESM dist/index.js.map 418.71 KB
10
+ ESM ⚡️ Build success in 349ms
11
11
  DTS Build start
12
- DTS ⚡️ Build success in 6065ms
12
+ DTS ⚡️ Build success in 6786ms
13
13
  DTS dist/index.d.ts 4.55 KB
@@ -3,34 +3,34 @@ $ vitest run --coverage
3
3
   RUN  v4.1.5 /home/runner/work/ContractKit/ContractKit/packages/plugin-typescript
4
4
  Coverage enabled with v8
5
5
 
6
- ✓ tests/codegen-contract.test.ts (128 tests) 221ms
7
- ✓ tests/codegen-sdk.test.ts (140 tests) 252ms
8
- ✓ tests/codegen-operation.test.ts (113 tests) 255ms
9
- ✓ tests/codegen-server.test.ts (25 tests) 110ms
10
- ✓ tests/codegen-plain-types.test.ts (66 tests) 35ms
11
- ✓ tests/pipeline.test.ts (28 tests) 217ms
12
- ✓ tests/escaping-security.test.ts (18 tests) 27ms
13
- ✓ tests/codegen-mcp.test.ts (24 tests) 67ms
6
+ ✓ tests/codegen-contract.test.ts (128 tests) 252ms
7
+ ✓ tests/codegen-sdk.test.ts (152 tests) 272ms
8
+ ✓ tests/codegen-operation.test.ts (129 tests) 267ms
9
+ ✓ tests/pipeline.test.ts (28 tests) 181ms
10
+ ✓ tests/codegen-plain-types.test.ts (66 tests) 37ms
11
+ ✓ tests/codegen-server.test.ts (25 tests) 100ms
12
+ ✓ tests/codegen-mcp.test.ts (24 tests) 34ms
13
+ ✓ tests/escaping-security.test.ts (18 tests) 23ms
14
14
 
15
15
   Test Files  8 passed (8)
16
-  Tests  542 passed (542)
17
-  Start at  12:07:42
18
-  Duration  9.60s (transform 5.83s, setup 0ms, import 18.92s, tests 1.18s, environment 1ms)
16
+  Tests  570 passed (570)
17
+  Start at  16:09:43
18
+  Duration  9.90s (transform 4.89s, setup 0ms, import 19.21s, tests 1.17s, environment 1ms)
19
19
 
20
20
   % Coverage report from v8
21
21
  -------------------|---------|----------|---------|---------|-------------------
22
22
  File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
23
23
  -------------------|---------|----------|---------|---------|-------------------
24
- All files | 82.66 | 77.13 | 85.59 | 85.15 |
25
- src | 82.52 | 76.89 | 85.35 | 85 |
24
+ All files | 83.71 | 78.1 | 86.07 | 86.33 |
25
+ src | 83.57 | 77.84 | 85.81 | 86.18 |
26
26
  ...n-contract.ts | 88.1 | 82.91 | 90.08 | 89.26 | ...1095,1100-1101
27
- codegen-mcp.ts | 82.67 | 75.47 | 84.61 | 85.9 | ...85,290-291,374
28
- ...-operation.ts | 80.12 | 77.35 | 79.22 | 81.36 | ...59-770,775-776
27
+ codegen-mcp.ts | 82.79 | 75.47 | 84.21 | 86.02 | ...93,298-299,382
28
+ ...-operation.ts | 82.35 | 80.68 | 76.19 | 84.83 | ...99-910,915-916
29
29
  ...lain-types.ts | 91.57 | 81.98 | 96.87 | 94.44 | ...31,157,269,275
30
- codegen-sdk.ts | 88.37 | 83.2 | 87.83 | 91.48 | ...1187-1188,1191
31
- index.ts | 66.25 | 53.64 | 72.72 | 70.29 | ...1022,1038-1057
30
+ codegen-sdk.ts | 89.92 | 83.94 | 90.62 | 92.67 | ...1411,1425-1426
31
+ index.ts | 66.25 | 53.15 | 72.72 | 70.29 | ...1022,1038-1057
32
32
  path-utils.ts | 70.28 | 51.13 | 100 | 73.5 | ...65-168,216-231
33
33
  ts-render.ts | 85 | 87.36 | 79.16 | 89.23 | 83,159,192-200
34
- tests | 90.38 | 90.9 | 89.28 | 93.47 |
35
- helpers.ts | 90.38 | 90.9 | 89.28 | 93.47 | 110-118
34
+ tests | 91.07 | 90.24 | 90 | 93.87 |
35
+ helpers.ts | 91.07 | 90.24 | 90 | 93.87 | 110-118
36
36
  -------------------|---------|----------|---------|---------|-------------------
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # @contractkit/contractkit-plugin-typescript
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 85d7566: Let an operation emit more than one status, and a status serve more than one content type.
8
+
9
+ A status code could previously declare only one mime — the parser warned `Duplicate response body` and dropped the rest — and the generated router pinned both `ctx.status` and `ctx.type` to whichever response happened to be listed first with a body. An endpoint serving several formats had to declare one lying mime and let browsers sniff, and a service had no way to say which status it produced.
10
+
11
+ A status now holds every declared `mime: Type` line (`OpResponseNode.bodies`). When there is more than one, the service picks at runtime and the router sets `ctx.type` from the returned `contentType`. When an operation produces more than one status, the service returns a union discriminated on `status` and the handler switches on it, so each status writes only its own headers, mime and body. Both SDKs mirror the router: the TypeScript and Python clients return a matching union, report which mime came back, and pass the non-2xx statuses they expect to the shared fetch so a declared `304` no longer surfaces as an error. `SdkError` now takes a body type parameter, and each operation exports a `…ErrorBody` alias for the statuses that stay on the throw path.
12
+
13
+ Which statuses the service produces is derived from the declaration: **a status is emitted if it has a block, or is 2xx.** An empty block (`304: {}`) says the service returns that status carrying nothing; a bare `304:` says it is documented and something else produces it. `404(documented): { … }` is the one modifier, forcing a block-carrying status back out.
14
+
15
+ Two long-standing bugs in the same area go with it. The formatter deleted any comment written inside a `response` block — above a status code, above a mime line, above a `headers:` block, or before a closing brace — so `pnpm format` silently threw away the notes explaining why a contract looks the way it does; all four positions now round-trip. And the generated router declared a `_ZodBinary` helper for a binary _response_ body, which is a plain `Buffer` annotation with no schema behind it, leaving an unused const that tripped `noUnusedLocals` downstream; helpers are now chosen from the code that was actually generated, the same way imports already were.
16
+
17
+ **If you are already on a pre-release version, two things change under you.** A contract that declares a body on an error status — `404: { application/json: Problem }` alongside a `200` — now returns it from the service instead of throwing, and the SDK return type becomes a union; add `(documented)` to that status to keep the previous behaviour. Contracts whose error statuses are bodyless (`400:`, `404:`) are unaffected. Anything reading the AST directly should move from `OpResponseNode.contentType`/`bodyType` to `bodies`, which replaces them.
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies [85d7566]
22
+ - Updated dependencies [90d19ee]
23
+ - @contractkit/core@0.25.0
24
+
25
+ ## 0.30.0
26
+
27
+ ### Minor Changes
28
+
29
+ - 23e4beb: Stop emitting unused imports in generated Koa routers. `bodyParserMiddleware` was imported unconditionally even when no operation declared a request body, and `MultipartBody` was imported whenever any body was multipart — including when the multipart body is structurally equal to its sibling MIME types and the handler collapses to a single `parseAndValidate` call that never references it. `requirePolicy`, `requireSignature` and `parseAndValidate` could also go unused when `includeInternal: false` skipped the only handlers that needed them. Each unused import trips `noUnusedLocals` and lint in the consuming project.
30
+
31
+ Imports are now derived from the generated body — a symbol is emitted only if it actually appears in the output — rather than from predicates over the AST that had to be kept in step by hand.
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies [23e4beb]
36
+ - @contractkit/core@0.24.0
37
+
3
38
  ## 0.29.0
4
39
 
5
40
  ### Minor Changes
package/README.md CHANGED
@@ -147,11 +147,18 @@ Method names follow this priority:
147
147
 
148
148
  A shared `sdk-options.ts` file is emitted alongside the clients. It exports:
149
149
 
150
- - `SdkOptions` / `SdkFetch` / `SdkError` / `createSdkFetch` — base client primitives. `SdkError` is thrown on any non-2xx response and exposes `status`, `statusText`, `body`, and `headers` (the raw `Headers` instance) for downstream use.
150
+ - `SdkOptions` / `SdkFetch` / `SdkRequestInit` / `SdkError` / `createSdkFetch` — base client primitives. `SdkError<TBody>` exposes `status`, `statusText`, `body`, and `headers` (the raw `Headers` instance); each operation that declares a body on a thrown status also exports a matching `…ErrorBody` alias to narrow `body` to.
151
151
  - `buildQueryString(query)` — serialises a query params object to `?key=value` or `''`
152
152
  - `parseJson<T>(res)` — deserialises a `Response` body to `T`
153
+ - `readContentType(res)` — the response's mime with any `; charset=…` stripped, used when a status declares several content types
153
154
  - `bigIntReplacer` / `bigIntReviver` — JSON replacer/reviver for `bigint` values
154
155
 
156
+ `SdkError` is raised for any response at or above 400 **except** the statuses an operation
157
+ declares as values. Those are passed per-call as `expectStatuses`, so a `304` produced by
158
+ conditional-GET middleware, or an error status the service returns deliberately, comes back as a
159
+ normal return value instead of a throw. See the response section of the root README for which
160
+ statuses fall into which set.
161
+
155
162
  ## Programmatic use
156
163
 
157
164
  ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"codegen-mcp.d.ts","sourceRoot":"","sources":["../src/codegen-mcp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAA8E,MAAM,mBAAmB,CAAC;AAShI,MAAM,WAAW,iBAAiB;IAC9B,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,uFAAuF;IACvF,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,qDAAqD;IACrD,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,sDAAsD;IACtD,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B,yFAAyF;IACzF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AASD;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,UAAQ,GAAG,OAAO,CASnF;AAoVD,0GAA0G;AAC1G,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,sGAAsG;AACtG,wBAAgB,eAAe,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,MAAM,CA0DzF;AAED,8EAA8E;AAC9E,MAAM,WAAW,kBAAkB;IA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oFAAoF;IACpF,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,0FAA0F;AAC1F,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAe3E;AAED,sGAAsG;AACtG,wBAAgB,iBAAiB,CAAC,OAAO,GAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,GAAG,MAAM,CAuBzE"}
@@ -22,7 +22,15 @@ export interface OpCodegenOptions {
22
22
  */
23
23
  includeInternal?: boolean;
24
24
  }
25
- /** Generate a Koa router module for every operation in `root`, including the imports, type aliases, and handler list. */
25
+ /**
26
+ * Generate a Koa router module for every operation in `root`, including the imports, type
27
+ * aliases, and handler list.
28
+ *
29
+ * Imports are derived from the generated body — each candidate symbol is emitted only if it
30
+ * actually appears in the output. Deciding them from predicates over the AST instead means any
31
+ * drift between predicate and codegen leaves an unused import in every generated file, which
32
+ * trips `noUnusedLocals` and lint downstream.
33
+ */
26
34
  export declare function generateOp(root: OpRootNode, options?: OpCodegenOptions): string;
27
35
  /**
28
36
  * Resolve the service class and method a handler should delegate to.
@@ -1 +1 @@
1
- {"version":3,"file":"codegen-operation.d.ts","sourceRoot":"","sources":["../src/codegen-operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,eAAe,EAAE,gBAAgB,EAA2C,MAAM,mBAAmB,CAAC;AAmC7I;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,EAAE,gBAAgB,GAAG,OAAO,CAkE5F;AAID,8EAA8E;AAC9E,MAAM,WAAW,gBAAgB;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sFAAsF;IACtF,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,qFAAqF;IAC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,sFAAsF;IACtF,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,qFAAqF;IACrF,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,gBAAqB,GAAG,MAAM,CAgGnF;AAwRD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAY7H;AAoBD;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,eAAe,GAAG,MAAM,CAqBzE;AAqWD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWnD;AAMD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAQ/E"}
@@ -52,6 +52,14 @@ export declare function generateClientMethods(root: OpRootNode, options: SdkCode
52
52
  lines: string[];
53
53
  methodNames: string[];
54
54
  };
55
+ /**
56
+ * Module-level `…ErrorBody` aliases for every operation whose thrown statuses declare a body.
57
+ *
58
+ * TypeScript cannot type a `throw`, so the alias plus the method's `@throws` tag is as far as the
59
+ * error contract can be carried: it gives callers something to narrow `SdkError.body` to instead
60
+ * of leaving them with `unknown`.
61
+ */
62
+ export declare function generateErrorBodyAliases(root: OpRootNode, options: SdkCodegenOptions): string[];
55
63
  /** Derive a client class name from a `.ck` file path, e.g. `users.ck` → `UsersClient`. Used for legacy flat (no-area) files. */
56
64
  export declare function deriveClientClassName(file: string): string;
57
65
  /** Camel-cased property name for a flat client on the SDK aggregator, e.g. `users.ck` → `users`. */
@@ -1 +1 @@
1
- {"version":3,"file":"codegen-sdk.d.ts","sourceRoot":"","sources":["../src/codegen-sdk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAkF,MAAM,mBAAmB,CAAC;AA2DpI,+DAA+D;AAC/D,MAAM,WAAW,iBAAiB;IAC9B,6GAA6G;IAC7G,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,6FAA6F;IAC7F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sFAAsF;IACtF,aAAa,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,8GAA8G;IAC9G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qFAAqF;IACrF,eAAe,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC9B,oFAAoF;IACpF,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC/B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,eAAe,UAAQ,GAAG,OAAO,CAOtF;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,GAAE,iBAAsB,GAAG,MAAM,CAoHrF;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,iBAAiB,GAC3B;IAAE,KAAK,EAAE,MAAM,EAAE,CAAC;IAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,CAe5C;AAuTD,gI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