-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Validated forms #14383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Validated forms #14383
Changes from 50 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
85d627d
add convert_formdata function
Rich-Harris 8d99533
WIP
Rich-Harris 669152a
fix some types
Rich-Harris 36be93b
fix test
Rich-Harris c025964
fix
Rich-Harris c1b30ba
fix test
Rich-Harris 4dc8f6a
missed a spot
Rich-Harris 93c9a92
simplify a bit
Rich-Harris 8da4937
add validation
Rich-Harris 079bdaa
maybe this? the type stuff is too complicated for me
Rich-Harris 5cf7c0a
get rid of dot/array notation, it adds too much complexity
Rich-Harris d20a080
tighten up
Rich-Harris 33ccf28
fix
Rich-Harris e46ce1c
fix
Rich-Harris ddf3ca2
oops
Rich-Harris 558d04e
revert
Rich-Harris 0a972cd
sort of working
Rich-Harris 86380a5
implement input/issues
Rich-Harris 65f9d31
make input reactive
Rich-Harris efe1aa0
enforce 1:1 relationship
Rich-Harris 0d206ee
fix
Rich-Harris 49ceb3d
lint
Rich-Harris 0abbd51
WIP
Rich-Harris d5901cc
WIP
Rich-Harris 74d1909
tidy up
Rich-Harris eec4249
lint
Rich-Harris 1c820a7
lint
Rich-Harris c4ba793
merge main
Rich-Harris 037251c
fix
Rich-Harris cc5fdb7
only enforce input parity
Rich-Harris 6119e20
use validation output, not input
Rich-Harris 249dec1
preflight should return instance
Rich-Harris 3578408
DRY out
Rich-Harris 48700d6
implement preflight
Rich-Harris 5d3bed1
WIP validate method
Rich-Harris 07ae015
programmatic validation
Rich-Harris 24c099b
fix/tidy
Rich-Harris aa6b952
generate types
benmccann 4242c1d
docs
Rich-Harris 3a6bf63
add field(...) method
Rich-Harris 9941753
more docs
Rich-Harris 43388f5
oops
Rich-Harris 4c43ad6
fix test
Rich-Harris c095b55
fix docs
Rich-Harris a0426fd
Apply suggestions from code review
Rich-Harris ae9d35d
guard against prototype pollution
Rich-Harris 63b21ba
doc tweaks, fixes
dummdidumm 417731f
add valibot to playground
dummdidumm 1e846d0
changesets
dummdidumm 24174b6
tell people about the breaking change
dummdidumm ba023cd
remind ourselves to remove the warning
Rich-Harris 278893f
fix changeset
Rich-Harris 53a2096
filter out files
Rich-Harris 60eb1d5
better file handling
Rich-Harris 6cf8b66
widen helper type to also catch unknown/the general type which will a…
dummdidumm 7a4a692
Merge branch 'validated-forms' of https://github.com/sveltejs/kit int…
dummdidumm 7dd2727
mentiond coercion
dummdidumm b821c0f
only reset after a successful submission
Rich-Harris 81b3163
same for buttonProps
Rich-Harris 753cb1c
Merge branch 'validated-forms' of github.com:sveltejs/kit into valida…
Rich-Harris 3fc41d9
typo
Rich-Harris 39b2e3c
redact sensitive info
Rich-Harris 7010659
document underscore
Rich-Harris e6aa3ff
regenerate
Rich-Harris da950e0
rename
Rich-Harris d3cb536
regenerate
Rich-Harris 37c10c9
guard against array prototype pollution
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@sveltejs/kit': minor | ||
| --- | ||
|
|
||
| feat: enhance remote form functions with schema support, input and issues fiels |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| '@sveltejs/kit': minor | ||
| --- | ||
|
|
||
| breaking: remote form functions get passed a parsed POJO instead of a `FormData` object now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.