Skip to content
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

Version Packages #46

Merged
merged 1 commit into from
Aug 3, 2023
Merged

Version Packages #46

merged 1 commit into from
Aug 3, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 6, 2023

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 of SubmissionResult, different types of the result can be refined/narrowed down using the field kind.
    • Provide 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
    • Update @formspree/react for the changes introduced to @formspree/core
  • d025831: @formspree/core

    • rename client config stripePromise to stripe since it expects the resolved Stripe client not a promise

    @formspree/react

    • add a new hook: useSubmit which is suitable with code that uses other ways to manage submission state (e.g. with a library like react-hook-form)
    • update useForm to use useSubmit under the hood
    • fix: FormspreeContext updates the client when props.project change

Minor Changes

  • 4c40e1b: # Fix types in @formspree/core

    @formspree/core

    • fix SubmissionData has a type of any causing everything after it to opt-out typechecking
    • remove a no-op teardown method on Client and Session
    • remove utils.now and use Date.now instead
    • remove unused functions from utils module: append, toCamel, camelizeTopKeys
    • add tests for utils.appendExtraData and convert the test file to typescript
    • add tests for session.data()
    • no longer export Session type

    @formspree/react

    • update types as a result of SubmissionData is no longer any
    • fix createPaymentMethod does not properly map payload when the submission data is a type of FormData
    • fix the Client is not updated when project changes

@formspree/react@2.5.0

Minor Changes

  • 4c40e1b: # Fix types in @formspree/core

    @formspree/core

    • fix SubmissionData has a type of any causing everything after it to opt-out typechecking
    • remove a no-op teardown method on Client and Session
    • remove utils.now and use Date.now instead
    • remove unused functions from utils module: append, toCamel, camelizeTopKeys
    • add tests for utils.appendExtraData and convert the test file to typescript
    • add tests for session.data()
    • no longer export Session type

    @formspree/react

    • update types as a result of SubmissionData is no longer any
    • fix createPaymentMethod does not properly map payload when the submission data is a type of FormData
    • fix the Client is not updated when project changes
  • 49730d9: ## Improve error handling

    • @formspree/core submitForm function now will never rejects but always produces a type of SubmissionResult, different types of the result can be refined/narrowed down using the field kind.
    • Provide 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
    • Update @formspree/react for the changes introduced to @formspree/core
  • d025831: @formspree/core

    • rename client config stripePromise to stripe since it expects the resolved Stripe client not a promise

    @formspree/react

    • add a new hook: useSubmit which is suitable with code that uses other ways to manage submission state (e.g. with a library like react-hook-form)
    • update useForm to use useSubmit under the hood
    • fix: FormspreeContext updates the client when props.project change

Patch Changes

  • Updated dependencies [4c40e1b]
  • Updated dependencies [49730d9]
  • Updated dependencies [d025831]
    • @formspree/core@3.0.0

@vercel
Copy link

vercel bot commented Jul 6, 2023

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

@bhongy bhongy merged commit 704d2ef into main Aug 3, 2023
@bhongy bhongy deleted the changeset-release/main branch August 3, 2023 01:15
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.

None yet

2 participants