Releases: formspree/formspree-js
Releases · formspree/formspree-js
@formspree/ajax@1.1.5
Patch Changes
- 2e1d1fa: Fix npm publishing by upgrading to Node 22 for OIDC trusted publishing support
@formspree/react@3.0.0
@formspree/core@4.0.0
Major Changes
- a00b642: Support React 19 and stripe-js 5
@formspree/react@2.5.5
Patch Changes
- 6739c4c: Fix: Stripe not working on @formspree/react
@formspree/react@2.5.4
@formspree/core@3.0.4
Patch Changes
- ceaae3d: Bump (patch) @formspree/core and @formspree/react to verify that the release pipeline is fixed
@formspree/react@2.5.1
@formspree/core@3.0.1
Patch Changes
- 56a444b: remove unused package-specific yarn.lock
@formspree/react@2.5.0
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
@formspree/core@3.0.0
Major Changes
-
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
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