formik

Build forms in React, without the tears 😭

APACHE-2.0 License

Downloads
11.2M
Stars
33.5K
Committers
456

Bot releases are hidden (Show)

formik -

Published by jaredpalmer over 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

formik -

Published by jaredpalmer over 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 /. 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

formik -

Published by jaredpalmer over 1 year ago

formik -

Published by jaredpalmer over 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

Legal

  • 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

formik -

Published by jaredpalmer about 4 years ago

Patches

  • Add props.validateOnChange check to cDU #2148
  • Fix validateOnMount to validate even when initialValues is unchanged #2625
  • Extract validateOnMount into its own hook
formik -

Published by jaredpalmer over 4 years ago

formik -

Published by jaredpalmer over 4 years ago

Patches

  • Docs: mention that ref prop currently doesn't work: #2235
  • Fix typo in 'Field' docs: #2236
  • Fix typo in api docs: #2232
  • Adds the same behavior in the resetForm as a formik v1.: #2205
  • Add Gremlin to users: #2216
  • Fix validateOnMount useEffect issue: #2243
  • [ImgBot] Optimize images: #2252
  • Add basic-typescript codesandbox example folder: 8bd2b5482d2de0d9867bcfd555a7f60b1502a824
  • Add array example: 21ca9a6b63f6104dee022bed6f45cd5d8c9421f6
  • Add checkbox example: 0c803ba8dc5d304e140ce46feb06a6df71a79685
  • Add Radio Group example: f67e217ea6575f85d86f72701d7841317136a905
  • Add async submission example: ce124180e1d8d26412650cb024a43447cde86a88
  • Add one-liner readme's to examples: a5210f0e539e2bfd6d2bd7ee677e8b0f1c5aa5a7
  • Fix combined validations example: fd35d5a3998139d705261720732d39c1b1a9d8e8
  • Add instant feedback example: 6e963caf90ad9a4902d1003210723d2ee54ae4f8
  • Created new page with links to wrapper libs: #2269
  • Updated docusaurus to v1.14.4: #2264
  • Update JS-doc for mapPropsToErrors to reference errors state: #2258
  • Add setError to v2 breaking changes doc: #2272
  • Upgrade to tsdx 12: #2275

Credits

Huge thanks to @brunohkbx, @aloeugene, @mstanielewicz, @krailler, @zslabs, @whazap, @jcolbyfisher, @jkimbo, and @lukebrobbs for helping!

formik -

Published by jaredpalmer over 4 years ago

Patches

  • 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!

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Start examples page: 8f998ae09b9737f60456767673a737ad39de6693
  • Be nicer around unspecified checkboxes: #2198
  • Fix compat with latest @types/react: #2214
formik -

Published by jaredpalmer almost 5 years ago

Patches

  • 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 @brunohkbx, @Menardi, @gwn, @fabb, and @jamesmosier for helping!

formik -

Published by jaredpalmer almost 5 years 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

Credits

Huge thanks to @BjoernRave, @emrosenf, @kristenmills, @dremex, @zachintosh, and @deini for helping!

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Update website: d1059c82c9cc2a1da59863027b6dc583fcef4a7c
  • Small spelling error: #2161
  • Correctly handle single checkboxes and grouped ones values: #2159. Fixed a bug when value was not specified on a checkbox as well as when there is just one checkbox.
  • Adds a community article: #2157
  • Update contributing guidelines start step: #2158
  • Force FieldArray to use latest values for validation: #2166

Credits

Huge thanks to @wallymathieu, @eliamaino-fp, and @mrmuhammadali for helping!

https://github.com/jaredpalmer/formik/compare/v2.1.1-canary.0...v2.1.1-canary.1

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Force FieldArray to use latest values for validation: #2166
formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Update website: d1059c82c9cc2a1da59863027b6dc583fcef4a7c
  • Small spelling error: #2161
  • Correctly handle single checkboxes and grouped ones values: #2159
  • Adds a community article: #2157
  • Update contributing guidelines start step: #2158

Credits

Huge thanks to @wallymathieu, @eliamaino-fp, and @mrmuhammadali for helping!

formik -

Published by jaredpalmer almost 5 years ago

Minor Changes

  • Add FieldHelpers object to the array returned by useField: #2124. This
    exposes three helper functions to allow you to imperatively change the
    field in question:

    1. setValue(value: any)
    2. setTouched(value: boolean)
    3. setError(value: string)

    Before

    const MyInput = (props) => {
     const formik = useFormikContext() 
     const [field, meta] = useField(props)
     const handleThing = () => {
        formik.setFieldValue(props.name, 'boop') 
     }
     // ...
    }
    
    

    After

    const MyInput = (props) => {
     const [field, meta, helpers] = useField(props)
     const handleThing = () => {
        helpers.setValue('boop') 
     }
     // ...
    }
    
    

Credits

Huge thanks to @drivasperez for helping!

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Keep empty array values on FieldArray: #2144

Credits

Huge thanks to @viniciusdacal for helping!

https://github.com/jaredpalmer/formik/compare/v2.0.10...v2.0.11

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Keep empty array values on FieldArray: #2144

Credits

Huge thanks to @viniciusdacal for helping!

formik -

Published by jaredpalmer almost 5 years ago

TS Patch

  • Fix useField<T> generic.
formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Hotfix: Revert throwing combined errors: #2103
  • Abort submit if instance of real Error: #2104
  • Remove inline cDU usage in FieldArray: #2114
  • Remodel FieldArray validation side effect to cDU: #2115
  • Allow forced validation to run anywhere #2116
  • Handle promise rejection in handleSubmit #2136
  • Fix unhandled promise exception in low priority validation #2119

https://github.com/jaredpalmer/formik/compare/v2.0.8...v2.0.9

formik -

Published by jaredpalmer almost 5 years ago

Patches

  • Hotfix: Revert throwing combined errors: #2103
  • Abort submit if instance of real Error: #2104
  • Remove inline cDU usage in FieldArray: #2114
  • Remodel FieldArray validation side effect to cDU: #2115

https://github.com/jaredpalmer/formik/compare/v2.0.7...v2.0.8

Package Rankings
Top 0.27% on Npmjs.org
Top 3.35% on Proxy.golang.org
Badges
Extracted from project README
Stable Release Blazing Fast gzip size license Discord