Releases: formspree/formspree-js
Releases · formspree/formspree-js
@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
SubmissionData
has a type ofany
causing everything after it to opt-out typechecking - remove a no-op
teardown
method onClient
andSession
- remove
utils.now
and useDate.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 longerany
- fix
createPaymentMethod
does not properly map payload when the submission data is a type ofFormData
- fix the
Client
is not updated when project changes
- fix
-
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
.- 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
tostripe
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 useuseSubmit
under the hood - fix:
FormspreeContext
updates the client whenprops.project
change
- rename client config
Patch Changes
@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
.- 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
tostripe
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 useuseSubmit
under the hood - fix:
FormspreeContext
updates the client whenprops.project
change
- rename client config
Minor Changes
-
4c40e1b: # Fix types in @formspree/core
@formspree/core
- fix
SubmissionData
has a type ofany
causing everything after it to opt-out typechecking - remove a no-op
teardown
method onClient
andSession
- remove
utils.now
and useDate.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 longerany
- fix
createPaymentMethod
does not properly map payload when the submission data is a type ofFormData
- fix the
Client
is not updated when project changes
- fix
@formspree/react@2.4.4
@formspree/core@2.8.3
Patch Changes
- a359edd: Upgrade jest to v29 using centralized dependency, and run tests in CI
@formspree/react@2.4.3
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-specifictsconfig
extends it for consistency - Make typescript config more strict especially around detecting
null
andundefined
- Run typecheck on test folders
- Fix type errors
- Add Turbo
typecheck
task which runstsc
in typechecking mode - Set up Github Action to run
typecheck
task
- Centralize typescript and its related
-
Updated dependencies [07c30c5]
- @formspree/core@2.8.2
@formspree/core@2.8.2
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-specifictsconfig
extends it for consistency - Make typescript config more strict especially around detecting
null
andundefined
- Run typecheck on test folders
- Fix type errors
- Add Turbo
typecheck
task which runstsc
in typechecking mode - Set up Github Action to run
typecheck
task
- Centralize typescript and its related
v2.3.3
- adding @babel/runtime dependency f23e0f4
v2.3.2
- update yarn.lock 65ddeb4
- fix broken dependencies in 2.3.1