Skip to content

fix(deps): update react-hook-form to v7.36.1 #102

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

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 12, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-hook-form (source) 7.22.5 -> 7.36.1 age adoption passing confidence

Release Notes

react-hook-form/react-hook-form

v7.36.1

Compare Source

🪲 fix #​9082 inconsistency between single/group of checkboxes disabled check state (#​9083)
🌡️ improve setFocus to prevent throw error (#​9081)

v7.36.0

Compare Source

🚂 feature: reset to support callback syntax (#​9051)

reset with partial form values will require invoking getValues at the same time, here is an improvement 👇

Convert your code from:

reset({
  ...getValues(),
  partialData: 'onlyChangeThis'
})

to:

reset((formValues) => {
  return {
    ...formValues,
    partialData: 'onlyChangeThis'
  }
})

v7.35.0

Compare Source

🎉 feature: new type FieldPathByValue field path by value generic implementation

function CustomFormComponent<
  TFieldValues extends FieldValues,
  Path extends FieldPathByValue<TFieldValues, Date>
>({ control, name }: { control: Control<FieldValues>; name: Path }) {
  const { field } = useController({
    control,
    name,
  });
}

function App() {
  const { control } = useForm<{
    foo: Date;
    baz: string;
  }>();

  return (
    <form>
      <CustomFormComponent control={control} name="foo" /> {/* no error */}
      <CustomFormComponent control={control} name="baz" /> {/*  throw an error since baz is string */}
    </form>
  );
}

🛵 close #​8969 improve type for useFieldArray rules validate prop #​8974

image

🛗 upgrade to TS 4.8.0 and Jest 29 #​8620
🐞 fix #​8970 register field array cause render issue #​8972
🐞 fix: typings for useWatch() with no arguments #​8923
🐞 fix #​8919 make useController fieldState properties enumerable

const { fieldState } = useController({ name: 'test' })
const copy = {...fieldState} 

👶🏻 close #​8909 form context children prop type (https://github.com/react-hook-form/react-hook-form/pull/8910)

<FormProvider {...methods}>
  <div /> // ✅
  <div /> // ✅
</FormProvider>

🐌 allow field errors to escape type check when provided with any type
🔐 github workflows security hardening #​8965
💚 ci: stop csb ci from publishing a comment on PR (https://github.com/react-hook-form/react-hook-form/pull/8977)

thanks to @​Moshyfawn, @​sashashura, @​carvalheiro, @​chetvishal and @​MicaelRodrigues

v7.34.2

Compare Source

Revert "🧳 let isSubmitting state update after valid form (https://github.com/react-hook-form/react-hook-form/pull/8829)"

v7.34.1

Compare Source

🐞 fix(path): keys of Date | FileList | File shouldn't be add to the PathImpl https://github.com/react-hook-form/react-hook-form/pull/8804
🐞 fix Date, FileList, File and Blob FieldErrors mapping #​8772
🚌 update isSubmitting state after valid form #​8829

function App() {
  const { formState: { isSubmitting }, register } = useForm()

  console.log(isSubmitting) // isSubmitting will remain false if form is invalid during submission

  return <form onSubmit={handleSubmit(async () => await sleep(1000))}>
    <input {...register('test', { required: true })} />
  </form>
}

🧃 upgrade to cypress 10 #​8769
📖 fix nested fields example #​8840
📖 add nested form example #​8703
📖 improve doc of single watch #​8773
📖 fixing typo (Contruído to Construído) on pt-BR translation #​8762

thanks to @​HarmonyEarth, @​yleflour, @​glekner, @​vemoo, @​ronny1020 and @​joaoeffting

v7.34.0

Compare Source

v7.33.1

Compare Source

🐏 fix https://github.com/react-hook-form/react-hook-form/issues/8584: field errors type with optional fields (https://github.com/react-hook-form/react-hook-form/pull/8591)
🧳 close https://github.com/react-hook-form/react-hook-form/issues/8600 update code example for NestedValue input
🖼 Integrate jest-preview into react-hook-form (https://github.com/react-hook-form/react-hook-form/pull/8577)
🤓 improve the readability of Merge type (https://github.com/react-hook-form/react-hook-form/pull/8570)
🚝 test: migration from ts-jest to @​swc/jest (https://github.com/react-hook-form/react-hook-form/pull/8572)
🏹 refactor: use const instead of props (https://github.com/react-hook-form/react-hook-form/pull/8571)
🔍 feat: Add ability to search test file on watch mode (https://github.com/react-hook-form/react-hook-form/pull/8573)
🧘🏻 ensure the field is focused when selected (https://github.com/react-hook-form/react-hook-form/pull/8566)

thanks to @​nvh95, @​elstgav and @​kotarella1110

v7.33.0

Compare Source

v7.32.2

Compare Source

🏋🏻 improve build dist package size (https://github.com/react-hook-form/react-hook-form/pull/8511)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/8506 delayError not overwrite existing function call (https://github.com/react-hook-form/react-hook-form/pull/8509)
📖 update the use of validadtionSchema in v7 examples (https://github.com/react-hook-form/react-hook-form/pull/8501)

thanks, @​bryantobing12

v7.32.1

Compare Source

🐞 fix https://github.com/react-hook-form/react-hook-form/issues/8493 error not trigger with delayError (https://github.com/react-hook-form/react-hook-form/pull/8494)
🔍 fix null or undefined cases caught by TS ^4.8 (https://github.com/react-hook-form/react-hook-form/pull/8487)
🥸 funnel along with appropriate constraints for (upcoming) TypeScript 4.8 (https://github.com/react-hook-form/react-hook-form/pull/8484)

thanks to @​DanielRosenwasser

v7.32.0

Compare Source

v7.31.3

Compare Source

🧑‍💻 Support TypeScript 4.7+ ESM (https://github.com/react-hook-form/react-hook-form/pull/8390)
🧾 Fix typo (https://github.com/react-hook-form/react-hook-form/pull/8389)
ℹ️ fix export types order
🪝 upgrade to TS 4.7 (https://github.com/react-hook-form/react-hook-form/pull/8402)
🕸 close https://github.com/react-hook-form/react-hook-form/issues/8404 use isWeb instead of globalThis (https://github.com/react-hook-form/react-hook-form/pull/8406)
🥬 save cloneObject bytes (https://github.com/react-hook-form/react-hook-form/pull/8407)

thanks to @​davbrito, @​rossng, @​hwanyoungChoi and @​Moshyfawn

v7.31.2

Compare Source

🐞 fix(reset): set isSubmitted to formState value if keepIsSubmitted is true (https://github.com/react-hook-form/react-hook-form/pull/8368)

thanks to @​blabute

v7.31.1

Compare Source

🎭 close #​7472 include a proxy check with field state to improve useController perf (#​8334)
🐞 fix #​8339 Revert "🗑 remove the reference for blob and file list (https://github.com/react-hook-form/react-hook-form/pull/8305)"
🚮 remove dead code (#​8337)

thanks to @​NMinhNguyen

v7.31.0

Compare Source

v7.30.0

Compare Source

v7.29.0

Compare Source

v7.28.1

Compare Source

🐞 fix https://github.com/react-hook-form/react-hook-form/issues/8050 disabled attribute ignored with register checkbox (https://github.com/react-hook-form/react-hook-form/pull/8053)
📦 update package.json to set sideEffect false (https://github.com/react-hook-form/react-hook-form/pull/8041)
🆙 TS 4.6.0 (https://github.com/react-hook-form/react-hook-form/pull/7623)
📖 fix replace API TSDoc for fieldArray

thanks to @​alexogar and @​Moshyfawn

v7.28.0

Compare Source

v7.27.1

Compare Source

🐛 fix https://github.com/react-hook-form/react-hook-form/issues/7853 (useFieldArray): pass context type down to Control (https://github.com/react-hook-form/react-hook-form/pull/7856)
🐞 fix https://github.com/react-hook-form/react-hook-form/issues/7849 issue with unset on multiple dimension array (https://github.com/react-hook-form/react-hook-form/pull/7859)

thanks to @​Moshyfawn

v7.27.0

Compare Source

v7.26.1

Compare Source

🐞 close https://github.com/react-hook-form/react-hook-form/issues/7758 useController should subscribe to exact field name (https://github.com/react-hook-form/react-hook-form/pull/7759)

thanks to @​Moshyfawn

v7.26.0

Compare Source

📚 TSDoc

My.Movie.2.mp4

🐞 fix https://github.com/react-hook-form/react-hook-form/issues/7741 is validating reset when async validations are still running (https://github.com/react-hook-form/react-hook-form/pull/7747)
⛑ close https://github.com/react-hook-form/react-hook-form/issues/7717 shallow clone errors object in handleSubmit (https://github.com/react-hook-form/react-hook-form/pull/7718)
🍦 close https://github.com/react-hook-form/react-hook-form/issues/7703 don't expose internal state in handleSubmit (https://github.com/react-hook-form/react-hook-form/pull/7704)
🏋️ save bytes on parseFloat (https://github.com/react-hook-form/react-hook-form/pull/7697)

thanks to @​Moshyfawn and @​tiii

v7.25.3

Compare Source

😭 close #​7686 regression on replace API and cloneObject on payload (#​7687)

v7.25.2

Compare Source

v7.25.1

Compare Source

🐞 fix #​7662 issue with reset file input (#​7656)
🚗 improve perf with get proxy formState (#​7655)
🏋️ remove redundant check (#​7651)
🐞 fix #​7648 Unable to setFocus to Controller after reset (#​7649)
🐞 fix: getFieldState - error might be undefined (#​7636)
⛑ improve useFieldArray code consistency (#​7628)

thanks to @​Moshyfawn and @​michalbundyra

v7.25.0

Compare Source

v7.24.2

Compare Source

😰 close #​7593 regression on fieldarray controller/useController unmount with unregister (#​7596)
🥸 fix type issue with getFieldState and useController (#​7574)

v7.24.1

Compare Source

🖨 fix #​7571 cloneObject with setValue passed argument (#​7572)
🦺 unstable _getFieldState API for retrieve field level state (#​7475)
💻 fix build on Windows (#​7532)

thanks to @​felixschorer

v7.24.0

Compare Source

v7.23.0

Compare Source


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate
Copy link
Author

renovate bot commented Jan 12, 2022

Branch automerge failure

This PR was configured for branch automerge, however this is not possible so it has been raised as a PR instead.


  • Branch has one or more failed status checks

@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 8532ff4 to ec66448 Compare January 14, 2022 08:14
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.23.0 fix(deps): update react-hook-form to v7.24.0 Jan 14, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from ec66448 to 3362450 Compare January 18, 2022 12:22
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.24.0 fix(deps): update react-hook-form to v7.24.1 Jan 18, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 3362450 to 82b1699 Compare January 20, 2022 10:45
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.24.1 fix(deps): update react-hook-form to v7.24.2 Jan 20, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 82b1699 to 01938c4 Compare January 22, 2022 02:17
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.24.2 fix(deps): update react-hook-form to v7.25.0 Jan 22, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 01938c4 to ab7676b Compare January 25, 2022 23:49
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.25.0 fix(deps): update react-hook-form to v7.25.1 Jan 25, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from ab7676b to b969706 Compare January 29, 2022 00:26
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.25.1 fix(deps): update react-hook-form to v7.25.2 Jan 29, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from b969706 to 15aeec2 Compare January 29, 2022 02:38
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.25.2 fix(deps): update react-hook-form to v7.25.3 Jan 29, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 15aeec2 to bb6ee65 Compare February 4, 2022 09:15
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.25.3 fix(deps): update react-hook-form to v7.26.0 Feb 4, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from bb6ee65 to fc8368c Compare February 7, 2022 13:08
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.26.0 fix(deps): update react-hook-form to v7.26.1 Feb 7, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from fc8368c to d7548c5 Compare February 11, 2022 11:45
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.26.1 fix(deps): update react-hook-form to v7.27.0 Feb 11, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from d7548c5 to e3ce2ef Compare February 19, 2022 11:01
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.27.0 fix(deps): update react-hook-form to v7.27.1 Feb 19, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from e3ce2ef to 36b059a Compare March 26, 2022 13:40
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.27.1 fix(deps): update react-hook-form to v7.28.1 Mar 26, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 36b059a to d35f3df Compare April 24, 2022 19:22
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.28.1 fix(deps): update react-hook-form to v7.30.0 Apr 24, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from d35f3df to 55cd7c2 Compare May 15, 2022 23:07
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.30.0 fix(deps): update react-hook-form to v7.31.1 May 15, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from 55cd7c2 to f8e106e Compare June 18, 2022 16:20
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.31.1 fix(deps): update react-hook-form to v7.32.2 Jun 18, 2022
@renovate renovate bot force-pushed the renovate/react-hook-form-7.x branch from f8e106e to 3d08a6d Compare September 25, 2022 21:22
@renovate renovate bot changed the title fix(deps): update react-hook-form to v7.32.2 fix(deps): update react-hook-form to v7.36.1 Sep 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants