matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
230 stars 64 forks source link

Bump zod from 3.21.4 to 3.22.0 #211

Closed dependabot[bot] closed 10 months ago

dependabot[bot] commented 10 months ago

Bumps zod from 3.21.4 to 3.22.0.

Release notes

Sourced from zod's releases.

v3.22.0

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:

  • 6dad90785398885f7b058f5c0760d5ae5476b833 Comments
  • 56ace682e4cc89132c034a3ae2c13b2d5b1a0115 Fix deno test
  • 3809d54fc8c5dd0a0ce367bd2575fe3fdadf087d Add superforms
  • d1ad5221900af640bc3093a2fb0476ec0c94953e Add transloadit
  • a3bb701757127ffe05e773a2e449136b9b7efcb3 Testing on Typescript 5.0 (#2221)
  • 51e14beeab2f469fcbf18e3df44653e1643f5487 docs: update deprecated link (#2219)
  • a263814fc430db8d47430cd2884d2cea6b11c671 fixed Datetime & IP TOC links
  • 502384e56fe2b1f8173735df6c3b0d41bce04edc docs: add mobx-zod-form to form integrations (#2299)
  • a8be4500851923aa865e009fe9c2855e80482047 docs: Add zocker to Ecosystem section (#2416)
  • 15de22a3ba6144c7d8d2276e8e56174bcdfa7225 Allow subdomains and hyphens in ZodString.email (#2274)
  • 00f5783602ccbe423deb0dbd76ecf13a276bc54d Add zod-openapi to ecosystem (#2434)
  • 0a17340e9fc4b909d10ca3687b6bc6454903ff21 docs: fix minor typo (#2439)
  • 60a21346086d32ca9f39efc2771f5db37c835c03 Add masterborn
  • 0a90ed1461dafa62ff50ce0d5d5434fd4a2a4a20 chore: move exports.types field to first spot @ package.json. (#2443)
  • 67f35b16692ca33fd48adfec9ae83b9514f8a4b7 docs: allow Zod to be used in dev tools at site (#2432)
  • 6795c574b1d34f6e95ae891f96d8b219b98ace92 Fix not working Deno doc link. (#2428)

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 10 months ago

Superseded by #212.