Signalen / frontend

Frontend for Signalen, an application that helps cities manage and prioritize nuisance reports.
https://signalen.org
Mozilla Public License 2.0
10 stars 4 forks source link

Bump react-hook-form from 6.15.7 to 7.7.1 #151

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps react-hook-form from 6.15.7 to 7.7.1.

Release notes

Sourced from react-hook-form's releases.

Version 7.7.1

๐ŸŽ“ only register absent fields with shouldUnregister: false (#5418)

Version 7.7.0

๐ŸŒŸ feature: focus with trigger (#4960)

trigger('firstName', { shouldFocus: true})

๐Ÿงผ bubble up the error when thrown in submit handler (#5391)

Version 7.6.10

๐Ÿž close #5379 getFieldValueAs return undefined when supplied with undefined (#5381) ๐Ÿ› fix #5382 trigger() return incorrect valid state (#5383)

Version 7.6.9

๐Ÿ› fix #5366 inline defaultValue validation (#5376) โŒจ๏ธ improve controller defaultValue prop type (#5375) ๐Ÿ‹๐Ÿปโ€โ™€๏ธ reduce logic with value check (#5356)

Version 7.6.8

๐Ÿž fix #5361 remove check field logic for getFieldValues (#5363) ๐Ÿž fix #5277 Update value when switch to enabled from initial disabled state (#5350) ๐Ÿ“ฆ update typescript and remove object define in useController (#5353)

Version 7.6.7

๐Ÿž fix #5344 avoid re-register inputs (#5345) ๐Ÿ‘Œ close #5283 useFieldArray issue with restrict mode (#5331) ๐Ÿ‹๐Ÿปโ€โ™€๏ธ save esm bundle size (#5327) โŒจ๏ธ accept readonly field path arrays (#5317)

Version 7.6.6

๐Ÿ› fix #5300 issue with register absent deep nested object (#5302) ๐Ÿ•ต๏ธ close #5297 issue with get with empty path (#5298)

Version 7.6.5

๐Ÿž fix #5286 useWatch with fieldArray inconsistent behaviour (#5287)

Version 7.6.4

๐Ÿž fix #5276 setValue with null (#5278)

Version 7.6.3

๐Ÿž fix #5246 useFieldArray with nested arrays throws error (#5251) ๐Ÿž fix #5262 register checkbox issue with absent register (#5263)

Version 7.6.2

๐Ÿž fix #5234 should render error logic for valid state (#5235) โŒจ๏ธ fix missing-register-options-generic-type (#5238)

... (truncated)

Changelog

Sourced from react-hook-form's changelog.

[7.7.1] - 2021-05-30

Fxied

  • shouldUnregister: false should not shallow merge or register absent input fields from defaultValues

[7.7.0] - 2021-05-29

Added

  • trigger support focus with error input
trigger('inputName', { shouldFocus: true });

Changed

  • handleSubmit will throw error within the onSubmit callback

[7.6.0] - 2021-05-15

Changed

  • useForm will register missing inputs from defaultValues
const App = () => {
  const { register, handleSubmit } = useForm({
    defaultValues: {
      test: { firstName: 'bill', lastName: 'luo' },
    },
  });

const onSubmit = (data) => { // missing registered input will be included console.log(data); // { test: { firstName: 'bill', lastName: 'luo' } } };

return ( <form onSubmit={handleSubmit(onSubmit)}> <input {...register('test.firstName')} /> <button /> </form> ); };

[7.5.0] - 2021-05-09

... (truncated)

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[bot] commented 3 years ago

Superseded by #153.