Closed github-actions[bot] closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
formspree-react-demo | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 1, 2023 4:04am |
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@formspree/core@3.0.0
Major Changes
49730d9: ## Improve error handling
@formspree/core
submitForm
function now will never rejects but always produces a type ofSubmissionResult
, different types of the result can be refined/narrowed down using the fieldkind
.SubmissionErrorResult
which can be used to get an array of form errors and/or field errors (by field name)Response
is no longer made available on the submission result@formspree/react
for the changes introduced to@formspree/core
d025831:
@formspree/core
stripePromise
tostripe
since it expects the resolved Stripe client not a promise@formspree/react
useSubmit
which is suitable with code that uses other ways to manage submission state (e.g. with a library like react-hook-form)useForm
to useuseSubmit
under the hoodFormspreeContext
updates the client whenprops.project
changeMinor Changes
4c40e1b: # Fix types in @formspree/core
@formspree/core
SubmissionData
has a type ofany
causing everything after it to opt-out typecheckingteardown
method onClient
andSession
utils.now
and useDate.now
insteadutils
module:append
,toCamel
,camelizeTopKeys
utils.appendExtraData
and convert the test file to typescriptsession.data()
Session
type@formspree/react
SubmissionData
is no longerany
createPaymentMethod
does not properly map payload when the submission data is a type ofFormData
Client
is not updated when project changes@formspree/react@2.5.0
Minor Changes
4c40e1b: # Fix types in @formspree/core
@formspree/core
SubmissionData
has a type ofany
causing everything after it to opt-out typecheckingteardown
method onClient
andSession
utils.now
and useDate.now
insteadutils
module:append
,toCamel
,camelizeTopKeys
utils.appendExtraData
and convert the test file to typescriptsession.data()
Session
type@formspree/react
SubmissionData
is no longerany
createPaymentMethod
does not properly map payload when the submission data is a type ofFormData
Client
is not updated when project changes49730d9: ## Improve error handling
@formspree/core
submitForm
function now will never rejects but always produces a type ofSubmissionResult
, different types of the result can be refined/narrowed down using the fieldkind
.SubmissionErrorResult
which can be used to get an array of form errors and/or field errors (by field name)Response
is no longer made available on the submission result@formspree/react
for the changes introduced to@formspree/core
d025831:
@formspree/core
stripePromise
tostripe
since it expects the resolved Stripe client not a promise@formspree/react
useSubmit
which is suitable with code that uses other ways to manage submission state (e.g. with a library like react-hook-form)useForm
to useuseSubmit
under the hoodFormspreeContext
updates the client whenprops.project
changePatch Changes