Skip to content

Commit e9dbae6

Browse files
chore(deps): update dependency zod to v4.1.11 (#2953)
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more [here](https://redirect.github.com/renovatebot/renovate/discussions/37842). This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [zod](https://zod.dev) ([source](https://redirect.github.com/colinhacks/zod)) | [`4.1.9` -> `4.1.11`](https://renovatebot.com/diffs/npm/zod/4.1.9/4.1.11) | [![age](https://developer.mend.io/api/mc/badges/age/npm/zod/4.1.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/4.1.9/4.1.11?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>colinhacks/zod (zod)</summary> ### [`v4.1.11`](https://redirect.github.com/colinhacks/zod/compare/v4.1.10...2bed4b39760d8e4d678203b5c8fcaf24c182fc9f) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.1.10...2bed4b39760d8e4d678203b5c8fcaf24c182fc9f) ### [`v4.1.10`](https://redirect.github.com/colinhacks/zod/compare/v4.1.9...82cd717a0e7ee4e1737a783c7be278fa93fd8104) [Compare Source](https://redirect.github.com/colinhacks/zod/compare/v4.1.9...v4.1.10) </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:eyJjcmVhdGVkSW5WZXIiOiI0MS45Ny4xMCIsInVwZGF0ZWRJblZlciI6IjQxLjk3LjEwIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=--> --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anna Bocharova <[email protected]>
1 parent 9d8d5de commit e9dbae6

File tree

3 files changed

+52
-13
lines changed

3 files changed

+52
-13
lines changed

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,45 @@ exports[`Environment checks > Zod checks/refinements > Snapshot control 'ZodStri
215215
}
216216
`;
217217

218+
exports[`Environment checks > Zod imperfections > circular object schema has no sign of getter in its shape 1`] = `
219+
{
220+
"features": {
221+
"configurable": true,
222+
"enumerable": true,
223+
"value": {
224+
"$schema": "https://json-schema.org/draft/2020-12/schema",
225+
"items": {
226+
"additionalProperties": false,
227+
"properties": {
228+
"features": {
229+
"$ref": "#",
230+
},
231+
"name": {
232+
"type": "string",
233+
},
234+
},
235+
"required": [
236+
"name",
237+
"features",
238+
],
239+
"type": "object",
240+
},
241+
"type": "array",
242+
},
243+
"writable": true,
244+
},
245+
"name": {
246+
"configurable": true,
247+
"enumerable": true,
248+
"value": {
249+
"$schema": "https://json-schema.org/draft/2020-12/schema",
250+
"type": "string",
251+
},
252+
"writable": true,
253+
},
254+
}
255+
`;
256+
218257
exports[`Environment checks > Zod new features > input examples of transformations 1`] = `
219258
{
220259
"$schema": "https://json-schema.org/draft/2020-12/schema",

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ describe("Environment checks", () => {
5050
expect(R.omit(["$schema"], json)).toEqual({});
5151
});
5252

53-
test("circular object schema has a getter since 4.0.15", () => {
53+
test("circular object schema has no sign of getter in its shape", () => {
5454
const schema = z.object({
5555
name: z.string(),
5656
get features() {
5757
return schema.array();
5858
},
5959
});
6060
expect(
61-
Object.getOwnPropertyDescriptors(schema._zod.def.shape).features,
62-
).toHaveProperty("get", expect.any(Function));
61+
Object.getOwnPropertyDescriptors(schema._zod.def.shape),
62+
).toMatchSnapshot();
6363
});
6464

6565
test("ZodError inequality", () => {

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)