Noteslify
Noteslify copied to clipboard
[Snyk] Upgrade @formspree/react from 2.5.0 to 2.5.4
Snyk has created this PR to upgrade @formspree/react from 2.5.0 to 2.5.4.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
-
The recommended version is 3 versions ahead of your current version.
-
The recommended version was released 24 days ago.
Release notes
Package name: @formspree/react
-
2.5.4 - 2025-02-28
Patch Changes
- ceaae3d: Bump (patch) @ formspree/core and @ formspree/react to verify that the release pipeline is fixed
- Updated dependencies [ceaae3d]
- @ formspree/[email protected]
- 2.5.3 - 2025-02-26
-
2.5.1 - 2023-08-23
Patch Changes
- 56a444b: remove unused package-specific yarn.lock
- Updated dependencies [56a444b]
- @ formspree/[email protected]
-
2.5.0 - 2023-08-03
Minor Changes
-
4c40e1b: # Fix types in @ formspree/core
@ formspree/core- fix
SubmissionDatahas a type ofanycausing everything after it to opt-out typechecking - remove a no-op
teardownmethod onClientandSession - remove
utils.nowand useDate.nowinstead - remove unused functions from
utilsmodule:append,toCamel,camelizeTopKeys - add tests for
utils.appendExtraDataand convert the test file to typescript - add tests for
session.data() - no longer export
Sessiontype
@ formspree/react- update types as a result of
SubmissionDatais no longerany - fix
createPaymentMethoddoes not properly map payload when the submission data is a type ofFormData - fix the
Clientis not updated when project changes
- fix
-
49730d9: ## Improve error handling
@ formspree/coresubmitFormfunction now will never rejects but always produces a type ofSubmissionResult, different types of the result can be refined/narrowed down using the fieldkind.- Provide
SubmissionErrorResultwhich can be used to get an array of form errors and/or field errors (by field name) Responseis no longer made available on the submission result- Update
@ formspree/reactfor the changes introduced to@ formspree/core
-
d025831:
@ formspree/core- rename client config
stripePromisetostripesince it expects the resolved Stripe client not a promise
@ formspree/react- add a new hook:
useSubmitwhich is suitable with code that uses other ways to manage submission state (e.g. with a library like react-hook-form) - update
useFormto useuseSubmitunder the hood - fix:
FormspreeContextupdates the client whenprops.projectchange
- rename client config
Patch Changes
- Updated dependencies [4c40e1b]
- Updated dependencies [49730d9]
- Updated dependencies [d025831]
- @ formspree/[email protected]
-
[!IMPORTANT]
- Check the changes in this PR to ensure they won't cause issues with your project.
- This PR was automatically created by Snyk using the credentials of a real user.
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: