Skip to content

Releases: formspree/formspree-js

@formspree/[email protected]

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

Patch Changes

@formspree/[email protected]

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

Patch Changes

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

@formspree/[email protected]

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

@formspree/[email protected]

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/[email protected]

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

Patch Changes

@formspree/[email protected]

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

@formspree/[email protected]

23 Jun 05:05
Compare
Choose a tag to compare

Patch Changes

  • Unify typescript version and enforce typechecking

    • Centralize typescript and its related devDependencies to project root for version consistency
    • Centralize tsconfig to root and have package-specific tsconfig extends it for consistency
    • Make typescript config more strict especially around detecting null and undefined
    • Run typecheck on test folders
    • Fix type errors
    • Add Turbo typecheck task which runs tsc in typechecking mode
    • Set up Github Action to run typecheck task
  • Updated dependencies [07c30c5]

@formspree/[email protected]

23 Jun 05:05
Compare
Choose a tag to compare

Patch Changes

  • Unify typescript version and enforce typechecking

    • Centralize typescript and its related devDependencies to project root for version consistency
    • Centralize tsconfig to root and have package-specific tsconfig extends it for consistency
    • Make typescript config more strict especially around detecting null and undefined
    • Run typecheck on test folders
    • Fix type errors
    • Add Turbo typecheck task which runs tsc in typechecking mode
    • Set up Github Action to run typecheck task

v2.3.3

25 Aug 06:12
Compare
Choose a tag to compare
  • adding @babel/runtime dependency f23e0f4

v2.3.2...v2.3.3

v2.3.2

25 Aug 05:45
Compare
Choose a tag to compare
  • update yarn.lock 65ddeb4
  • fix broken dependencies in 2.3.1

v2.3.0...v2.3.2