Skip to content

Commit

Permalink
Version Packages (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 3, 2023
1 parent d025831 commit 704d2ef
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 50 deletions.
22 changes: 0 additions & 22 deletions .changeset/great-mayflies-shake.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/orange-otters-teach.md

This file was deleted.

14 changes: 0 additions & 14 deletions .changeset/thirty-ladybugs-bow.md

This file was deleted.

41 changes: 41 additions & 0 deletions packages/formspree-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,46 @@
# Changelog

## 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

## 2.8.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/formspree-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formspree/core",
"version": "2.8.3",
"version": "3.0.0",
"private": false,
"description": "The core library for Formspree",
"homepage": "https://formspree.io",
Expand Down
46 changes: 46 additions & 0 deletions packages/formspree-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,51 @@
# Changelog

## 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

## 2.4.4

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/formspree-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@formspree/react",
"version": "2.4.4",
"version": "2.5.0",
"private": false,
"description": "The React component library for Formspree",
"bugs": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@formspree/core": "^2.8.3",
"@formspree/core": "^3.0.0",
"@stripe/react-stripe-js": "^1.7.1",
"@stripe/stripe-js": "^1.35.0"
},
Expand Down

1 comment on commit 704d2ef

@vercel
Copy link

@vercel vercel bot commented on 704d2ef Aug 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.