- Add optional third generic parameter `Validated` to `RemoteQueryFunction` that represents the argument type after schema validation/transformation
- Require `limit` in `requested`
- Make `requested` yield `{ arg, query }` entries instead of the validated argument
- Change enhance function return type from void to MaybePromise<void>
- Allow `query().current`, `.error`, `.loading`, and `.ready` to work in non-reactive contexts
- Prevent `deep_set` crash on nullish nested values
- Restore correct `RemoteFormFields` typing for nullable array fields so `.as('checkbox')` and friends work again
- Don't warn about removed SSI comments in `transformPageChunk`
- Throw an error when `resolve` is called with an external URL
- Avoid FOUC for CSR-only pages by loading styles and fonts before CSR starts
- Reset form result on redirect
Minor Changes
-
breaking: require
limitinrequested(as originally intended) (#15739) -
feat:
RemoteQueryFunctiongains an optional third generic parameterValidated(defaulting toInput) that represents the argument type after schema validation/transformation (#15739) -
breaking:
requestednow yields{ arg, query }entries instead of the validated argument (#15739)
Patch Changes
-
fix: allow
query().current,.error,.loading, and.readyto work in non-reactive contexts (#15699) -
fix: prevent
deep_setcrash on nullish nested values (#15600) -
fix: restore correct
RemoteFormFieldstyping for nullable array fields (e.g. when a schema uses.default([])), so.as('checkbox')and friends work again (#15723) -
fix: don't warn about removed SSI comments in
transformPageChunk(#15695)Server-side include (SSI) directives like
<!--#include virtual="..." -->are HTML comments that are replaced by servers such as nginx. Previously, removing them intransformPageChunkwould trigger a false positive warning about breaking Svelte's hydration. Since SSI comments always start with<!--#and Svelte's hydration comments never do, they can be safely excluded from the check. -
Change enhance function return type from void to MaybePromise. (#15710)
-
fix: throw an error when
resolveis called with an external URL (#15733) -
fix: avoid FOUC for CSR-only pages by loading styles and fonts before CSR starts (#15718)
-
fix: reset form result on redirect (#15724)