Skip to content

Releases: formspree/formspree-js

@formspree/react@3.0.0

17 Mar 01:37
7c8334b
Compare
Choose a tag to compare

Major Changes

  • a00b642: Support React 19 and stripe-js 5

Patch Changes

  • Updated dependencies [a00b642]
    • @formspree/core@4.0.0

@formspree/core@4.0.0

17 Mar 01:37
7c8334b
Compare
Choose a tag to compare

Major Changes

  • a00b642: Support React 19 and stripe-js 5

@formspree/react@2.5.5

13 Mar 03:29
8f99ad5
Compare
Choose a tag to compare

Patch Changes

  • 6739c4c: Fix: Stripe not working on @formspree/react

@formspree/react@2.5.4

28 Feb 08:57
1d6b1e8
Compare
Choose a tag to compare

Patch Changes

  • ceaae3d: Bump (patch) @formspree/core and @formspree/react to verify that the release pipeline is fixed
  • Updated dependencies [ceaae3d]
    • @formspree/core@3.0.4

@formspree/core@3.0.4

28 Feb 08:56
1d6b1e8
Compare
Choose a tag to compare

Patch Changes

  • ceaae3d: Bump (patch) @formspree/core and @formspree/react to verify that the release pipeline is fixed

@formspree/react@2.5.1

23 Aug 23:12
31b971c
Compare
Choose a tag to compare

Patch Changes

  • 56a444b: remove unused package-specific yarn.lock
  • Updated dependencies [56a444b]
    • @formspree/core@3.0.1

@formspree/core@3.0.1

23 Aug 23:12
31b971c
Compare
Choose a tag to compare

Patch Changes

  • 56a444b: remove unused package-specific yarn.lock

@formspree/react@2.5.0

03 Aug 01:17
704d2ef
Compare
Choose a tag to compare

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

@formspree/core@3.0.0

03 Aug 01:17
704d2ef
Compare
Choose a tag to compare

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.4.4

28 Jun 01:33
c4e5938
Compare
Choose a tag to compare

Patch Changes

  • a359edd: Upgrade jest to v29 using centralized dependency, and run tests in CI
  • Updated dependencies [a359edd]
    • @formspree/core@2.8.3