Skip to content

Commit c2483f7

Browse files
chore(deps): update dependency zod to v4.1.13 (#3084)
This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [zod](https://zod.dev) ([source](https://redirect.github.com/colinhacks/zod)) | [`4.1.12` -> `4.1.13`](https://renovatebot.com/diffs/npm/zod/4.1.12/4.1.13) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/4.1.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/4.1.12/4.1.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>colinhacks/zod (zod)</summary> ### [`v4.1.13`](https://redirect.github.com/colinhacks/zod/compare/v4.1.12...4063e802d539d04182fc3e66a543ae6d1ba5658e) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.1.12...v4.1.13) </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:eyJjcmVhdGVkSW5WZXIiOiI0Mi4xNi4xIiwidXBkYXRlZEluVmVyIjoiNDIuMTYuMSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anna Bocharova <[email protected]>
1 parent e1069ed commit c2483f7

5 files changed

Lines changed: 28 additions & 17 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ paths:
819819
content:
820820
application/json:
821821
schema:
822-
anyOf:
822+
oneOf:
823823
- type: object
824824
properties:
825825
type:
@@ -855,7 +855,7 @@ paths:
855855
type: string
856856
const: success
857857
data:
858-
anyOf:
858+
oneOf:
859859
- type: object
860860
properties:
861861
status:

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ exports[`Environment checks > Zod checks/refinements > Snapshot control 'ZodEmai
2020
"deferred": [],
2121
"onattach": [
2222
[Function],
23-
[Function],
2423
],
2524
"parse": [Function],
2625
"pattern": /\\^\\(\\?!\\\\\\.\\)\\(\\?!\\.\\*\\\\\\.\\\\\\.\\)\\(\\[A-Za-z0-9_'\\+\\\\-\\\\\\.\\]\\*\\)\\[A-Za-z0-9_\\+-\\]@\\(\\[A-Za-z0-9\\]\\[A-Za-z0-9\\\\-\\]\\*\\\\\\.\\)\\+\\[A-Za-z\\]\\{2,\\}\\$/,
@@ -98,9 +97,10 @@ exports[`Environment checks > Zod checks/refinements > Snapshot control 'ZodNumb
9897
"run": [Function],
9998
"traits": Set {
10099
"ZodNumberFormat",
101-
"$ZodNumber",
100+
"$ZodNumberFormat",
102101
"$ZodCheckNumberFormat",
103102
"$ZodCheck",
103+
"$ZodNumber",
104104
"$ZodType",
105105
"ZodNumber",
106106
"ZodType",
@@ -133,9 +133,10 @@ exports[`Environment checks > Zod checks/refinements > Snapshot control 'ZodNumb
133133
"run": [Function],
134134
"traits": Set {
135135
"ZodNumberFormat",
136-
"$ZodNumber",
136+
"$ZodNumberFormat",
137137
"$ZodCheckNumberFormat",
138138
"$ZodCheck",
139+
"$ZodNumber",
139140
"$ZodType",
140141
"ZodNumber",
141142
"ZodType",
@@ -171,9 +172,10 @@ exports[`Environment checks > Zod checks/refinements > Snapshot control 'ZodNumb
171172
"run": [Function],
172173
"traits": Set {
173174
"ZodNumberFormat",
174-
"$ZodNumber",
175+
"$ZodNumberFormat",
175176
"$ZodCheckNumberFormat",
176177
"$ZodCheck",
178+
"$ZodNumber",
177179
"$ZodType",
178180
"ZodNumber",
179181
"ZodType",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ exports[`SSE > makeResultHandler() > should create ResultHandler describing poss
3737
],
3838
"schema": {
3939
"$schema": "https://json-schema.org/draft/2020-12/schema",
40-
"anyOf": [
40+
"oneOf": [
4141
{
4242
"additionalProperties": false,
4343
"properties": {

express-zod-api/tests/env.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
import createHttpError from "http-errors";
22
import * as R from "ramda";
33
import { z } from "zod";
4+
import { createRequire } from "node:module";
45

56
describe("Environment checks", () => {
7+
describe("Zod global registry", () => {
8+
test("is shared across both of its ESM and CJS packages", () => {
9+
createRequire(import.meta.url)("zod");
10+
const { globalRegistry } = createRequire(import.meta.url)("zod");
11+
expect(globalRegistry).toBe(z.globalRegistry);
12+
});
13+
});
14+
615
describe("Zod Dates", () => {
716
test.each(["2021-01-32", "22/01/2022", "2021-01-31T25:00:00.000Z"])(
817
"should detect invalid date %#",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)