Closed github-actions[bot] closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
formik-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | May 26, 2023 7:42pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit e68aadcd17054037ed49d04e159f5acb55b8ac19:
Sandbox | Source |
---|---|
Formik TypeScript Playground | Configuration |
Size Change: 0 B
Total Size: 40.3 kB
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
formik@2.3.0
Minor Changes
73de78d
#3788 Thanks @probablyup! - Added typescript generics toArrayHelpers
interface and its methods so that users who use TypeScript can set the type for their arrays and have type safety on array utils. I have also gone ahead and made supplying a type for the generic optional for the sake of backwards compatibility so any existing TS code that does not give a type for the FieldArray will continue to work as they always have.39a7bf7
#3786 Thanks @probablyup! - Yup by default only allows for cross-field validation within the same field object. This is not that useful in most scenarios because a sufficiently-complex form will have severalyup.object()
in the schema.However, Yup offers something called
context
which can operate across the entire schema when using a \$ prefix:With this change, you may now validate against any field in the entire schema, regardless of position when using the \$ prefix.
formik-native@2.1.19
Patch Changes
73de78d
,39a7bf7
]: