iterate-kernel 0.1.8 → 0.1.9
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 +10 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -14,6 +14,16 @@ each inventing its own.
|
|
|
14
14
|
npm install iterate-kernel
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
+
## The `zod` in these declarations is exact on purpose
|
|
18
|
+
|
|
19
|
+
`package.json` pins `zod` to one version rather than a range, because the shipped `.d.ts` are
|
|
20
|
+
emitted *by* a zod: with a range, a consumer whose resolver picked a different major got no type
|
|
21
|
+
error where one was owed — `z.infer` on these schemas silently degraded to `any`, and TypeScript
|
|
22
|
+
complained about the consumer's own code instead. `test/zod-contract.test.mjs` holds that line
|
|
23
|
+
(declared spec exact, installed equals declared, emitted declarations still zod-3 shaped). Moving
|
|
24
|
+
zod majors is a contract event for every consumer that type-checks against these declarations:
|
|
25
|
+
say it in the release note and change that test in the same commit.
|
|
26
|
+
|
|
17
27
|
## Import per module, not through the barrel
|
|
18
28
|
|
|
19
29
|
```ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iterate-kernel",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "iterate ecosystem shared kernel: schemas, the evidence->decision transcription, the decision-log audit chain and public validators. Verification reasoning stays in the engine; this layer transcribes.",
|
|
6
6
|
"type": "module",
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"prepublishOnly": "npm run build"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"zod": "
|
|
94
|
+
"zod": "3.25.76"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/node": "26.5.1",
|