Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Restrict Form.encType #37

Merged
merged 4 commits into from
Nov 15, 2022
Merged

Restrict Form.encType #37

merged 4 commits into from
Nov 15, 2022

Conversation

HaNdTriX
Copy link
Contributor

@HaNdTriX HaNdTriX commented Oct 2, 2022

This PR prevents users from adding another Form.encType like application/x-www-form-urlencoded. This prevents breaking changes in the future.

Related: #36

This PR prevents users from adding another encType like `application/x-www-form-urlencoded`. This makes prevents breaking changes in the future.
@changeset-bot
Copy link

changeset-bot bot commented Oct 2, 2022

🦋 Changeset detected

Latest commit: 68e6106

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@next-fetch/core-plugin Patch
@next-fetch/react-query Patch
@next-fetch/swr Patch
example-app Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Oct 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
next-fetch ✅ Ready (Inspect) Visit Preview Nov 15, 2022 at 8:14AM (UTC)
next-swr-endpoints-example-app ✅ Ready (Inspect) Visit Preview Nov 15, 2022 at 8:14AM (UTC)

"@next-fetch/swr": patch
---

Restrict FormProps to explicitly prevent users from using unsupported encTypes.
Copy link
Collaborator

Choose a reason for hiding this comment

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

:smart:

we can support multipart once we have a good api for that :just-right:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants