Skip to content

Commit a13ae07

Browse files
chore(deps): update dependency zod to v4.0.8 (#2838)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [zod](https://zod.dev) ([source](https://redirect.github.com/colinhacks/zod)) | [`4.0.5` -> `4.0.8`](https://renovatebot.com/diffs/npm/zod/4.0.5/4.0.8) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/4.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/4.0.5/4.0.8?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>colinhacks/zod (zod)</summary> ### [`v4.0.8`](https://redirect.github.com/colinhacks/zod/releases/tag/v4.0.8) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.0.7...v4.0.8) #### Commits: - [`3048d14`](https://redirect.github.com/colinhacks/zod/commit/3048d14bc7b803507302b8ee3cd1eeeffbd27396) Fix [#&#8203;4961](https://redirect.github.com/colinhacks/zod/issues/4961) ### [`v4.0.7`](https://redirect.github.com/colinhacks/zod/compare/v4.0.6...34b400a5422bc30b48395cdd44007ff4e811fb71) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.0.6...v4.0.7) ### [`v4.0.6`](https://redirect.github.com/colinhacks/zod/compare/v4.0.5...7dd7484802b1351c8b81d3d523aadd876fcdf73e) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.0.5...v4.0.6) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/RobinTail/express-zod-api). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40MC4wIiwidXBkYXRlZEluVmVyIjoiNDEuNDAuMCIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anna Bocharova <[email protected]>
1 parent dc9d1f3 commit a13ae07

3 files changed

Lines changed: 20 additions & 78 deletions

File tree

express-zod-api/tests/__snapshots__/date-in-schema.spec.ts.snap

Lines changed: 10 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -3,83 +3,25 @@
33
exports[`ez.dateIn() > parsing > should handle invalid date 1`] = `
44
[
55
{
6-
"code": "invalid_union",
7-
"errors": [
8-
[
9-
{
10-
"code": "invalid_format",
11-
"format": "date",
12-
"message": "Invalid ISO date",
13-
"origin": "string",
14-
"path": [],
15-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$/",
16-
},
17-
],
18-
[
19-
{
20-
"code": "invalid_format",
21-
"format": "datetime",
22-
"message": "Invalid ISO datetime",
23-
"origin": "string",
24-
"path": [],
25-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$/",
26-
},
27-
],
28-
[
29-
{
30-
"code": "invalid_format",
31-
"format": "datetime",
32-
"message": "Invalid ISO datetime",
33-
"origin": "string",
34-
"path": [],
35-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|))$/",
36-
},
37-
],
38-
],
39-
"message": "Invalid input",
6+
"code": "invalid_format",
7+
"format": "date",
8+
"message": "Invalid ISO date",
9+
"origin": "string",
4010
"path": [],
11+
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$/",
4112
},
4213
]
4314
`;
4415

4516
exports[`ez.dateIn() > parsing > should handle invalid format 1`] = `
4617
[
4718
{
48-
"code": "invalid_union",
49-
"errors": [
50-
[
51-
{
52-
"code": "invalid_format",
53-
"format": "date",
54-
"message": "Invalid ISO date",
55-
"origin": "string",
56-
"path": [],
57-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$/",
58-
},
59-
],
60-
[
61-
{
62-
"code": "invalid_format",
63-
"format": "datetime",
64-
"message": "Invalid ISO datetime",
65-
"origin": "string",
66-
"path": [],
67-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$/",
68-
},
69-
],
70-
[
71-
{
72-
"code": "invalid_format",
73-
"format": "datetime",
74-
"message": "Invalid ISO datetime",
75-
"origin": "string",
76-
"path": [],
77-
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|))$/",
78-
},
79-
],
80-
],
81-
"message": "Invalid input",
19+
"code": "invalid_format",
20+
"format": "date",
21+
"message": "Invalid ISO date",
22+
"origin": "string",
8223
"path": [],
24+
"pattern": "/^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$/",
8325
},
8426
]
8527
`;

express-zod-api/tests/__snapshots__/zts.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ exports[`zod-to-ts > Example > should produce the expected results 1`] = `
7373
y: number;
7474
};
7575
branded: string;
76-
catch?: number | undefined;
76+
catch: number;
7777
pipeline: string;
7878
readonly: string;
7979
}"

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)