Skip to content
This repository has been archived by the owner on Dec 30, 2023. It is now read-only.

chore(Renovate): ⬆️ Update dependency zod to v3.22.4 #118

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 17, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

colinhacks/zod (zod)

v3.22.4

Compare Source

Commits:

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 - "after 10pm every weekday,on sunday,before 5am every weekday" in timezone Asia/Taipei, 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.


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

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested review from a team and xeho91 August 17, 2023 20:22
@renovate renovate bot added the 🧩 dependencies Related to the dependencies label Aug 17, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 17, 2023

⚠️ No Changeset found

Latest commit: 6b6a95c

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate
Copy link
Contributor Author

renovate bot commented Aug 17, 2023

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: pnpm-lock.yaml
[22:58:54.149] INFO (10): Installing tool node v18.18.0...
v18.18.0
9.8.1
0.19.0
[22:58:56.887] INFO (10): Installed tool node in 2.7s.
[22:58:57.385] INFO (54): Installing tool pnpm v8.5.1...
8.5.1
[22:58:58.739] INFO (54): Installed tool pnpm in 1.3s.
Scope: all 17 workspace projects
.                                        |  WARN  There are cyclic workspace dependencies: /tmp/worker/870da9/c96a49/repos/github/terminal-nerds/snippets/packages/array, /tmp/worker/870da9/c96a49/repos/github/terminal-nerds/snippets/packages/number, /tmp/worker/870da9/c96a49/repos/github/terminal-nerds/snippets/packages/environment
.                                        |  WARN  Your pnpm-lock.yaml was generated by a newer version of pnpm. It is a compatible version but it might get downgraded to version 6.0
 ERROR  /@ampproject/remapping@2.2.1 is an invalid relative dependency path

pnpm: /@ampproject/remapping@2.2.1 is an invalid relative dependency path
    at Object.parse2 [as parse] (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:114178:15)
    at nameVerFromPkgSnapshot (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:114287:28)
    at addPreferredVersionsFromLockfile (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:196837:89)
    at getPreferredVersionsFromLockfileAndManifests (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:196831:7)
    at _installInContext (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:197757:142)
    at async installInContext (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:198099:16)
    at async _install (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:197622:25)
    at async mutateModules (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:197344:23)
    at async recursive (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:198939:50)
    at async installDeps (/opt/containerbase/tools/pnpm/8.5.1/node_modules/pnpm/dist/pnpm.cjs:199235:11)

@ghost
Copy link

ghost commented Aug 17, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@renovate renovate bot changed the title chore(Renovate): ⬆️ Update dependency zod to v3.22.0 chore(Renovate): ⬆️ Update dependency zod to v3.22.1 Aug 18, 2023
@renovate renovate bot changed the title chore(Renovate): ⬆️ Update dependency zod to v3.22.1 chore(Renovate): ⬆️ Update dependency zod to v3.22.2 Aug 22, 2023
@renovate renovate bot changed the title chore(Renovate): ⬆️ Update dependency zod to v3.22.2 chore(Renovate): ⬆️ Update dependency zod to v3.22.3 Oct 6, 2023
@renovate renovate bot changed the title chore(Renovate): ⬆️ Update dependency zod to v3.22.3 chore(Renovate): ⬆️ Update dependency zod to v3.22.4 Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧩 dependencies Related to the dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants