Skip to content

fix(deps): update dependency react-hook-form to v7.48.2#12

Open
danielhammerl wants to merge 1 commit into
masterfrom
renovate/react-hook-form-7.x-lockfile
Open

fix(deps): update dependency react-hook-form to v7.48.2#12
danielhammerl wants to merge 1 commit into
masterfrom
renovate/react-hook-form-7.x-lockfile

Conversation

@danielhammerl

@danielhammerl danielhammerl commented Aug 11, 2023

Copy link
Copy Markdown
Member

This PR contains the following updates:

Package Type Update Change
react-hook-form (source) dependencies minor 7.43.9 -> 7.48.2

Release Notes

react-hook-form/react-hook-form (react-hook-form)

v7.48.2: Version 7.48.2

Compare Source

🐞 #​11106 fix disabled prop not update dirty formState (#​11143)
🐞 fix controller update with disabled prop from useForm (#​11142)

v7.48.1: Version 7.48.1

Compare Source

🐞 fix controller update with disabled prop from useForm

v7.48.0

Compare Source

Added
  • added new disabled prop for useForm to disable the entire form
const App = () => {
  const [disabled, setDisabled] = useState(false);
  const { handleSubmit } = useForm({ disabled });

  return (
    <form
      onSubmit={handleSubmit(async () => {
        setDisabled(true);
        await sleep(100);
        setDisabled(false);
      })}
    / >
  );
}

v7.47.0

Compare Source

Added
  • reset api with keepIsSubmitSuccessful option, keep successfully submitted form state.
<Form
  onSubmit={() => {
    reset(formValues, {
      keepIsSubmitSuccessful: true,
    });
  }}
/>

v7.46.2: Version 7.46.2

Compare Source

🐞 fix implicit type coercion (#​10949)
🙄 close #​10932 omit disabled prop when not defined (#​10937)
🔧 fix controller test is dirty (#​10899)

thanks to @​samimakicc & @​pierluigigiancola

v7.46.1: Version 7.46.1

Compare Source

🐞 fix #​10878 return disabled field state (#​10879)

thanks to @​Moshyfawn

v7.46.0

Compare Source

Added
  • Controller disabled prop
const [disabled, setDisabled] = useState(false);
useController({
  disabled,
});
  • Trigger passed names to construct resolver options
  • Add exact option for array name in useWatch
Changed
  • Update isDirty when setting disabled in register

v7.45.4: Version 7.45.4

Compare Source

🐞 fix #​10767 dep issue with replayio (#​10768)
🐞 fix #​10762 async submit with Form component (#​10766)
🫖 add test case for issue #​10744 to avoid future regressions (#​10759)

thanks to @​eg-bernardo

v7.45.3: Version 7.45.3

Compare Source

📼 add Replay Test Suites (#​10681)
Revert "🧑‍🎓 close #​10585 update controller value on each render (#​10586)"
🐞 close #​10682 make sure action flag gets reset after useEffect (#​10732)

thanks to @​jasonLaster

v7.45.2: Version 7.45.2

Compare Source

🧾 fix(types): async defaultValues await promise value (#​10637)
🥲 revert strict type check on Controller onChange (#​10609)
📖 docs(changelog 7.45.0): typo and format (#​10624)
📖 fix:test-spelling-error (#​10629)

thanks to @​anton-g, @​milhamm, @​moshfeu & @​OlliePrentice

v7.45.1: Version 7.45.1

Compare Source

🐞 fix #​10602 issue with reactive values props update (#​10606)
🧑‍🎓 close #​10585 update controller value on each render (#​10586)
🧪 test(generated-id): setting window performance undefined without ts-ignore (#​10584)

thanks to @​mateoguzmana

v7.45.0

Compare Source

Changed
  • Controller with type check on onChange
- onChange: (...event: any[]) => void;
+ onChange: (event: ChangeEvent | FieldPathValue<TFieldValues, TName>) => void;
  • Include missing generic for useFormContext
- export const useFormContext: <TFieldValues extends FieldValues, TransformedValues extends FieldValues | undefined = undefined>() => UseFormReturn<TFieldValues>;
+ export const useFormContext: <TFieldValues extends FieldValues, TContext = any, TransformedValues extends FieldValues | undefined = undefined>() => UseFormReturn<TFieldValues, TContext, TransformedValues>;

v7.44.3: Version 7.44.3

Compare Source

🦉 fix: add named component export (#​10486)
💭 fix React import inconsistency (#​10479)
🏙️ fix: removed code from the README updater which was trying to read a non-existent docs/Helpers.yaml
📝 fix doc: update urls from /api to /docs (#​10468)

thanks to @​Moshyfawn @​@​protofarer @​farfromrest

v7.44.2: Version 7.44.2

Compare Source

🪟 fix #​10456 object.hasown replaced with hasOwnProperty (#​10458)

v7.44.1: Version 7.44.1

Compare Source

🐞 fix <Form /> component content-type json type missing (#​10454)

v7.44.0

Compare Source

Added
  • New <Form /> component
// Send post request with formData
<Form
  action="/api"
  control={control}
  onSuccess={() => {
    alert("Great");
  }}
/>

// Send post request with json form data
<Form action="/api" encType="application/json" headers={{ accessToken: 'test' }}>
  {errors.root?.server.type === 500 && 'Error message'}
  {errors.root?.server.type === 400 && 'Error message'}
</Form>

// Send post request with formData with fetch
<Form
  onSubmit={async ({ formData, data, formDataJson, event }) => {
    await fetch("api", {
      method: "post",
      body: formData,
    });
  }}
/>
  • support TransformedValues with useFormContext

useFormContext<FormValue, TransformedValues>()

  • added TTransformedValues to FormProvider

FormProviderProps<TFieldValues, TContext, TTransformedValues>


Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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, check this box

This PR has been generated by Renovate Bot.

@danielhammerl danielhammerl changed the title Update dependency react-hook-form to v7.45.4 Update dependency react-hook-form to v7.46.2 Sep 21, 2023
@danielhammerl danielhammerl force-pushed the renovate/react-hook-form-7.x-lockfile branch from 1e026e2 to 48bf395 Compare September 21, 2023 23:37
@danielhammerl danielhammerl changed the title Update dependency react-hook-form to v7.46.2 Update dependency react-hook-form to v7.47.0 Oct 2, 2023
@danielhammerl danielhammerl force-pushed the renovate/react-hook-form-7.x-lockfile branch from 48bf395 to b33eca2 Compare October 2, 2023 23:49
@danielhammerl danielhammerl force-pushed the renovate/react-hook-form-7.x-lockfile branch from b33eca2 to 11513f4 Compare November 5, 2023 11:46
@danielhammerl danielhammerl changed the title Update dependency react-hook-form to v7.47.0 Update dependency react-hook-form to v7.48.2 Nov 5, 2023
@danielhammerl danielhammerl force-pushed the renovate/react-hook-form-7.x-lockfile branch from 11513f4 to 15384c4 Compare November 12, 2023 10:10
@danielhammerl danielhammerl changed the title Update dependency react-hook-form to v7.48.2 fix(deps): update dependency react-hook-form to v7.48.2 Nov 12, 2023
@danielhammerl danielhammerl force-pushed the renovate/react-hook-form-7.x-lockfile branch from 15384c4 to 08ab685 Compare November 12, 2023 12:18
@danielhammerl

danielhammerl commented Nov 13, 2023

Copy link
Copy Markdown
Member Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

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.

1 participant