@sveltejs/kit@2.59.0
Breaking Changes📦 sveltekitView on GitHub →
⚠ 1 breaking✨ 2 features🐛 6 fixes🔧 8 symbols
Summary
This release introduces support for `query.batch` and the experimental `query.live` function, alongside a breaking change in the behavior of the server-side `refresh` promise. Several bugs related to form handling and updates have also been resolved.
⚠️ Breaking Changes
- On the server, the promise returned from `refresh` now represents adding the refresh to the map, rather than the time it takes to run the remote function. Code relying on the previous behavior of the `refresh` promise must be updated.
Migration Steps
- Review usage of the promise returned by `refresh` on the server side to align with the new behavior (it now represents adding the refresh to the map).
✨ New Features
- Support for `query.batch` in `requested(...)`.
- Experimental `query.live` function.
🐛 Bug Fixes
- Unwrapped `Promise` in `RemoteCommand` output type.
- An empty call to `.updates()` on a command/form invocation now correctly means "don't update anything".
- `form.fields.foo.as('checkbox', default_value)` now works.
- Remote forms with default values defined by `field.as('text', defaultValue)` now correctly reset to the provided default values after submission.
- Ensured queries always start correctly.
- Allowed plain functions as overrides in `updates`.