@ts-pf/codegen 0.5.0 → 0.5.2

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 +1 -1
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -46,7 +46,7 @@ emit(spec, {
46
46
  catalogHash(spec) // 'sha256:<hex>' of canonical JSON
47
47
  ```
48
48
 
49
- Generated procedures are `ContractProcedure<I, O, E>` with Phantom Standard Schema leaves so `InferErrorData` / `asResult` still narrow `error.code === 'NOT_FOUND'`. Protocol errors stay out of the generated error map (`ClientError` already unions them). No-input is `void`. Streams are `AsyncIterable<Item>`.
49
+ Generated procedures are `ContractProcedure<I, O, E>`, where `I` is the input schema's input type (catalog `io: 'input'`), the same caller type a builder contract gives, with Phantom Standard Schema leaves so `InferErrorData` / `asResult` still narrow `error.code === 'NOT_FOUND'`. Protocol errors stay out of the generated error map (`ClientError` already unions them). No-input is `void`. Streams are `AsyncIterable<Item>`.
50
50
 
51
51
  `docs()` on a procedure becomes JSDoc on that generated member (`description`, `summary`, `@deprecated`). Tags stay OpenAPI grouping; other `.meta()` keys are not printed. JSDoc is on `Contract` members — `ContractClient` is a mapped type, so hover on `client.planet.find` may not show it.
52
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ts-pf/codegen",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Opt-in .d.ts codegen from catalog() for split-repo createClient",
5
5
  "keywords": [
6
6
  "ts-pf",
@@ -52,12 +52,12 @@
52
52
  "lint": "biome check src tests"
53
53
  },
54
54
  "dependencies": {
55
- "@ts-pf/docs": "0.5.0"
55
+ "@ts-pf/docs": "0.5.2"
56
56
  },
57
57
  "devDependencies": {
58
- "@ts-pf/client": "0.5.0",
59
- "@ts-pf/contract": "0.5.0",
60
- "@ts-pf/stream": "0.5.0",
58
+ "@ts-pf/client": "0.5.2",
59
+ "@ts-pf/contract": "0.5.2",
60
+ "@ts-pf/stream": "0.5.2",
61
61
  "@types/node": "^22.15.0",
62
62
  "typebox": "^1.4.6",
63
63
  "typescript": "^6.0.3",