You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,31 +22,37 @@ The `path` field has been removed from `ParseIssue`.
22
22
interfaceParseIssue {
23
23
code:IssueCode;
24
24
path:readonly []; // removed
25
+
key?:unknown;
25
26
}
26
27
27
28
// v0.2.0
28
29
interfaceParseIssue {
29
30
code:IssueCode;
30
-
key:string; //added (see below)
31
+
key:string; //narrowed (see below)
31
32
}
32
33
```
33
34
34
35
**Migration**: Remove all references to `issue.path`. Because `path` was always an empty array, any reference to it was effectively a no-op and can be deleted outright.
35
36
36
-
### `ParseIssue.key`added (required,`string`)
37
+
### `ParseIssue.key`narrowed to required `string`
37
38
38
-
A required `key: string` field has been added to identify which FormData key caused the issue.
39
+
`key` existed in v0.1.x as `key?: unknown`. It is now required and typed as `string`.
39
40
40
41
```ts
41
-
// v0.1.x — no key field
42
-
issue.code; // "forbidden_key"
42
+
// v0.1.x
43
+
interfaceParseIssue {
44
+
code:IssueCode;
45
+
key?:unknown; // optional, untyped
46
+
}
43
47
44
-
// v0.2.0 — key identifies the offending field
45
-
issue.code; // "forbidden_key"
46
-
issue.key; // "__proto__"
48
+
// v0.2.0
49
+
interfaceParseIssue {
50
+
code:IssueCode;
51
+
key:string; // required, typed
52
+
}
47
53
```
48
54
49
-
**Migration**: Use `issue.key` wherever you need to identify the offending field. This is an additive change with no runtime impact, but type definitions that reference `ParseIssue` must be updated.
55
+
**Migration**: Remove any `undefined` guards on `issue.key` and update type annotations that reference `ParseIssue.key` as `unknown`.
50
56
51
57
### `issues` on failure narrowed to a non-empty tuple
0 commit comments