-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Colin McDonnell
committed
Jul 20, 2020
1 parent
cf9867f
commit 9c93eb7
Showing
2 changed files
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
| zod version | release notes | | ||
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| [email protected] | Dropping support for TypeScript 3.2 | | ||
| [email protected] | Added z.instanceof() and z.custom(). Implemented ZodSchema.array() method. | | ||
| [email protected] | Introduced z.void(). Major overhaul to error handling system, including the introduction of custom error maps. Wrote new [error handling guide](https://github.com/vriad/zod/blob/master/ERROR_HANDLING.md). | | ||
| [email protected] | Added several built-in validators to string, number, and array schemas. Calls to `.refine` now return new instance. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,8 @@ yarn add zod | |
|
||
#### TypeScript requirements | ||
|
||
1. Zod 1.x requires TypeScript 3.2+ | ||
1. Zod 1.x requires TypeScript 3.3+ | ||
> Support for TS 3.2 was dropped with the release of [email protected] on 19 July 2020 | ||
2. You must enable `strictNullChecks` or use `strict` mode which includes `strictNullChecks`. Otherwise Zod can't correctly infer the types of your schemas! | ||
```ts | ||
// tsconfig.json | ||
|