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
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
- For type safety, you cannot send `null` or `undefined` to `superForm` anymore. Use `superValidate`, or pass a complete data object to `superForm`. Default values can be added with the `defaultValues` function.
13
13
- The `valid` option is removed from `message`, any status >= 400 will return a fail.
14
14
15
+
### Changed
16
+
17
+
-`message/setMessage` and `setError` will now throw an error if the status option is below 400.
18
+
15
19
### Added
16
20
17
21
- Arrays and objects in the schema can now have errors! They can be found at `field._errors` in the `$errors` store.
18
22
-`validate` will now validate the whole form when it's called with no arguments.
23
+
- Support for `passthrough()` on a schema, `superValidate` will allow extra keys in that case.
19
24
20
25
## [1.0.0-rc.2]
21
26
@@ -36,7 +41,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
36
41
37
42
### Added
38
43
39
-
- Errors can now be added to arrays and objects in the schema.
40
44
- Added a `posted` store, a boolean which is false if the form hasn't been posted during its current lifetime.
41
45
-`reset` now has an additional `data` option that can be used to re-populate the form with data, and `id` to set a different form id.
42
46
-`intProxy`, `numberProxy`, `dateProxy` and `stringProxy` now have an `empty` option, so empty values can be set to `null` or `undefined`.
0 commit comments