Skip to content

Commit

Permalink
fix(deps): update dependency zod to ^3.22.0 (#150)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [zod](https://zod.dev) ([source](https://togithub.com/colinhacks/zod))
| [`^3.21.4` ->
`^3.22.0`](https://renovatebot.com/diffs/npm/zod/3.21.4/3.22.0) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/zod/3.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/zod/3.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/zod/3.21.4/3.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/zod/3.21.4/3.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod (zod)</summary>

###
[`v3.22.0`](https://togithub.com/colinhacks/zod/releases/tag/v3.22.0)

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.21.4...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`.

```ts
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.

```ts
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:

-
[`6dad907`](https://togithub.com/colinhacks/zod/commit/6dad90785398885f7b058f5c0760d5ae5476b833)
Comments
-
[`56ace68`](https://togithub.com/colinhacks/zod/commit/56ace682e4cc89132c034a3ae2c13b2d5b1a0115)
Fix deno test
-
[`3809d54`](https://togithub.com/colinhacks/zod/commit/3809d54fc8c5dd0a0ce367bd2575fe3fdadf087d)
Add superforms
-
[`d1ad522`](https://togithub.com/colinhacks/zod/commit/d1ad5221900af640bc3093a2fb0476ec0c94953e)
Add transloadit
-
[`a3bb701`](https://togithub.com/colinhacks/zod/commit/a3bb701757127ffe05e773a2e449136b9b7efcb3)
Testing on Typescript 5.0
([#&#8203;2221](https://togithub.com/colinhacks/zod/issues/2221))
-
[`51e14be`](https://togithub.com/colinhacks/zod/commit/51e14beeab2f469fcbf18e3df44653e1643f5487)
docs: update deprecated link
([#&#8203;2219](https://togithub.com/colinhacks/zod/issues/2219))
-
[`a263814`](https://togithub.com/colinhacks/zod/commit/a263814fc430db8d47430cd2884d2cea6b11c671)
fixed Datetime & IP TOC links
-
[`502384e`](https://togithub.com/colinhacks/zod/commit/502384e56fe2b1f8173735df6c3b0d41bce04edc)
docs: add mobx-zod-form to form integrations
([#&#8203;2299](https://togithub.com/colinhacks/zod/issues/2299))
-
[`a8be450`](https://togithub.com/colinhacks/zod/commit/a8be4500851923aa865e009fe9c2855e80482047)
docs: Add `zocker` to Ecosystem section
([#&#8203;2416](https://togithub.com/colinhacks/zod/issues/2416))
-
[`15de22a`](https://togithub.com/colinhacks/zod/commit/15de22a3ba6144c7d8d2276e8e56174bcdfa7225)
Allow subdomains and hyphens in `ZodString.email`
([#&#8203;2274](https://togithub.com/colinhacks/zod/issues/2274))
-
[`00f5783`](https://togithub.com/colinhacks/zod/commit/00f5783602ccbe423deb0dbd76ecf13a276bc54d)
Add `zod-openapi` to ecosystem
([#&#8203;2434](https://togithub.com/colinhacks/zod/issues/2434))
-
[`0a17340`](https://togithub.com/colinhacks/zod/commit/0a17340e9fc4b909d10ca3687b6bc6454903ff21)
docs: fix minor typo
([#&#8203;2439](https://togithub.com/colinhacks/zod/issues/2439))
-
[`60a2134`](https://togithub.com/colinhacks/zod/commit/60a21346086d32ca9f39efc2771f5db37c835c03)
Add masterborn
-
[`0a90ed1`](https://togithub.com/colinhacks/zod/commit/0a90ed1461dafa62ff50ce0d5d5434fd4a2a4a20)
chore: move `exports.types` field to first spot @&#8203; package.json.
([#&#8203;2443](https://togithub.com/colinhacks/zod/issues/2443))
-
[`67f35b1`](https://togithub.com/colinhacks/zod/commit/67f35b16692ca33fd48adfec9ae83b9514f8a4b7)
docs: allow Zod to be used in dev tools at site
([#&#8203;2432](https://togithub.com/colinhacks/zod/issues/2432))
-
[`6795c57`](https://togithub.com/colinhacks/zod/commit/6795c574b1d34f6e95ae891f96d8b219b98ace92)
Fix not working Deno doc link.
([#&#8203;2428](https://togithub.com/colinhacks/zod/issues/2428))
-
[`37e9c55`](https://togithub.com/colinhacks/zod/commit/37e9c550460e4edd144da90d903e878c119c5cc1)
Generalize uuidRegex
-
[`0969950`](https://togithub.com/colinhacks/zod/commit/09699501ff6218b3b0a7e382eca3c02a8226ce13)
adds ctx to preprocess
([#&#8203;2426](https://togithub.com/colinhacks/zod/issues/2426))
-
[`af08390`](https://togithub.com/colinhacks/zod/commit/af08390139cf9fd4fc9e398b60a39191bf224076)
fix: super refinement function types
([#&#8203;2420](https://togithub.com/colinhacks/zod/issues/2420))
-
[`36fef58`](https://togithub.com/colinhacks/zod/commit/36fef58410f4b2c9e79edabae2fc567a4aee13a7)
Make email regex reasonable
([#&#8203;2157](https://togithub.com/colinhacks/zod/issues/2157))
-
[`f627d14`](https://togithub.com/colinhacks/zod/commit/f627d14d3bfe3a680ac0d54705b2e63daa912aed)
Document canary
-
[`e06321c`](https://togithub.com/colinhacks/zod/commit/e06321c15d22082e47c7c111a92ec7b3e104c644)
docs: add tapiduck to API libraries
([#&#8203;2410](https://togithub.com/colinhacks/zod/issues/2410))
-
[`11e507c`](https://togithub.com/colinhacks/zod/commit/11e507c4d3bf4ad3ab2057a0122168ed0048a2c4)
docs: add ts as const example in zod enums
([#&#8203;2412](https://togithub.com/colinhacks/zod/issues/2412))
-
[`5427565`](https://togithub.com/colinhacks/zod/commit/5427565c347a14056bc60e3ffd800b98753952bc)
docs: add zod-fixture to mocking ecosystem
([#&#8203;2409](https://togithub.com/colinhacks/zod/issues/2409))
-
[`d3bf7e6`](https://togithub.com/colinhacks/zod/commit/d3bf7e60a8eb706c4c63a9a91fd66565b82883cf)
docs: add `zodock` to mocking ecosystem
([#&#8203;2394](https://togithub.com/colinhacks/zod/issues/2394))
-
[`2270ae5`](https://togithub.com/colinhacks/zod/commit/2270ae563f7f14bed770f75d9c252880794fa71f)
remove "as any" casts in createZodEnum
([#&#8203;2332](https://togithub.com/colinhacks/zod/issues/2332))
-
[`00bdd0a`](https://togithub.com/colinhacks/zod/commit/00bdd0a7ffdf495af14e67ae1396c85a282c38dd)
fix proto pollution vulnerability
([#&#8203;2239](https://togithub.com/colinhacks/zod/issues/2239))
-
[`a3c5256`](https://togithub.com/colinhacks/zod/commit/a3c525658bc43edf40747a99b8f882d8d3d1e0c7)
Fix error_handling unrecognized_keys example
-
[`4f75cbc`](https://togithub.com/colinhacks/zod/commit/4f75cbc682199a5411189f9cd9abba9af4924746)
Adds getters to Map for key + value
([#&#8203;2356](https://togithub.com/colinhacks/zod/issues/2356))
-
[`ca7b032`](https://togithub.com/colinhacks/zod/commit/ca7b03222764496d72085b1178fa22f4a57fe579)
FMC ([#&#8203;2346](https://togithub.com/colinhacks/zod/issues/2346))
-
[`6fec8bd`](https://togithub.com/colinhacks/zod/commit/6fec8bd3407f463f157522a3979b4d202870ba4c)
docs: fix typo in link fragment
([#&#8203;2329](https://togithub.com/colinhacks/zod/issues/2329))
-
[`16f90bd`](https://togithub.com/colinhacks/zod/commit/16f90bd22b465aca9a1fbad09248d80aa93fd824)
Update README.md
-
[`2c80250`](https://togithub.com/colinhacks/zod/commit/2c802507d92d2d2e15be959695b1de78b896bfcb)
Update readme
-
[`eaf64e0`](https://togithub.com/colinhacks/zod/commit/eaf64e09ba1a87dd6bf348fb97061894a01242d2)
Update sponsors
-
[`c576311`](https://togithub.com/colinhacks/zod/commit/c5763112e2912390f3317d738e4261fa8747494e)
Update readme
-
[`5e23b4f`](https://togithub.com/colinhacks/zod/commit/5e23b4fae4715c7391f9ceb4369421a034851b4c)
Add `*.md` pattern to prettier
([#&#8203;2476](https://togithub.com/colinhacks/zod/issues/2476))
-
[`898dced`](https://togithub.com/colinhacks/zod/commit/898dced470f1045b5469543abd2f427a713d93eb)
Revamp tests
-
[`6309322`](https://togithub.com/colinhacks/zod/commit/6309322a28545e316299f8b9a36f43132d347300)
Update test runners
-
[`c0aece1`](https://togithub.com/colinhacks/zod/commit/c0aece1672d1442d69ce1991142af8f16ed20ecb)
Add vitest config
-
[`73a5610`](https://togithub.com/colinhacks/zod/commit/73a5610186c413872153e8dcac76c4c4f23dfe4e)
Update script
-
[`8d8e1a2`](https://togithub.com/colinhacks/zod/commit/8d8e1a2d306cecaf3d8cb88f32fe3e130a834f9f)
Fix deno test bug
-
[`9eb2508`](https://togithub.com/colinhacks/zod/commit/9eb2508fac78cc36faefd050e9616bb6d34814c1)
Clean up configs
-
[`cfbc7b3`](https://togithub.com/colinhacks/zod/commit/cfbc7b3f6714ced250dd4053822faf472bf1828e)
Fix root jest config
-
[`8677f68`](https://togithub.com/colinhacks/zod/commit/8677f688b0ab1bb5991e90744f46a15082772bd6)
docs(comparison-yup): Yup added partial() and deepPartial() in v1
([#&#8203;2603](https://togithub.com/colinhacks/zod/issues/2603))
-
[`fb00edd`](https://togithub.com/colinhacks/zod/commit/fb00edd04ca338b8d791a96dead161076538c6c2)
docs: add VeeValidate form library for Vue.js
([#&#8203;2578](https://togithub.com/colinhacks/zod/issues/2578))
-
[`ab8e717`](https://togithub.com/colinhacks/zod/commit/ab8e71793431eeb163613007c134132e6c2ab078)
docs: fix typo in z.object
([#&#8203;2570](https://togithub.com/colinhacks/zod/issues/2570))
-
[`d870407`](https://togithub.com/colinhacks/zod/commit/d870407a020f9518fbae662f9f48a9aba005a3e2)
docs: fix incomplete Records example
([#&#8203;2579](https://togithub.com/colinhacks/zod/issues/2579))
-
[`5adae24`](https://togithub.com/colinhacks/zod/commit/5adae24e9b2fc98fc679defa8f78e4142d4c3451)
docs: add conform form integration
([#&#8203;2577](https://togithub.com/colinhacks/zod/issues/2577))
-
[`8b8ab3e`](https://togithub.com/colinhacks/zod/commit/8b8ab3e79691ebafbb9aac3ce089eaf0dcd6d8fe)
Update README.md
([#&#8203;2562](https://togithub.com/colinhacks/zod/issues/2562))
-
[`6aab901`](https://togithub.com/colinhacks/zod/commit/6aab9016873c12be08d19bcc097b3e5ba4c9d6fe)
fix typo test name
([#&#8203;2542](https://togithub.com/colinhacks/zod/issues/2542))
-
[`81a89f5`](https://togithub.com/colinhacks/zod/commit/81a89f593f4d6b05f770bbb3ad0fc98075f468dd)
Update nullish documentation to correct chaining order
([#&#8203;2457](https://togithub.com/colinhacks/zod/issues/2457))
-
[`78a4090`](https://togithub.com/colinhacks/zod/commit/78a409012a4dc34a455f5c4a7e028ca47c921e1b)
docs: update comparison with `runtypes`
([#&#8203;2536](https://togithub.com/colinhacks/zod/issues/2536))
-
[`1ecd624`](https://togithub.com/colinhacks/zod/commit/1ecd6241ef97b33ce229b49f1346ffeee5d0ba74)
Fix prettier
-
[`981d4b5`](https://togithub.com/colinhacks/zod/commit/981d4b5e272e7e35ff44a31fbb5e8e90594b1933)
Add ZodReadonly
([#&#8203;2634](https://togithub.com/colinhacks/zod/issues/2634))
-
[`fba438c`](https://togithub.com/colinhacks/zod/commit/fba438cddea800b081a15aefc8b1efea2eccf7af)
3.22.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - "after 8:00 before 23:00 every weekday except on Friday" in
timezone UTC.

🚦 **Automerge**: Enabled.

♻ **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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/fiatconnect/api-starter).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi40My4yIiwidXBkYXRlZEluVmVyIjoiMzYuNDMuMiIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
  • Loading branch information
renovate[bot] authored Aug 17, 2023
1 parent cc16eae commit b363f89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"siwe": "^1.1.6",
"typescript": "^5.1.6",
"yargs": "^17.7.2",
"zod": "^3.21.4"
"zod": "^3.22.0"
},
"devDependencies": {
"@types/express-session": "^1.17.7",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6121,7 +6121,7 @@ yocto-queue@^0.1.0:
resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b"
integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==

zod@^3.21.4:
version "3.21.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==
zod@^3.21.4, zod@^3.22.0:
version "3.22.1"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.22.1.tgz#815f850baf933fef96c1061322dbe579b1a80c27"
integrity sha512-+qUhAMl414+Elh+fRNtpU+byrwjDFOS1N7NioLY+tSlcADTx4TkCUua/hxJvxwDXcV4397/nZ420jy4n4+3WUg==

0 comments on commit b363f89

Please sign in to comment.