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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
-
- "SPA action mode", the `SPA` option can now take a string, corresponding to a form action, and it will post there, without the need for a html form on the page.
12
+
- "SPA action mode", the `SPA` option can now take a string, corresponding to a form action, and it will post there, even without a html form on the page.
13
13
14
14
### Fixed
15
15
16
16
- Fixed types for constraints, tainted and errors when using intersections and unions in schemas.
17
17
- Fixed SuperDebug collapsed height by preventing global css leak.
18
18
- Redirect in SPA mode cancelled normal redirects, preventing applyAction.
19
+
- Default objects sent to `superForm` returned a form with an empty id, causing collisions, it is now a random string.
* Initializes a SvelteKit form, for convenient handling of values, errors and sumbitting data.
398
-
* @param {SuperValidated} form Usually data.form from PageData.
399
-
* @param {FormOptions} options Configuration for the form.
400
-
* @returns {SuperForm} An object with properties for the form.
399
+
* @param {SuperValidated} form Usually data.form from PageData or defaults, but can also be an object with default values, but then constraints won't be available.
400
+
* @param {FormOptions} formOptions Configuration for the form.
401
+
* @returns {SuperForm} A SuperForm object that can be used in a Svelte component.
0 commit comments