Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump react-form from 2.16.3 to 4.0.1 #147

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps react-form from 2.16.3 to 4.0.1.

Release notes

Sourced from react-form's releases.

3.0.0

New Features

  • The Form component is now a render-prop component which supports the "big three" render-prop formats (component and render/children functions).
  • The FormField component has been renamed to Field and is now a render-prop component which supports the "big three" render-prop formats (component and render/children functions).
  • withFormField is a new dedicated HOC function, which mirrors the capabilities of Field but with the HOC syntax.
  • Added a new FormApi render-prop component and companion withFormApi HOC which allow you to access the nearest formApi ancestor from anywhere in your component tree.
  • Added pure prop to Form, Field and withField components. While using the pure prop, the Field instance will only rerender when form state or shallow prop values change. Use this to increase performance on large forms. By default this prop is true. Set it to false to deactivate the Optimization (rare cases).
  • NestedField/withNestedField is a new component that is replacing and deprecating the NestedForm components. NestedField allows you to set a new field context for any child Field and FormApi components. This allows for extremely implicit field declarations within components without having to worry about form composition.

Breaking Changes

  • Field is now a render-prop component, not an HOC. You can either directly replace it with the withField HOC, or adopt the inline FAAC format.
  • Form's 'dontValidateOnMount is now validatedOnMount and defaults to false. If you want to validate on mount, use the validateOnMount prop.
  • Polyfills for Array.find, Array.findIndex and Array.includes are no longer provided with the library. If your target browsers do not support these methods, please manually include a polyfill for these methods in your app.
  • The fieldApi prop continues to be available, but only when using HOC or FAAC-component-prop syntaxes. When using the FAAC render prop or child-as-a-function syntax's, the fieldApi object is directly spread into the render and child-as-a-function's main prop parameter.
  • All value getters located on the fieldApi are now static values eg. (getValue() is now value, setTouched() is now touched, and so on with getError, getSuccess and getWarning)!
  • NestedForm has been deprecated in favor of the NestedField component and field-level default values and validations.
  • The Form components' formDidUpdate prop has been deprecated in favor of the onChange prop.
  • Styled forms are no longer bundled with ReactForm. We will be developing a serrate npm module for this.
Changelog

Sourced from react-form's changelog.

4.0.1

  • Fix bug where bracket syntax could result in a bad field path

4.0.0

  • First stable release for v4!
Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Bumps [react-form](https://github.com/tannerlinsley/react-form) from 2.16.3 to 4.0.1.
- [Release notes](https://github.com/tannerlinsley/react-form/releases)
- [Changelog](https://github.com/tannerlinsley/react-form/blob/master/CHANGELOG.md)
- [Commits](TanStack/form@v2.16.3...v4.0.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants