This PR contains the following updates:
Release Notes
sveltejs/kit (@sveltejs/kit)
Compare Source
Patch Changes
- fix: regression where routes starting and ending with a route group are not matched correctly (#15903)
Compare Source
Minor Changes
-
breaking: the .run() method has been removed from remote queries on both the client and the server. Use await query() directly instead — it now works everywhere (#15779)
-
feat: remote queries can now be awaited in any context (event handlers, module scope, async callbacks), not just inside reactive contexts. The cache is shared across reactive and non-reactive subscribers, so awaiting a query in an event handler will dedupe with components that have already subscribed to the same query. (#15779)
-
feat: live query instances are now themselves async-iterable (#15878)
-
feat: add programmatic submit method to form remote function instances (#15657)
-
feat: pass form remote function instance into enhance callback (#15657)
Patch Changes
-
fix: resolve the app payload without using process.env.NODE_ENV (#15852)
-
fix: support exactOptionalPropertyTypes for optional route params (#15825)
-
fix: correctly send true value to the server for 'submit' and 'hidden' form fields (#15858)
-
fix: avoid build warnings about undefined universal hooks (#15895)
-
fix: prefer default error page when failing to decode the URL pathname (#15744)
-
fix: disable link prefetching on slow internet connections (#15885)
-
fix: allow routes ending with optional parameters next to more specific routes (#15861)
-
fix: remove reliance on Content-Length header in deserialize_binary_form, which caused failures when proxies (e.g. Vercel, Azure) strip the header and use chunked transfer encoding (#15796)
Compare Source
Patch Changes
Compare Source
Minor Changes
Patch Changes
Compare Source
Patch Changes
- fix: resolve paths to route files with the letter drive on Windows (#15793)
Compare Source
Minor Changes
-
feat: support query.batch in requested(...) (#15751)
-
breaking: on the server, make the promise returned from refresh represent adding the refresh to the map, not the time it takes to run the remote function (#15705)
-
feat: experimental query.live function (#15705)
Patch Changes
-
fix: unwrap Promise in RemoteCommand output type (#15771)
-
fix: empty call to .updates() on a command/form invocation means "don't update anything" (#15705)
-
fix: form.fields.foo.as('checkbox', default_value) now works (#15752)
-
fix: remote forms with default values defined by field.as('text', defaultValue) now correctly reset to the provided default values once submitted (#15753)
-
fix: make sure queries always get started correctly (#15705)
-
fix: allow plain functions as overrides in updates (#15705)
Compare Source
Minor Changes
-
breaking: require limit in requested (as originally intended) (#15739)
-
feat: RemoteQueryFunction gains an optional third generic parameter Validated (defaulting to Input) that represents the argument type after schema validation/transformation (#15739)
-
breaking: requested now yields { arg, query } entries instead of the validated argument (#15739)
Patch Changes
-
fix: allow query().current, .error, .loading, and .ready to work in non-reactive contexts (#15699)
-
fix: prevent deep_set crash on nullish nested values (#15600)
-
fix: restore correct RemoteFormFields typing 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 in transformPageChunk would 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 resolve is 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)
Configuration
📅 Schedule: (in timezone UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate.
This PR contains the following updates:
| Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [@sveltejs/kit](https://svelte.dev) ([source](https://github.com/sveltejs/kit/tree/HEAD/packages/kit)) | [`2.57.1` → `2.61.1`](https://renovatebot.com/diffs/npm/@sveltejs%2fkit/2.57.1/2.61.1) |  |  |
---
### Release Notes
<details>
<summary>sveltejs/kit (@​sveltejs/kit)</summary>
### [`v2.61.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2611)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.61.0...@sveltejs/kit@2.61.1)
##### Patch Changes
- fix: regression where routes starting and ending with a route group are not matched correctly ([#​15903](https://github.com/sveltejs/kit/pull/15903))
### [`v2.61.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2610)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.60.1...@sveltejs/kit@2.61.0)
##### Minor Changes
- breaking: the `.run()` method has been removed from remote queries on both the client and the server. Use `await query()` directly instead — it now works everywhere ([#​15779](https://github.com/sveltejs/kit/pull/15779))
- feat: remote queries can now be awaited in any context (event handlers, module scope, async callbacks), not just inside reactive contexts. The cache is shared across reactive and non-reactive subscribers, so awaiting a query in an event handler will dedupe with components that have already subscribed to the same query. ([#​15779](https://github.com/sveltejs/kit/pull/15779))
- feat: live query instances are now themselves async-iterable ([#​15878](https://github.com/sveltejs/kit/pull/15878))
- feat: add programmatic `submit` method to `form` remote function instances ([#​15657](https://github.com/sveltejs/kit/pull/15657))
- feat: pass `form` remote function instance into `enhance` callback ([#​15657](https://github.com/sveltejs/kit/pull/15657))
##### Patch Changes
- fix: resolve the app payload without using `process.env.NODE_ENV` ([#​15852](https://github.com/sveltejs/kit/pull/15852))
- fix: support `exactOptionalPropertyTypes` for optional route params ([#​15825](https://github.com/sveltejs/kit/pull/15825))
- fix: correctly send `true` value to the server for 'submit' and 'hidden' form fields ([#​15858](https://github.com/sveltejs/kit/pull/15858))
- fix: avoid build warnings about undefined universal hooks ([#​15895](https://github.com/sveltejs/kit/pull/15895))
- fix: prefer default error page when failing to decode the URL pathname ([#​15744](https://github.com/sveltejs/kit/pull/15744))
- fix: disable link prefetching on slow internet connections ([#​15885](https://github.com/sveltejs/kit/pull/15885))
- fix: allow routes ending with optional parameters next to more specific routes ([#​15861](https://github.com/sveltejs/kit/pull/15861))
- fix: remove reliance on Content-Length header in deserialize\_binary\_form, which caused failures when proxies (e.g. Vercel, Azure) strip the header and use chunked transfer encoding ([#​15796](https://github.com/sveltejs/kit/pull/15796))
### [`v2.60.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2601)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.60.0...@sveltejs/kit@2.60.1)
##### Patch Changes
- chore: bump `svelte` and `devalue` ([#​15836](https://github.com/sveltejs/kit/pull/15836))
- fix: prevent `query.batch` cross-talk ([`dadaefc`](https://github.com/sveltejs/kit/commit/dadaefc2e647a0a62f49f3ee8bc7aa46f5e27056))
### [`v2.60.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2600)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.59.1...@sveltejs/kit@2.60.0)
##### Minor Changes
- feat: allow 'submit' and 'hidden' form fields to accept numbers and booleans ([#​15802](https://github.com/sveltejs/kit/pull/15802))
- feat: warn on unread `form` remote function validation issues ([#​15653](https://github.com/sveltejs/kit/pull/15653))
##### Patch Changes
- fix: abort navigation after async rendering if obsolete ([#​15811](https://github.com/sveltejs/kit/pull/15811))
- fix: skip refreshing queries on full-page reload form submissions ([#​15803](https://github.com/sveltejs/kit/pull/15803))
### [`v2.59.1`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2591)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.59.0...@sveltejs/kit@2.59.1)
##### Patch Changes
- fix: resolve paths to route files with the letter drive on Windows ([#​15793](https://github.com/sveltejs/kit/pull/15793))
### [`v2.59.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2590)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.58.0...@sveltejs/kit@2.59.0)
##### Minor Changes
- feat: support `query.batch` in `requested(...)` ([#​15751](https://github.com/sveltejs/kit/pull/15751))
- breaking: on the server, make the promise returned from `refresh` represent adding the refresh to the map, not the time it takes to run the remote function ([#​15705](https://github.com/sveltejs/kit/pull/15705))
- feat: experimental `query.live` function ([#​15705](https://github.com/sveltejs/kit/pull/15705))
##### Patch Changes
- fix: unwrap `Promise` in `RemoteCommand` output type ([#​15771](https://github.com/sveltejs/kit/pull/15771))
- fix: empty call to `.updates()` on a command/form invocation means "don't update anything" ([#​15705](https://github.com/sveltejs/kit/pull/15705))
- fix: `form.fields.foo.as('checkbox', default_value)` now works ([#​15752](https://github.com/sveltejs/kit/pull/15752))
- fix: remote forms with default values defined by `field.as('text', defaultValue)` now correctly reset to the provided default values once submitted ([#​15753](https://github.com/sveltejs/kit/pull/15753))
- fix: make sure queries always get started correctly ([#​15705](https://github.com/sveltejs/kit/pull/15705))
- fix: allow plain functions as overrides in `updates` ([#​15705](https://github.com/sveltejs/kit/pull/15705))
### [`v2.58.0`](https://github.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#2580)
[Compare Source](https://github.com/sveltejs/kit/compare/@sveltejs/kit@2.57.1...@sveltejs/kit@2.58.0)
##### Minor Changes
- breaking: require `limit` in `requested` (as originally intended) ([#​15739](https://github.com/sveltejs/kit/pull/15739))
- feat: `RemoteQueryFunction` gains an optional third generic parameter `Validated` (defaulting to `Input`) that represents the argument type after schema validation/transformation ([#​15739](https://github.com/sveltejs/kit/pull/15739))
- breaking: `requested` now yields `{ arg, query }` entries instead of the validated argument ([#​15739](https://github.com/sveltejs/kit/pull/15739))
##### Patch Changes
- fix: allow `query().current`, `.error`, `.loading`, and `.ready` to work in non-reactive contexts ([#​15699](https://github.com/sveltejs/kit/pull/15699))
- fix: prevent `deep_set` crash on nullish nested values ([#​15600](https://github.com/sveltejs/kit/pull/15600))
- fix: restore correct `RemoteFormFields` typing for nullable array fields (e.g. when a schema uses `.default([])`), so `.as('checkbox')` and friends work again ([#​15723](https://github.com/sveltejs/kit/pull/15723))
- fix: don't warn about removed SSI comments in `transformPageChunk` ([#​15695](https://github.com/sveltejs/kit/pull/15695))
Server-side include (SSI) directives like `<!--#include virtual="..." -->` are HTML comments that are replaced by servers such as nginx. Previously, removing them in `transformPageChunk` would 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<void>. ([#​15710](https://github.com/sveltejs/kit/pull/15710))
- fix: throw an error when `resolve` is called with an external URL ([#​15733](https://github.com/sveltejs/kit/pull/15733))
- fix: avoid FOUC for CSR-only pages by loading styles and fonts before CSR starts ([#​15718](https://github.com/sveltejs/kit/pull/15718))
- fix: reset form result on redirect ([#​15724](https://github.com/sveltejs/kit/pull/15724))
</details>
---
### Configuration
📅 **Schedule**: (in timezone UTC)
- Branch creation
- At any time (no schedule defined)
- Automerge
- At any time (no schedule defined)
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
---
This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjE5OC4wIiwidGFyZ2V0QnJhbmNoIjoiZGV2ZWxvcCIsImxhYmVscyI6WyJLaW5kL0RlcGVuZGVuY2llcyJdfQ==-->