Commit 89e6a1a
authored
chore(deps): update dependency zod to v4.2.1 (#147)
This PR contains the following updates:
| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [zod](https://zod.dev)
([source](https://redirect.github.com/colinhacks/zod)) | dependencies |
minor | [`4.1.13` ->
`4.2.1`](https://renovatebot.com/diffs/npm/zod/4.1.13/4.2.1) |
[](https://securityscorecards.dev/viewer/?uri=github.com/colinhacks/zod)
|
---
### Release Notes
<details>
<summary>colinhacks/zod (zod)</summary>
###
[`v4.2.1`](https://redirect.github.com/colinhacks/zod/compare/v4.2.0...5b5b129315fbc94a3b0d6244185eaeefcbe438d1)
[Compare
Source](https://redirect.github.com/colinhacks/zod/compare/v4.2.0...v4.2.1)
###
[`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 12:00 AM through 04:59 AM and 10:00
PM through 11:59 PM, Monday through Friday ( * 0-4,22-23 * * 1-5 ), Only
on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - At any time
(no schedule defined).
🚦 **Automerge**: Enabled.
♻ **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/settlemint/network-bootstrapper).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi41NC4yIiwidXBkYXRlZEluVmVyIjoiNDIuNTQuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19-->
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 69a31ad commit 89e6a1a
2 files changed
Lines changed: 3 additions & 3 deletions
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 | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
0 commit comments