diff --git a/.prettierrc.yaml b/.prettierrc.yaml
index ac66545cb..2fcf1d015 100644
--- a/.prettierrc.yaml
+++ b/.prettierrc.yaml
@@ -3,3 +3,4 @@ trailingComma: "es5"
tabWidth: 2
semi: true
singleQuote: false
+printWidth: 80
diff --git a/README.md b/README.md
index d598de8ed..bd72da9e2 100644
--- a/README.md
+++ b/README.md
@@ -35,9 +35,10 @@ These docs have been translated into [Chinese](./README_ZH.md).
#### Go to [zod.js.org](https://zod.js.org) >> -->
-- [What is Zod](#what-is-zod)
-- [Installation](#installation)
-- [Ecosystem](#ecosystem)
+- [Introduction](#introduction)
+ - [Sponsors](#sponsorship)
+ - [Installation](#installation)
+ - [Ecosystem](#ecosystem)
- [Basic usage](#basic-usage)
- [Defining schemas](#defining-schemas)
- [Primitives](#primitives)
@@ -108,7 +109,7 @@ These docs have been translated into [Chinese](./README_ZH.md).
-## What is Zod
+## Introduction
Zod is a TypeScript-first schema declaration and validation library. I'm using the term "schema" to broadly refer to any data type, from a simple `string` to a complex nested object.
@@ -124,11 +125,11 @@ Some other great aspects:
- Functional approach: [parse, don't validate](https://lexi-lambda.github.io/blog/2019/11/05/parse-don-t-validate/)
- Works with plain JavaScript too! You don't need to use TypeScript.
-## Sponsorship
+### Sponsors
Sponsorship at any level is appreciated and encouraged. For individual developers, consider the [Cup of Coffee tier](https://github.com/sponsors/colinhacks). If you built a paid product using Zod, consider one of the [podium tiers](https://github.com/sponsors/colinhacks).
-### Gold
+#### Gold
@@ -174,7 +175,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
-### Silver
+#### Silver
@@ -206,7 +207,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
-### Bronze
+#### Bronze
@@ -243,34 +244,7 @@ Sponsorship at any level is appreciated and encouraged. For individual developer
-## Installation
-
-To install Zod v3:
-
-```sh
-npm install zod
-```
-
-⚠️ IMPORTANT: You must enable `strict` mode in your `tsconfig.json`. This is a best practice for all TypeScript projects.
-
-```ts
-// tsconfig.json
-{
- // ...
- "compilerOptions": {
- // ...
- "strict": true
- }
-}
-```
-
-### TypeScript requirements
-
-- Zod 3.x requires TypeScript 4.1+
-- Zod 2.x requires TypeScript 3.7+
-- Zod 1.x requires TypeScript 3.3+
-
-## Ecosystem
+### Ecosystem
There are a growing number of tools that are built atop or support Zod natively! If you've built a tool or library on top of Zod, tell me about it [on Twitter](https://twitter.com/colinhacks) or [start a Discussion](https://github.com/colinhacks/zod/discussions). I'll add it below and tweet it out.
@@ -298,12 +272,39 @@ There are a growing number of tools that are built atop or support Zod natively!
- [`prisma-trpc-generator`](https://github.com/omar-dulaimi/prisma-trpc-generator): Emit fully implemented tRPC routers and their validation schemas using Zod.
- [`nestjs-graphql-zod`](https://github.com/incetarik/nestjs-graphql-zod): Generates NestJS GraphQL model classes from Zod schemas dynamically and provides GraphQL method decorators working with Zod schemas.
-### Form integrations
+#### Form integrations
- [`react-hook-form`](https://github.com/react-hook-form/resolvers#zod): A first-party Zod resolver for React Hook Form
- [`zod-formik-adapter`](https://github.com/robertLichtnow/zod-formik-adapter): A community-maintained Formik adapter for Zod
- [`react-zorm`](https://github.com/esamattis/react-zorm): Standalone `