Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency zod to v3.22.3 [security] #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 30, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zod (source) 3.21.4 -> 3.22.3 age adoption passing confidence

GitHub Vulnerability Alerts

CVE-2023-4316

Zod version 3.22.2 allows an attacker to perform a denial of service while validating emails.


Release Notes

colinhacks/zod (zod)

v3.22.3

Compare Source

Commits:

v3.22.2

Compare Source

Commits:

v3.22.1

Compare Source

Commits:

Fix handing of this in ZodFunction schemas. The parse logic for function schemas now requires the Reflect API.

const methodObject = z.object({
  property: z.number(),
  method: z.function().args(z.string()).returns(z.number()),
});
const methodInstance = {
  property: 3,
  method: function (s: string) {
    return s.length + this.property;
  },
};
const parsed = methodObject.parse(methodInstance);
parsed.method("length=8"); // => 11 (8 length + 3 property)

v3.22.0

Compare Source

ZodReadonly

This release introduces ZodReadonly and the .readonly() method on ZodType.

Calling .readonly() on any schema returns a ZodReadonly instance that wraps the original schema. The new schema parses all inputs using the original schema, then calls Object.freeze() on the result. The inferred type is also marked as readonly.

const schema = z.object({ name: string }).readonly();
type schema = z.infer<typeof schema>;
// Readonly<{name: string}>

const result = schema.parse({ name: "fido" });
result.name = "simba"; // error

The inferred type uses TypeScript's built-in readonly types when relevant.

z.array(z.string()).readonly();
// readonly string[]

z.tuple([z.string(), z.number()]).readonly();
// readonly [string, number]

z.map(z.string(), z.date()).readonly();
// ReadonlyMap<string, Date>

z.set(z.string()).readonly();
// ReadonlySet<Promise<string>>

Commits:


Configuration

📅 Schedule: Branch creation - "" in timezone America/Toronto, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented May 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
documentation ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 7:41pm

@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 5e60b0d to 7886dcf Compare June 4, 2024 15:42
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 7886dcf to d0136d9 Compare June 4, 2024 16:21
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from d0136d9 to 17d3699 Compare June 4, 2024 19:30
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 17d3699 to 3ad67dc Compare June 6, 2024 20:22
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 3ad67dc to cab624f Compare June 7, 2024 15:08
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from cab624f to ecc2922 Compare June 7, 2024 17:18
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from ecc2922 to f8f13cf Compare June 7, 2024 17:20
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from f8f13cf to cb32ec2 Compare June 7, 2024 17:22
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from cb32ec2 to 25deeb9 Compare June 7, 2024 17:23
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 25deeb9 to c433dfe Compare June 7, 2024 17:37
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from c433dfe to 3c43bb9 Compare June 7, 2024 17:38
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 3c43bb9 to aa641f1 Compare June 7, 2024 22:05
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from aa641f1 to 3f82f97 Compare June 10, 2024 19:27
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 3f82f97 to 6ab40f1 Compare June 10, 2024 21:03
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 110df26 to d1e187b Compare August 9, 2024 17:53
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from d1e187b to ac08244 Compare August 12, 2024 18:01
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from ac08244 to 2060ca2 Compare August 19, 2024 21:43
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 2060ca2 to 8c8a0f7 Compare September 4, 2024 16:46
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 8c8a0f7 to f9d7fcd Compare September 23, 2024 12:09
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from f9d7fcd to ca2cdd5 Compare September 25, 2024 20:05
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from ca2cdd5 to 750ad47 Compare October 1, 2024 14:38
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 750ad47 to 7a9802a Compare October 3, 2024 20:49
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 7a9802a to 54e25a6 Compare October 4, 2024 01:29
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 54e25a6 to 0117d94 Compare October 24, 2024 14:18
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 0117d94 to a8bbf86 Compare November 13, 2024 17:44
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from a8bbf86 to 1e75dcb Compare November 29, 2024 17:57
@renovate renovate bot force-pushed the renovate/npm-zod-vulnerability branch from 1e75dcb to e6c677e Compare December 3, 2024 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants