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