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

docs(sample.env): add TZ documentation #1711

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

garrappachc
Copy link
Member

No description provided.

@garrappachc garrappachc self-assigned this Jun 5, 2022
@codecov
Copy link

codecov bot commented Jun 5, 2022

Codecov Report

Merging #1711 (974fd66) into master (b5a3ce4) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1711   +/-   ##
=======================================
  Coverage   94.91%   94.91%           
=======================================
  Files         221      221           
  Lines        4407     4407           
  Branches      437      437           
=======================================
  Hits         4183     4183           
  Misses        215      215           
  Partials        9        9           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5a3ce4...974fd66. Read the comment docs.

@garrappachc garrappachc merged commit 721a6f9 into tf2pickup-org:master Jun 5, 2022
@garrappachc garrappachc deleted the sample-env-doc branch June 5, 2022 22:51
renovate bot added a commit that referenced this pull request Mar 16, 2023
[![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.20.2` ->
`3.21.4`](https://renovatebot.com/diffs/npm/zod/3.20.2/3.21.4) |
[![age](https://badges.renovateapi.com/packages/npm/zod/3.21.4/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/zod/3.21.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/zod/3.21.4/compatibility-slim/3.20.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/zod/3.21.4/confidence-slim/3.20.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>colinhacks/zod</summary>

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.21.3...v3.21.4)

#### Commits:

-
[`22f3cc6`](https://togithub.com/colinhacks/zod/commit/22f3cc6ed52a28c984a0319a1a03e1af244cee02)
3.21.4

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.21.2...v3.21.3)

#### Commits:

-
[`14c08d8`](https://togithub.com/colinhacks/zod/commit/14c08d87129c3b652f03d2e724979c383c55e0b4)
added more `.pipe` examples
-
[`006e652`](https://togithub.com/colinhacks/zod/commit/006e6521f425b38e1fbb898e29921fe885caf7ba)
Fix npm canary action paths pattern
([#&#8203;2148](https://togithub.com/colinhacks/zod/issues/2148))
-
[`bdcff0f`](https://togithub.com/colinhacks/zod/commit/bdcff0f20f4c35dd6a44b1324711dfd34a41ae96)
Remove logging in tests
-
[`a5830c6`](https://togithub.com/colinhacks/zod/commit/a5830c6d3fe28f0d5435cc9ff22846be7f5977c1)
Reverted [#&#8203;1564](https://togithub.com/colinhacks/zod/issues/1564)
-
[`c458381`](https://togithub.com/colinhacks/zod/commit/c4583819e77a702e21b587c4bf081d0292f2b754)
Fix tests
-
[`2db0dca`](https://togithub.com/colinhacks/zod/commit/2db0dcadc961fd57f7f10f9d9f55d67e6d040342)
3.21.3

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.21.1...v3.21.2)

##### Commits:

-
[`b276d71`](https://togithub.com/colinhacks/zod/commit/b276d71eaefef6cb87c81e8429bd160e4b68c168)
Improve typings in generics
-
[`4d016b7`](https://togithub.com/colinhacks/zod/commit/4d016b772b79d566bfa2a0c2fc5bfbd92b776982)
Improve type inference in generics
-
[`f9895ab`](https://togithub.com/colinhacks/zod/commit/f9895ab1650ef3df9c598a8c43ede0160596ac2e)
Improve types inside generic functions
-
[`ac0135e`](https://togithub.com/colinhacks/zod/commit/ac0135e00df75abd57a93a4816fe0fdaa31e94e8)
Pass input into catchValue

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.21.0...v3.21.1)

#### Features

Support for [ULID](https://togithub.com/ulid/spec) validation

```ts
z.string().ulid();
```

#### Commits:

-
[`4f89461`](https://togithub.com/colinhacks/zod/commit/4f8946182ee07eb7b5d40efa908b1715414e8929)
Prettier
-
[`bd6527a`](https://togithub.com/colinhacks/zod/commit/bd6527a47a4626135dccac113a7b09f81b675edd)
Update deps
-
[`126c77b`](https://togithub.com/colinhacks/zod/commit/126c77b3130d9a68032f72ac76dd9e1ccfd86c2c)
added `toLowerCase` and `toUpperCase` back in for v3.21.0
-
[`1749657`](https://togithub.com/colinhacks/zod/commit/174965739d17db348d445ab250fb2cf6bd7cdd51)
Update README.md
-
[`dabe63d`](https://togithub.com/colinhacks/zod/commit/dabe63d15eb6d22246aa5d5c83b69d1d5f4c2f4b)
updated `z.custom` example again :D
-
[`6b8f655`](https://togithub.com/colinhacks/zod/commit/6b8f6557d9b53ea7ad3fda753a51cdf153ba1fb7)
docs: improve cn readme
([#&#8203;2143](https://togithub.com/colinhacks/zod/issues/2143))
-
[`9012dc7`](https://togithub.com/colinhacks/zod/commit/9012dc7055e1467b6d619a6c0ad016fdfbde2b9c)
add `.includes(value, options?)` @&#8203; `ZodString`.
([#&#8203;1887](https://togithub.com/colinhacks/zod/issues/1887))
-
[`67b981e`](https://togithub.com/colinhacks/zod/commit/67b981e70b4bacb2278a9aacd22d38cbb4b52d17)
Make safeParse().error a getter
-
[`346fde0`](https://togithub.com/colinhacks/zod/commit/346fde03724bfd1601823e4f72470bc7e344030b)
3.21.0-canary.20230304T235951
-
[`b50d871`](https://togithub.com/colinhacks/zod/commit/b50d871b2f5949587afdcce2375227a447dbb742)
Add canary release CI
-
[`b20cca2`](https://togithub.com/colinhacks/zod/commit/b20cca230a6a9beb8acf841250641b62847b6e80)
Fix canary
-
[`f7f5c50`](https://togithub.com/colinhacks/zod/commit/f7f5c50c65d7c7e5262c028e6832b92b14d84ea5)
Move action to .github/workflows
-
[`f01fa0e`](https://togithub.com/colinhacks/zod/commit/f01fa0e48ca18630604366f5bc7401a18eb4d018)
Try to fix canary CI
-
[`f5e8067`](https://togithub.com/colinhacks/zod/commit/f5e8067b2afcc3e5ae9f8ed389a31b83a7c3ceec)
No git tag
-
[`5b304ae`](https://togithub.com/colinhacks/zod/commit/5b304ae41705105ae6edcacdb6dfdac9c527b3f4)
No dry run
-
[`20df80e`](https://togithub.com/colinhacks/zod/commit/20df80e6ce2ac27f6e2f26b61cd1fd4c942b152d)
Add tsc compilation test
-
[`ead93d3`](https://togithub.com/colinhacks/zod/commit/ead93d3cfde54efe952dc615c21ff179a00f7574)
Document .pipe()
-
[`d8e8653`](https://togithub.com/colinhacks/zod/commit/d8e86534325fb00bc0193a4c6af04f2a67bd2e4e)
Update headers
-
[`03c0ab1`](https://togithub.com/colinhacks/zod/commit/03c0ab1640ca9111d9fbac3c261e2f76e3cbf247)
Cache the evaluation of ParseInputLazyPath.path() for a moderate perf
improvement
([#&#8203;2137](https://togithub.com/colinhacks/zod/issues/2137))
-
[`e7b3b7b`](https://togithub.com/colinhacks/zod/commit/e7b3b7bf493caeee7e4f043eea024e4d3badc090)
Improve string docs
-
[`83478f5`](https://togithub.com/colinhacks/zod/commit/83478f5e413c333f07f53b9b4bb8c24b75e1cecf)
Remove zod dep
-
[`2f1868d`](https://togithub.com/colinhacks/zod/commit/2f1868d0c17c0e401c4438d9d35e68f9685a741b)
Specify paths for canary
-
[`e599966`](https://togithub.com/colinhacks/zod/commit/e599966709fe0253d6779ce1dec38a2adcebf41f)
Add sponsors
-
[`950bd17`](https://togithub.com/colinhacks/zod/commit/950bd17f01668b45e592a678974437b15012b158)
Tweak x.custom example
-
[`728e56a`](https://togithub.com/colinhacks/zod/commit/728e56a7e157cca8cdc0ab937f25a2412673c934)
Close [#&#8203;2127](https://togithub.com/colinhacks/zod/issues/2127)
-
[`64883e4`](https://togithub.com/colinhacks/zod/commit/64883e4fe41b10eb577c4f9eaf6f24fa29bcd60d)
feat: z.string().ulid() - add support for ulids
([#&#8203;2049](https://togithub.com/colinhacks/zod/issues/2049))
-
[`e0d709b`](https://togithub.com/colinhacks/zod/commit/e0d709b1348efab06ac5341d360a411bc09eb7ba)
3.20.1
-
[`9c33194`](https://togithub.com/colinhacks/zod/commit/9c3319443cfc953adc51786e8d6fe0bbe1e37f8e)
Remove comments, clean up utils
-
[`942e2db`](https://togithub.com/colinhacks/zod/commit/942e2db8e51d580f4e3cd8c4c4af8bc6aecf4130)
Fix tests

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.20.6...v3.21.0)

##### Features

##### `z.string().emoji()`

Thanks [@&#8203;joseph-lozano](https://togithub.com/joseph-lozano) for
[https://github.com/colinhacks/zod/pull/2045](https://togithub.com/colinhacks/zod/pull/2045)!
To validate that all characters in a string are emoji:

```ts
z.string().emoji()
```

...if that's something you want to do for some reason.

##### `z.string().cuid2()`

Thanks [@&#8203;joulev](https://togithub.com/joulev) for
[https://github.com/colinhacks/zod/pull/1813](https://togithub.com/colinhacks/zod/pull/1813)!
To validate [CUIDv2](https://togithub.com/paralleldrive/cuid2):

```ts
z.string().cuid2()
```

##### `z.string().ip()`

Thanks [@&#8203;fvckDesa](https://togithub.com/fvckDesa) for
[https://github.com/colinhacks/zod/pull/2066](https://togithub.com/colinhacks/zod/pull/2066).
To validate that a string is a valid IP address:

```ts
const v4IP = "122.122.122.122";
const v6IP = "6097:adfa:6f0b:220d:db08:5021:6191:7990";

// matches both IPv4 and IPv6 by default
const ipSchema = z.string().ip();
ipSchema.parse(v4IP) //  pass
ipSchema.parse(v6IP) //  pass
```

To specify a particular `version`:

```ts
const ipv4Schema = z.string().ip({ version: "v4" });
const ipv6Schema = z.string().ip({ version: "v6" });
```

##### `z.bigint().{gt|gte|lt|lte}()`

Thanks [@&#8203;igalklebanov](https://togithub.com/igalklebanov) for
[`#1711`](https://togithub.com/colinhacks/zod/pull/1711)! `ZodBigInt`
gets the same set of methods found on `ZodNumber`:

```ts
z.bigint().gt(BigInt(5));
z.bigint().gte(BigInt(5));
z.bigint().lt(BigInt(5));
z.bigint().lte(BigInt(5));
z.bigint().positive();
z.bigint().negative();
z.bigint().nonnegative();
z.bigint().nonpositive();
z.bigint().multipleOf(BigInt(5));
```

##### `z.enum(...).extract()` and `z.enum(...).exclude()`

Thanks
[@&#8203;santosmarco-caribou](https://togithub.com/santosmarco-caribou)
for
[https://github.com/colinhacks/zod/pull/1652](https://togithub.com/colinhacks/zod/pull/1652)!
To add or remove elements from a `ZodEnum`:

```ts
const FoodEnum = z.enum(["Pasta", "Pizza", "Tacos", "Burgers", "Salad"]);
const ItalianEnum = FoodEnum.extract(["Pasta", "Pizza"]); // ZodEnum<["Pasta", "Pizza"]>
const UnhealthyEnum = FoodEnum.exclude(["Salad"]); // ZodEnum<["Pasta", "Pizza", "Tacos", "Burgers"]>
```

This API is inspired by the
[`Exclude`](https://www.typescriptlang.org/docs/handbook/utility-types.html#excludeuniontype-excludedmembers)
and
[`Extract`](https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union)
TypeScript built-ins.

##### Pass a function to `.catch()`

Thanks [@&#8203;0xWryth](https://togithub.com/0xWryth) for
[https://github.com/colinhacks/zod/pull/2087](https://togithub.com/colinhacks/zod/pull/2087)!
The `.catch()` method now accepts a function that receives the caught
error:

```ts
const numberWithErrorCatch = z.number().catch((ctx) => {
  ctx.error; // ZodError
  return 42;
});
```

##### Compiler performance

Zod 3.20.2 introduced an accidental type recursion that caused long
compilation times for some users. These kinds of bugs are very hard to
diagnose. Big shoutout to
[@&#8203;gydroperit](https://togithub.com/gydroperit) for some heroic
efforts here:
[https://github.com/colinhacks/zod/pull/2107](https://togithub.com/colinhacks/zod/pull/2107)
Zod 3.21 resolves these issues:

-
[https://github.com/colinhacks/zod/issues/2142](https://togithub.com/colinhacks/zod/issues/2142)
-
[https://github.com/colinhacks/zod/issues/1741](https://togithub.com/colinhacks/zod/issues/1741)
-
https://stackoverflow.com/questions/74881472/slow-typescript-autocompletion-in-vs-code-for-zod

##### Commits:

-
[`3c54461`](https://togithub.com/colinhacks/zod/commit/3c54461d7a649bf727aec59367eefb214ffe24fe)
fix typo in readme
-
[`c244fb6`](https://togithub.com/colinhacks/zod/commit/c244fb6c57506fd11609106960639de26ddf9b6d)
feat: z.string().emoji()
([#&#8203;2045](https://togithub.com/colinhacks/zod/issues/2045))
-
[`39cbb69`](https://togithub.com/colinhacks/zod/commit/39cbb6971c3dca09cbc0acdca2d3995dfd26aab2)
Fix emoji validation, fix lint
-
[`d8f07bb`](https://togithub.com/colinhacks/zod/commit/d8f07bbfffd255b0aee6b5fe9bb6aa2bce6586af)
Fix emoji
-
[`9b7dd81`](https://togithub.com/colinhacks/zod/commit/9b7dd816e92e16ca735e488b77e280a92a84ed64)
Improve variable name clarity
([#&#8203;2048](https://togithub.com/colinhacks/zod/issues/2048))
-
[`5cec187`](https://togithub.com/colinhacks/zod/commit/5cec1871ac21627608af6c07585d5e50ff30f281)
Add documentation for the param parameter of z.custom
-
[`654f529`](https://togithub.com/colinhacks/zod/commit/654f52969a968c630af816dcad0d8f3721f9001a)
Merge pull request
[#&#8203;2057](https://togithub.com/colinhacks/zod/issues/2057) from
trygveaa/add-documentation-for-z-custom-params
-
[`981af65`](https://togithub.com/colinhacks/zod/commit/981af6503ee1be530fe525ac77ba95e1904ce24a)
Merge pull request
[#&#8203;2019](https://togithub.com/colinhacks/zod/issues/2019) from
vbud/patch-1
-
[`a7c2969`](https://togithub.com/colinhacks/zod/commit/a7c2969b9125df0fbfa65e8541a974eeaf53b6a6)
Update error_handling
-
[`8f3d028`](https://togithub.com/colinhacks/zod/commit/8f3d0283ba75d146d5199fe3dc140eeb5402352c)
BRAND Record to Non Partial
([#&#8203;2097](https://togithub.com/colinhacks/zod/issues/2097))
-
[`5ec98e1`](https://togithub.com/colinhacks/zod/commit/5ec98e1c4420957f93a7388bf49fb01d91bcbcd0)
Fix email issues in pull request
[#&#8203;1982](https://togithub.com/colinhacks/zod/issues/1982)
([#&#8203;2058](https://togithub.com/colinhacks/zod/issues/2058))
-
[`7d40ba5`](https://togithub.com/colinhacks/zod/commit/7d40ba58931130ec965be9d65d14e0665ee9c379)
feat([#&#8203;2059](https://togithub.com/colinhacks/zod/issues/2059)):
z.string.ip() - add support for IP address
([#&#8203;2066](https://togithub.com/colinhacks/zod/issues/2066))
-
[`e559605`](https://togithub.com/colinhacks/zod/commit/e5596054cfddf8aa1ba8d7d3bad63552a2bf9b6a)
feat: add `.catch` error
([#&#8203;2087](https://togithub.com/colinhacks/zod/issues/2087))
-
[`defdab9`](https://togithub.com/colinhacks/zod/commit/defdab9c163d9a994f927a0644ab4ec172513fcb)
Fix record tests
-
[`8de36eb`](https://togithub.com/colinhacks/zod/commit/8de36eb17d9477ada75cea2164d6b47079dd0444)
FIX: emoji regex and tests
([#&#8203;2090](https://togithub.com/colinhacks/zod/issues/2090))
-
[`16beeb5`](https://togithub.com/colinhacks/zod/commit/16beeb598039b33bc5a209956042d858abacca34)
lowercase method for ZodString
([#&#8203;2038](https://togithub.com/colinhacks/zod/issues/2038))
-
[`75cb9e8`](https://togithub.com/colinhacks/zod/commit/75cb9e814115a35c0b4cc2e970f6aaae90e1a13c)
add checks @&#8203; `ZodBigInt`.
([#&#8203;1711](https://togithub.com/colinhacks/zod/issues/1711))
-
[`c4d4e49`](https://togithub.com/colinhacks/zod/commit/c4d4e494227aadc752d4d5a5a317ec16bb6f5a45)
Update ERROR_HANDLING.md
([#&#8203;2022](https://togithub.com/colinhacks/zod/issues/2022))
-
[`d6f0890`](https://togithub.com/colinhacks/zod/commit/d6f08908b17ea10456befc2231a867d5cea02a0e)
added link to deno land
-
[`4cf1960`](https://togithub.com/colinhacks/zod/commit/4cf19606870e66bf4307984bf99a4bef495c7818)
Refactoring of ZodFormattedError type to improve tsc check time
([#&#8203;2107](https://togithub.com/colinhacks/zod/issues/2107))
-
[`867a921`](https://togithub.com/colinhacks/zod/commit/867a921a93160780d9f3aeddabf1ca49758a3c1e)
Bump http-cache-semantics from 4.1.0 to 4.1.1
([#&#8203;1985](https://togithub.com/colinhacks/zod/issues/1985))
-
[`edc3a67`](https://togithub.com/colinhacks/zod/commit/edc3a67e77d33979b3ee9e071557b4ca53298c55)
Deprecate deepPartial
-
[`e59f639`](https://togithub.com/colinhacks/zod/commit/e59f639d3bb5cca65ef239d5dd5c93e74ce4a801)
Add custom tests
-
[`a6b44ed`](https://togithub.com/colinhacks/zod/commit/a6b44ed8e346af2fabbb62b5164b99a387accd32)
Remove logging
-
[`a1fc3fb`](https://togithub.com/colinhacks/zod/commit/a1fc3fb815051beb4b7030969828aa6abe469c2c)
commented out `toLowerCase` and `toUpperCase`
-
[`e71cc52`](https://togithub.com/colinhacks/zod/commit/e71cc523b1865568c4db45f82789e5c86bed0f12)
Update README_ZH.md
([#&#8203;2139](https://togithub.com/colinhacks/zod/issues/2139))
-
[`3af38fb`](https://togithub.com/colinhacks/zod/commit/3af38fbe2cb114219e688103e41e382e28ec7a80)
add `ZodNumber.safe()` & `ZodNumber.isSafe`.
([#&#8203;1753](https://togithub.com/colinhacks/zod/issues/1753))
-
[`6ef82ee`](https://togithub.com/colinhacks/zod/commit/6ef82ee1e45dbcfc92a2ed359b1d2ae87d54c43d)
Add benchmark flags
-
[`5463593`](https://togithub.com/colinhacks/zod/commit/5463593385549452768e060a98cc0fd8988760d2)
Support brands in recursive types
-
[`8074523`](https://togithub.com/colinhacks/zod/commit/80745238937adc06c5b4eab19ef273ca9f7f2de8)
Update readme
-
[`b6794a4`](https://togithub.com/colinhacks/zod/commit/b6794a4981b8621fee84642f5313464f5e8f9a22)
Add index signature for passthrough
-
[`3c6cdd2`](https://togithub.com/colinhacks/zod/commit/3c6cdd245ab73d7ca1461a18b5be2da07abe6b6b)
Make generic optional in objectOutputType
-
[`bc43ad1`](https://togithub.com/colinhacks/zod/commit/bc43ad18e64cf7add23e90bc6b07d5bba8370e5e)
Fix rollup build
-
[`6a0545a`](https://togithub.com/colinhacks/zod/commit/6a0545acd5b9cfc40b0b3f04e64bfc5dd789d1b1)
3.21.0
-
[`7c07339`](https://togithub.com/colinhacks/zod/commit/7c0733968d64c7d7aebc1ae54ca90aadcb2bffc3)
Fix brand
-
[`0aa6021`](https://togithub.com/colinhacks/zod/commit/0aa6021ef3628bb39715bdda416be2c6a4951141)
Clean up tests

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.20.5...v3.20.6)

#### Commits:

-
[`e693919`](https://togithub.com/colinhacks/zod/commit/e6939195fbb5191402ba3d6f5b7aade463de6e51)
3.20.6

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.20.4...v3.20.5)

#### Commits:

-
[`e71c7be`](https://togithub.com/colinhacks/zod/commit/e71c7be15e393e0932aa3c939d061f8444f6ae29)
Fix extract/exclude type error

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.20.3...v3.20.4)

#### Commits:

-
[`b8d731f`](https://togithub.com/colinhacks/zod/commit/b8d731f779679e6f47cde18b2c422b0d4f44b01d)
Set input type of ZodCatch to unknown
-
[`06c237c`](https://togithub.com/colinhacks/zod/commit/06c237c29f53a827d2eb29cb20e9e23caba1ce2c)
Revert merge changes
-
[`c8ce27e`](https://togithub.com/colinhacks/zod/commit/c8ce27e8c0378856964cf8892c6102bde63fa0cb)
3.20.4

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

[Compare
Source](https://togithub.com/colinhacks/zod/compare/v3.20.2...v3.20.3)

##### Features

- Add string cuid2() validation by
[@&#8203;joulev](https://togithub.com/joulev) in
[https://github.com/colinhacks/zod/pull/1813](https://togithub.com/colinhacks/zod/pull/1813)
- Add `ZodNumber.isFinite`, make `ZodNumber.isInt` true if
`.multipleOf(int)`. by
[@&#8203;igalklebanov](https://togithub.com/igalklebanov) in
[https://github.com/colinhacks/zod/pull/1714](https://togithub.com/colinhacks/zod/pull/1714)
- feat: Add `extract`/`exclude` methods to `ZodEnum` by
[@&#8203;santosmarco-caribou](https://togithub.com/santosmarco-caribou)
in
[https://github.com/colinhacks/zod/pull/1652](https://togithub.com/colinhacks/zod/pull/1652)

##### Fixes and documentation

- add more test cases for `z.coerce`. by
[@&#8203;igalklebanov](https://togithub.com/igalklebanov) in
[https://github.com/colinhacks/zod/pull/1680](https://togithub.com/colinhacks/zod/pull/1680)
- Add Modular Forms to form integrations in README by
[@&#8203;fabian-hiller](https://togithub.com/fabian-hiller) in
[https://github.com/colinhacks/zod/pull/1695](https://togithub.com/colinhacks/zod/pull/1695)
- docs: Instruct users to return z.NEVER in .superRefine() when
providing a type predicate by
[@&#8203;zetaraku](https://togithub.com/zetaraku) in
[https://github.com/colinhacks/zod/pull/1742](https://togithub.com/colinhacks/zod/pull/1742)
- Fix small typo in ERROR_HANDLING.md by
[@&#8203;t-shiratori](https://togithub.com/t-shiratori) in
[https://github.com/colinhacks/zod/pull/1720](https://togithub.com/colinhacks/zod/pull/1720)
- Improve accuracy of the `isAsync` type guard by
[@&#8203;aaronccasanova](https://togithub.com/aaronccasanova) in
[https://github.com/colinhacks/zod/pull/1719](https://togithub.com/colinhacks/zod/pull/1719)
- fix: Fix `ZodCatch` by
[@&#8203;santosmarco-caribou](https://togithub.com/santosmarco-caribou)
in
[https://github.com/colinhacks/zod/pull/1733](https://togithub.com/colinhacks/zod/pull/1733)
- Fix datetime offset without comma by
[@&#8203;ooga](https://togithub.com/ooga) in
[https://github.com/colinhacks/zod/pull/1749](https://togithub.com/colinhacks/zod/pull/1749)
- Discriminated union example fails to parse by
[@&#8203;matthewfallshaw](https://togithub.com/matthewfallshaw) in
[https://github.com/colinhacks/zod/pull/1713](https://togithub.com/colinhacks/zod/pull/1713)
- fix:
\[[#&#8203;1693](https://togithub.com/colinhacks/zod/issues/1693)] Tuple
with empty items by [@&#8203;metuan](https://togithub.com/metuan) in
[https://github.com/colinhacks/zod/pull/1712](https://togithub.com/colinhacks/zod/pull/1712)
- fix: [#&#8203;1668](https://togithub.com/colinhacks/zod/issues/1668)
email regex safari compat by
[@&#8203;AnatoleLucet](https://togithub.com/AnatoleLucet) in
[https://github.com/colinhacks/zod/pull/1683](https://togithub.com/colinhacks/zod/pull/1683)
- docs: fix typo by [@&#8203;zetaraku](https://togithub.com/zetaraku) in
[https://github.com/colinhacks/zod/pull/1699](https://togithub.com/colinhacks/zod/pull/1699)
- fix installation links in table of contents by
[@&#8203;DetachHead](https://togithub.com/DetachHead) in
[https://github.com/colinhacks/zod/pull/1700](https://togithub.com/colinhacks/zod/pull/1700)
- Updated `deno/lib/README.md` to match `zod/README.md` by
[@&#8203;JacobWeisenburger](https://togithub.com/JacobWeisenburger) in
[https://github.com/colinhacks/zod/pull/1791](https://togithub.com/colinhacks/zod/pull/1791)
- fix([#&#8203;1743](https://togithub.com/colinhacks/zod/issues/1743)):
Fix passing params in root class by
[@&#8203;santosmarco-caribou](https://togithub.com/santosmarco-caribou)
in
[https://github.com/colinhacks/zod/pull/1756](https://togithub.com/colinhacks/zod/pull/1756)
- change the chaining order of nullish method by
[@&#8203;p10ns11y](https://togithub.com/p10ns11y) in
[https://github.com/colinhacks/zod/pull/1702](https://togithub.com/colinhacks/zod/pull/1702)
- Propagate custom error type to ZodFormattedError subfields by
[@&#8203;carlgieringer](https://togithub.com/carlgieringer) in
[https://github.com/colinhacks/zod/pull/1617](https://togithub.com/colinhacks/zod/pull/1617)
- fix deno literal test. by
[@&#8203;igalklebanov](https://togithub.com/igalklebanov) in
[https://github.com/colinhacks/zod/pull/1794](https://togithub.com/colinhacks/zod/pull/1794)
- Document `.describe()` by
[@&#8203;rattrayalex](https://togithub.com/rattrayalex) in
[https://github.com/colinhacks/zod/pull/1819](https://togithub.com/colinhacks/zod/pull/1819)
- update homepage link in package.json by
[@&#8203;Gpx](https://togithub.com/Gpx) in
[https://github.com/colinhacks/zod/pull/1830](https://togithub.com/colinhacks/zod/pull/1830)
- fix: compile error in sample code by
[@&#8203;jtgi](https://togithub.com/jtgi) in
[https://github.com/colinhacks/zod/pull/1822](https://togithub.com/colinhacks/zod/pull/1822)
- Readme: Move "Coercion for primitives" section by
[@&#8203;tordans](https://togithub.com/tordans) in
[https://github.com/colinhacks/zod/pull/1842](https://togithub.com/colinhacks/zod/pull/1842)
- Readme: Add internal links "or" <-> "union" by
[@&#8203;tordans](https://togithub.com/tordans) in
[https://github.com/colinhacks/zod/pull/1846](https://togithub.com/colinhacks/zod/pull/1846)
- Readme: Add example for string validation for an optional field to
chapter "Unions" by [@&#8203;tordans](https://togithub.com/tordans) in
[https://github.com/colinhacks/zod/pull/1849](https://togithub.com/colinhacks/zod/pull/1849)
- Readme: Add intro to chapter Literals by
[@&#8203;tordans](https://togithub.com/tordans) in
[https://github.com/colinhacks/zod/pull/1877](https://togithub.com/colinhacks/zod/pull/1877)
- fix: faker.js link in readme by
[@&#8203;markacola](https://togithub.com/markacola) in
[https://github.com/colinhacks/zod/pull/1843](https://togithub.com/colinhacks/zod/pull/1843)
- Minor typo fix by
[@&#8203;iamchandru6470](https://togithub.com/iamchandru6470) in
[https://github.com/colinhacks/zod/pull/1945](https://togithub.com/colinhacks/zod/pull/1945)
- chore(documentation): Update CHANGELOG to redirect to Github Releases
by [@&#8203;mitchwd](https://togithub.com/mitchwd) in
[https://github.com/colinhacks/zod/pull/1936](https://togithub.com/colinhacks/zod/pull/1936)
- fix:
\[[#&#8203;1839](https://togithub.com/colinhacks/zod/issues/1839)]
remove caught errors from issues by
[@&#8203;maxArturo](https://togithub.com/maxArturo) in
[https://github.com/colinhacks/zod/pull/1926](https://togithub.com/colinhacks/zod/pull/1926)
- fix:
\[[#&#8203;1784](https://togithub.com/colinhacks/zod/issues/1784)] dark
mode in the documentation by
[@&#8203;fvckDesa](https://togithub.com/fvckDesa) in
[https://github.com/colinhacks/zod/pull/1932](https://togithub.com/colinhacks/zod/pull/1932)
- Allow also "\[+-]hh" as datetime offset by
[@&#8203;rafw87](https://togithub.com/rafw87) in
[https://github.com/colinhacks/zod/pull/1797](https://togithub.com/colinhacks/zod/pull/1797)
- Feature/add resolves method to zod promise by
[@&#8203;bolencki13](https://togithub.com/bolencki13) in
[https://github.com/colinhacks/zod/pull/1871](https://togithub.com/colinhacks/zod/pull/1871)
- test: add benchmark tests for date and symbol by
[@&#8203;pnts-se](https://togithub.com/pnts-se) in
[https://github.com/colinhacks/zod/pull/1796](https://togithub.com/colinhacks/zod/pull/1796)
- export the email regex by
[@&#8203;andresBobsled](https://togithub.com/andresBobsled) in
[https://github.com/colinhacks/zod/pull/2007](https://togithub.com/colinhacks/zod/pull/2007)
- Add React form validation library to ecosystem by
[@&#8203;crutchcorn](https://togithub.com/crutchcorn) in
[https://github.com/colinhacks/zod/pull/1999](https://togithub.com/colinhacks/zod/pull/1999)
- fix: make sure only mask keys with truthy values are respected at
runtime @&#8203; `.pick`, `.omit`, `.partial` & `.required`. by
[@&#8203;igalklebanov](https://togithub.com/igalklebanov) in
[https://github.com/colinhacks/zod/pull/1875](https://togithub.com/colinhacks/zod/pull/1875)
- fix: failing prettier checks on merge by
[@&#8203;maxArturo](https://togithub.com/maxArturo) in
[https://github.com/colinhacks/zod/pull/1969](https://togithub.com/colinhacks/zod/pull/1969)
- deny unexpected keys @&#8203; `ZodObject`'s
`.omit(mask)`,`.pick(mask)`,`.required(mask)` & `.partial(mask)` at
compile time. by
[@&#8203;igalklebanov](https://togithub.com/igalklebanov) in
[https://github.com/colinhacks/zod/pull/1564](https://togithub.com/colinhacks/zod/pull/1564)
- docs: punctuation by [@&#8203;jly36963](https://togithub.com/jly36963)
in
[https://github.com/colinhacks/zod/pull/1973](https://togithub.com/colinhacks/zod/pull/1973)
- fix\[[#&#8203;1979](https://togithub.com/colinhacks/zod/issues/1979)]:
Increment Email validation by
[@&#8203;fvckDesa](https://togithub.com/fvckDesa) in
[https://github.com/colinhacks/zod/pull/1982](https://togithub.com/colinhacks/zod/pull/1982)
- test: additional unit-tests for object by
[@&#8203;pnts-se](https://togithub.com/pnts-se) in
[https://github.com/colinhacks/zod/pull/1729](https://togithub.com/colinhacks/zod/pull/1729)

##### New Contributors

- [@&#8203;fabian-hiller](https://togithub.com/fabian-hiller) made their
first contribution in
[https://github.com/colinhacks/zod/pull/1695](https://togithub.com/colinhacks/zod/pull/1695)
- [@&#8203;zetaraku](https://togithub.com/zetaraku) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1742](https://togithub.com/colinhacks/zod/pull/1742)
- [@&#8203;t-shiratori](https://togithub.com/t-shiratori) made their
first contribution in
[https://github.com/colinhacks/zod/pull/1720](https://togithub.com/colinhacks/zod/pull/1720)
- [@&#8203;aaronccasanova](https://togithub.com/aaronccasanova) made
their first contribution in
[https://github.com/colinhacks/zod/pull/1719](https://togithub.com/colinhacks/zod/pull/1719)
- [@&#8203;ooga](https://togithub.com/ooga) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1749](https://togithub.com/colinhacks/zod/pull/1749)
- [@&#8203;matthewfallshaw](https://togithub.com/matthewfallshaw) made
their first contribution in
[https://github.com/colinhacks/zod/pull/1713](https://togithub.com/colinhacks/zod/pull/1713)
- [@&#8203;metuan](https://togithub.com/metuan) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1712](https://togithub.com/colinhacks/zod/pull/1712)
- [@&#8203;AnatoleLucet](https://togithub.com/AnatoleLucet) made their
first contribution in
[https://github.com/colinhacks/zod/pull/1683](https://togithub.com/colinhacks/zod/pull/1683)
- [@&#8203;DetachHead](https://togithub.com/DetachHead) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1700](https://togithub.com/colinhacks/zod/pull/1700)
- [@&#8203;p10ns11y](https://togithub.com/p10ns11y) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1702](https://togithub.com/colinhacks/zod/pull/1702)
- [@&#8203;carlgieringer](https://togithub.com/carlgieringer) made their
first contribution in
[https://github.com/colinhacks/zod/pull/1617](https://togithub.com/colinhacks/zod/pull/1617)
- [@&#8203;rattrayalex](https://togithub.com/rattrayalex) made their
first contribution in
[https://github.com/colinhacks/zod/pull/1819](https://togithub.com/colinhacks/zod/pull/1819)
- [@&#8203;Gpx](https://togithub.com/Gpx) made their first contribution
in
[https://github.com/colinhacks/zod/pull/1830](https://togithub.com/colinhacks/zod/pull/1830)
- [@&#8203;jtgi](https://togithub.com/jtgi) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1822](https://togithub.com/colinhacks/zod/pull/1822)
- [@&#8203;tordans](https://togithub.com/tordans) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1842](https://togithub.com/colinhacks/zod/pull/1842)
- [@&#8203;markacola](https://togithub.com/markacola) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1843](https://togithub.com/colinhacks/zod/pull/1843)
- [@&#8203;iamchandru6470](https://togithub.com/iamchandru6470) made
their first contribution in
[https://github.com/colinhacks/zod/pull/1945](https://togithub.com/colinhacks/zod/pull/1945)
- [@&#8203;mitchwd](https://togithub.com/mitchwd) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1936](https://togithub.com/colinhacks/zod/pull/1936)
- [@&#8203;fvckDesa](https://togithub.com/fvckDesa) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1932](https://togithub.com/colinhacks/zod/pull/1932)
- [@&#8203;rafw87](https://togithub.com/rafw87) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1797](https://togithub.com/colinhacks/zod/pull/1797)
- [@&#8203;bolencki13](https://togithub.com/bolencki13) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1871](https://togithub.com/colinhacks/zod/pull/1871)
- [@&#8203;joulev](https://togithub.com/joulev) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1813](https://togithub.com/colinhacks/zod/pull/1813)
- [@&#8203;pnts-se](https://togithub.com/pnts-se) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1796](https://togithub.com/colinhacks/zod/pull/1796)
- [@&#8203;andresBobsled](https://togithub.com/andresBobsled) made their
first contribution in
[https://github.com/colinhacks/zod/pull/2007](https://togithub.com/colinhacks/zod/pull/2007)
- [@&#8203;crutchcorn](https://togithub.com/crutchcorn) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1999](https://togithub.com/colinhacks/zod/pull/1999)
- [@&#8203;jly36963](https://togithub.com/jly36963) made their first
contribution in
[https://github.com/colinhacks/zod/pull/1973](https://togithub.com/colinhacks/zod/pull/1973)

**Full Changelog**:
colinhacks/zod@v3.20.2...v3.20.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **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://app.renovatebot.com/dashboard#github/tf2pickup-org/server).

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

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant