Formik Versions Save

Build forms in React, without the tears 😭

v2.1.2

1 year ago

Patches

  • Fix broken formatting on useField docs: 587c5eea593068522e34c1afe939989621fac8a3
  • Merge pull request #2175 from zingerj/patch-1: 7173d748b41fde7fe542bb1276ae34692a7eaa60
  • Fix hasOwnProperty: #2178
  • Fix for Object-like data without hasOwnProperty: #2177
  • Fix now.sh upstream: 4b23009f5ae211d9674f10cacffd14d15b0f5678
  • Fix now docs deploys by specifying node engine: 7f00fd6ef130dba331215fc51f81e7fd8db949bf
  • Add generic to FieldHelperProps typings: #2179
  • Run tests on node 12: 9c1b0d0f792514370e4542c833217fe1698acb66
  • Fix typo in Field documentation: #2183
  • Patch to getValueForCheckbox to resolve issues with undefined values: #2188
  • Fix use event callback in handlers: #2187
  • Update type of as and component props in FieldConfig to enable using forwardRef wrapped components with Field and FastField (#2193): #2182
  • Trigger onReset when resetForm is called, not just handleReset: #2201
  • Upgrade deps: #2203
  • Document the v2 breaking change of validate: #2195
  • Add submitForm to FormikHelpers to allow form re-submit: #2185
  • Run validationSchema for validateField calls: #1784
  • Expose formikbag as imperative methods: #1972

Credits

Huge thanks to @BjoernRave, @emrosenf, @kristenmills, @dremex, @zachintosh, @deini, @brunohkbx, @Menardi, @gwn, @fabb, and @jamesmosier for helping!

https://github.com/jaredpalmer/formik/compare/v2.1.1...v2.1.2

v2.1.3

1 year ago

Patches

  • Start examples page: 8f998ae09b9737f60456767673a737ad39de6693
  • Be nicer around unspecified checkboxes: #2198. Previously, Formik would throw if a checkbox's key wasn't specified in initialValues and a value wasn't specified at /<Field>. Now we are nicer about it, and set the next value to true instead of throwing.
  • Fix compat with latest @types/react: #2214
  • Attempt to fix codesandbox: #2218
  • Try using forwardRef (bypassed commit hooks, sorry!): 67ff97087f714f4d97d04b1897686e3b1766f083
  • Revert "Try using forwardRef (bypassed commit hooks, sorry!)": 4ff1c5cf52291848ed5158fb2bdb74e946d27866
  • Update useField docs: #2233
  • Update field.md: #2228
  • Update SECURITY.md to conform to semver: #2227
  • Make num of rows in example equal: #2226
  • Fix grammar and typos: #2225
  • Load Snack code from external source so it stays up to date: #2242

Credits

Huge thanks to @mackness, @JanCizmar, @is2ei, @leonvisscher, @stephan281094, and @brentvatne for helping!

https://github.com/jaredpalmer/formik/compare/v2.1.2...v2.1.3

v2.1.4

1 year ago

v2.1.5

1 year ago

Bugfixes

  • Properly handle nested array data in prepareDataForValidation. (#2265)
  • Fix 2.1.4 regression with initialValues updating (#2318)
  • Correct import of LowPriority from scheduler
  • Updated innerRef type signature (#2325)
  • Fix handleChange / handleBlur typings (#2472)
  • Fix peer dependency version (#2451)
  • Fixed @typescript-eslint/unbound-method warning.

Internal

  • License changed from MIT to Apache 2.0. Formik is 100% still open source. We don't want people using the logo/trademark commercially without our permission.
  • Intellectual Property and Copyright transferred from Jared Palmer to Formik Inc. Happy to answer questions via DM at [email protected]

Commits

  • Properly handle nested array data in prepareDataForValidation. (#2265)
  • Fix 2.1.4 regression with initialValues updating (#2318)
  • Added "shouldValidate" to "setValue" and "setTouched" field hel… (#2371)
  • Add FieldProps change to v2 migration guide (#2356)
  • Correct import of LowPriority from scheduler
  • Fix: return onSubmit promise result in submission (#2420)
  • fix: Update innerRef type signature (#2325)
  • Fix handleChange / handleBlur typings (#2472)
  • Fix peer dependency version (#2451)
  • Make validateOnMount rerun validations when initialValues have changed
  • Update LICENSE
  • Merge pull request #2507 from stefanoverna/fix-validateonmount
  • Merge pull request #2438 from helious/master
  • Fixes @typescript-eslint/unbound-method.

https://github.com/formik/formik/compare/v2.1.4...v2.1.5

[email protected]

1 year ago

Patch Changes

  • 22e236e #3784 Thanks @probablyup! - Improve performance of the FieldArray component by adding a shouldComponentUpdate check; this should help avoid unnecessary re-renders which may affect the performance of a form.

  • bc9cb28 #3785 Thanks @probablyup! - Fixed field error state for array fields that have an error and become empty through an API like arrayHelpers.remove.

    The prior behavior resolved the field error to [undefined], now it is simply undefined.

  • 9cbf150 #3787 Thanks @probablyup! - Fix infinite loop issue in Field when field helpers (setTouched, etc) are used as an argument in React.useEffect.

  • 9c75a9f #3780 Thanks @probablyup! - Fixed an issue with array field errors being incorrectly split into an array of individual characters instead of an array of error strings.

  • 35fa4cc #3783 Thanks @probablyup! - Fix validation of deep.dot.path field references when using the validateField API.

[email protected]

1 year ago

Patch Changes

[email protected]

2 years ago

Patch Changes

[email protected]

2 years ago

Patch Changes

[email protected]

3 years ago

Patch Changes

  • 3a9c707 #3203 Thanks @hixus! - Fixes type of setError value as it is same as setFieldError message

[email protected]

3 years ago

Patch Changes