Commit 4c0d8bd
chore(deps): update dependency zod to v4.2.0 (#3132)
This PR contains the following updates:
| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [zod](https://zod.dev)
([source](https://redirect.github.com/colinhacks/zod)) | [`4.1.13` ->
`4.2.0`](https://renovatebot.com/diffs/npm/zod/4.1.13/4.2.0) |

|

|
---
### Release Notes
<details>
<summary>colinhacks/zod (zod)</summary>
###
[`v4.2.0`](https://redirect.github.com/colinhacks/zod/releases/tag/v4.2.0)
[Compare
Source](https://redirect.github.com/colinhacks/zod/compare/v4.1.13...v4.2.0)
#### Features
##### Implement Standard JSON Schema
[standard-schema/standard-schema#134](https://redirect.github.com/standard-schema/standard-schema/pull/134)
##### Implement `z.fromJSONSchema()`
```typescript
const jsonSchema = {
type: "object",
properties: {
name: { type: "string" },
age: { type: "number" }
},
required: ["name"]
};
const schema = z.fromJSONSchema(jsonSchema);
```
##### Implement `z.xor()`
```typescript
const schema = z.xor(
z.object({ type: "user", name: z.string() }),
z.object({ type: "admin", role: z.string() })
);
// Exactly one of the schemas must match
```
##### Implement `z.looseRecord()`
```typescript
const schema = z.looseRecord(z.string(), z.number());
// Allows additional properties beyond those defined
```
#### Commits:
-
[`af49c08`](https://redirect.github.com/colinhacks/zod/commit/af49c084f66339110d00e37ff71dc7b3b9f2b7ef)
Update docs for JSON Schema conversion of `z.undefined()`
([#​5504](https://redirect.github.com/colinhacks/zod/issues/5504))
-
[`767f320`](https://redirect.github.com/colinhacks/zod/commit/767f320318986e422f524b939f1a7174544fda2e)
Add `.toJSONSchema()` method
([#​5477](https://redirect.github.com/colinhacks/zod/issues/5477))
-
[`e17dcb6`](https://redirect.github.com/colinhacks/zod/commit/e17dcb63573397063e87d7c7fe10a5a78968181a)
Add `z.fromJSONSchema()`, `z.looseRecord()`, `z.xor()`
([#​5534](https://redirect.github.com/colinhacks/zod/issues/5534))
</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi40Mi4yIiwidXBkYXRlZEluVmVyIjoiNDIuNDIuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119-->
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Anna Bocharova <[email protected]>1 parent 3b33394 commit 4c0d8bd
File tree
4 files changed
+21
-10
lines changed- express-zod-api
- src
- tests/__snapshots__
4 files changed
+21
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
94 | 96 | | |
95 | 97 | | |
96 | 98 | | |
| 99 | + | |
97 | 100 | | |
98 | 101 | | |
99 | 102 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
| 136 | + | |
133 | 137 | | |
134 | 138 | | |
135 | 139 | | |
| |||
169 | 173 | | |
170 | 174 | | |
171 | 175 | | |
| 176 | + | |
172 | 177 | | |
173 | 178 | | |
174 | 179 | | |
| |||
206 | 211 | | |
207 | 212 | | |
208 | 213 | | |
| 214 | + | |
209 | 215 | | |
210 | 216 | | |
211 | 217 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
68 | 68 | | |
69 | 69 | | |
0 commit comments