github airjp73/remix-validated-form v3.0.0

latest releases: v6-alphas-0.0.8, v6-alphas-0.0.7, v6-alphas-0.0.6...
2 years ago

Breaking Change

The withZod and withYup validators are now published as separate packages.
This was done to prevent you from needing to install both zod and yup in order to appease Typescript.

Migration

Update and install packages

Install the updated remix-validated-form and the adapter package of your choice

npm install remix-validated-form@latest @remix-validated-form/with-zod

or

npm install remix-validated-form@latest @remix-validated-form/with-zod

Change imports

Change these imports

import { withYup, withZod } from 'remix-validated-form';

to this

import { withYup } from '@remix-validated-form/with-yup';
import { withZod } from '@remix-validated-form/with-zod';

PRs included

Full Changelog: v2.1.1...v3.0.0

Don't miss a new remix-validated-form release

NewReleases is sending notifications on new releases.