@luckystack/devkit 0.1.0 → 0.1.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/CLAUDE.md +1 -1
- package/docs/ts-program-cache.md +1 -1
- package/package.json +3 -3
package/CLAUDE.md
CHANGED
|
@@ -97,7 +97,7 @@ Internal modules (not exported from `index.ts`, but live in this package):
|
|
|
97
97
|
|
|
98
98
|
## Peer dependencies
|
|
99
99
|
|
|
100
|
-
- **Required peer (runtime)**: `typescript
|
|
100
|
+
- **Required peer (runtime)**: `typescript@^6.0.0` — the type-map emitter and runtime type resolver call into the TypeScript Compiler API. No optional fallback. The emitter's `checker.typeToString` output was verified byte-identical between TS 5.7.3 and 6.0.3 for the framework's API/sync surface, so the `^6.0.0` range is safe; if a consumer's `typescript` version drifts outside it the emitter may produce different inlined output. Treat as a hard peer.
|
|
101
101
|
- **Required peer**: `zod@^4.0.0` — the Zod schema emitter compiles consumer input types into runtime schemas via `zodEmitter.ts`.
|
|
102
102
|
- **Required peer**: `@prisma/client@^6.19.0` — type expansion may surface Prisma model types into emitted artifacts; missing the client breaks generation.
|
|
103
103
|
- **Direct dependency**: `chokidar@^4.0.3` (the file watcher used by both `hotReload.ts` and `supervisor.ts`).
|
package/docs/ts-program-cache.md
CHANGED
|
@@ -182,7 +182,7 @@ The two modules also share an invalidation contract: any code path that calls `i
|
|
|
182
182
|
## Failure modes
|
|
183
183
|
|
|
184
184
|
- **Missing `tsconfig.server.json`.** `getServerProgram()` throws synchronously. Boot fails loudly; there is no fallback.
|
|
185
|
-
- **TypeScript version drift.** `typescript` is a required peer dependency at
|
|
185
|
+
- **TypeScript version drift.** `typescript` is a required peer dependency at `^6.0.0`. The `checker.typeToString` output was verified byte-identical between TS 5.7.3 and 6.0.3 for the framework's API/sync surface, so `^6.0.0` is the supported range; a consumer with a `typescript` version outside it may produce different inlined output. Treat this as a hard peer.
|
|
186
186
|
- **Depth limit hit.** `expandTypeDetailed` returns `checker.typeToString(type)` and records the type's symbol as unresolved. The emitter logs the offending route (`[TypeMapGenerator] Unresolved API type (page/name/version): SymbolName`) and aborts the whole generation if any unresolved symbol cannot be imported.
|
|
187
187
|
- **Cyclic type.** Same as depth-limit hit — short-circuit to the type's string form and record the symbol.
|
|
188
188
|
- **Symbol with no source file.** The fallback returns `{ name }` without `sourceFile` or `importPath`. The emitter treats this as a hard unresolved alias and aborts generation.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luckystack/devkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"test": "vitest run"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@luckystack/core": "^0.1.
|
|
57
|
+
"@luckystack/core": "^0.1.1",
|
|
58
58
|
"chokidar": "^5.0.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@prisma/client": "^6.19.0",
|
|
62
|
-
"typescript": "
|
|
62
|
+
"typescript": "^6.0.0",
|
|
63
63
|
"zod": "^4.0.0"
|
|
64
64
|
}
|
|
65
65
|
}
|