You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
8
-
## [0.8.0] - 2023-04-21
8
+
## [0.8.0] - 2023-04-22
9
9
10
10
### Changed
11
11
12
-
- Client-side validators now works in realtime, based on "reward early, validate late"; If no error, validate on `focusout`. If error exists, validate on `input`.
12
+
- Client-side validators now works in realtime, based on "reward early, validate late": If no field error, validate on `blur`. If field error exists, validate on `input`.
13
13
14
14
### Removed
15
15
16
16
- The rarely used `update` function is removed. Use `form` instead, which now has an option for not tainting the affected fields.
17
17
18
18
### Fixed
19
19
20
-
-`tainted` wasn't updated correctly for array data.
20
+
-`tainted` wasn't updated properly for array data.
21
21
-`dataType: 'json'` now handles large (+1Mb) payloads.
22
22
23
23
### Added
24
24
25
25
- Added `validate` to `superForm`, which can be used to validate any field, at any time.
26
+
- Client-side validation can be customized with the `validationMethod: 'auto' | 'oninput' | 'onblur' | 'submit-only'` option.
26
27
- The option `{ taint: boolean | 'untaint' | 'untaint-all' }` has been added to `form.set` and `form.update`.
27
28
- The `resetForm` option can now take an `async () => boolean` function to determine whether the form should be resetted or not.
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,13 +21,13 @@
21
21
22
22
<br/>
23
23
24
-
Superforms is a SvelteKit library that helps you with **server-side validation** and **client-side display** of forms.
24
+
Making SvelteKit **validation** and **display** of forms easier than ever!
25
25
26
26
# Feature list
27
27
28
28
- Merging `PageData` and `ActionData` consistently - Forget about which one to use and how, just focus on your data.
29
29
- Server-side data validation using [Zod](https://zod.dev), with output that can be used directly on the client.
30
-
-[Auto-centering and auto-focusing](https://superforms.vercel.app/concepts/error-handling) on invalid form fields.
30
+
-[Auto-centering and auto-focusing](https://superforms.vercel.app/concepts/error-handling#usage-client) on invalid form fields.
31
31
-[Tainted form detection](https://superforms.vercel.app/concepts/tainted), prevents the user from losing data if navigating away from an unsaved form.
32
32
- No JS required as default, but full support for [progressive enhancement](https://superforms.vercel.app/concepts/enhance).
33
33
- Automatically coerces the string data from `FormData` into correct types.
@@ -61,4 +61,4 @@ You can also watch this excellent introduction video to see what's possible: htt
61
61
62
62
# Feedback wanted!
63
63
64
-
Ideas, feedback, bug reports, PR:s, etc, are very welcome as a Github [issue](https://github.com/ciscoheat/sveltekit-superforms/issues) or [discussion](https://github.com/ciscoheat/sveltekit-superforms/discussions)!
64
+
Ideas, general feedback, bug reports, PR:s, etc, are very welcome as a Github [issue](https://github.com/ciscoheat/sveltekit-superforms/issues), [discussion](https://github.com/ciscoheat/sveltekit-superforms/discussions), or on the [Discord server](https://discord.gg/AptebvVuhB)!
0 commit comments