Skip to content

Commit 0f97ee7

Browse files
chore(deps): update dependency zod to v4.0.10 (#2839)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [zod](https://zod.dev) ([source](https://redirect.github.com/colinhacks/zod)) | [`4.0.8` -> `4.0.10`](https://renovatebot.com/diffs/npm/zod/4.0.8/4.0.10) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/4.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/4.0.8/4.0.10?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>colinhacks/zod (zod)</summary> ### [`v4.0.10`](https://redirect.github.com/colinhacks/zod/compare/v4.0.9...813451db7fcf64c5322835984eded9bfe95be1da) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.0.9...v4.0.10) ### [`v4.0.9`](https://redirect.github.com/colinhacks/zod/releases/tag/v4.0.9) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.0.8...v4.0.9) #### Commits: - [`4e7a3ef`](https://redirect.github.com/colinhacks/zod/commit/4e7a3ef180f6a5525d9021638e9df20b3ca50456) v4.0.9 ([#&#8203;4970](https://redirect.github.com/colinhacks/zod/issues/4970)) </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: Robin Tail <[email protected]>
1 parent a13ae07 commit 0f97ee7

2 files changed

Lines changed: 77 additions & 19 deletions

File tree

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

Lines changed: 68 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,83 @@
33
exports[`ez.dateIn() > parsing > should handle invalid date 1`] = `
44
[
55
{
6-
"code": "invalid_format",
7-
"format": "date",
8-
"message": "Invalid ISO date",
9-
"origin": "string",
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",
1040
"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])))$/",
1241
},
1342
]
1443
`;
1544

1645
exports[`ez.dateIn() > parsing > should handle invalid format 1`] = `
1746
[
1847
{
19-
"code": "invalid_format",
20-
"format": "date",
21-
"message": "Invalid ISO date",
22-
"origin": "string",
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",
2382
"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])))$/",
2583
},
2684
]
2785
`;

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)