@sveltejs/kit 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltejs/kit",
3
- "version": "2.7.0",
3
+ "version": "2.7.2",
4
4
  "description": "SvelteKit is the fastest way to build Svelte apps",
5
5
  "keywords": [
6
6
  "framework",
@@ -28,7 +28,7 @@
28
28
  "mrmime": "^2.0.0",
29
29
  "sade": "^1.8.1",
30
30
  "set-cookie-parser": "^2.6.0",
31
- "sirv": "^2.0.4",
31
+ "sirv": "^3.0.0",
32
32
  "tiny-glob": "^0.2.9"
33
33
  },
34
34
  "devDependencies": {
@@ -21,6 +21,7 @@
21
21
  * preload: () => {
22
22
  * // this one wins as it's the first defined in the chain
23
23
  * console.log('first preload');
24
+ * return true;
24
25
  * }
25
26
  * });
26
27
  * console.log('first post-processing');
@@ -37,10 +38,12 @@
37
38
  * },
38
39
  * preload: () => {
39
40
  * console.log('second preload');
41
+ * return true;
40
42
  * },
41
43
  * filterSerializedResponseHeaders: () => {
42
44
  * // this one wins as it's the first defined in the chain
43
- * console.log('second filterSerializedResponseHeaders');
45
+ * console.log('second filterSerializedResponseHeaders');
46
+ * return true;
44
47
  * }
45
48
  * });
46
49
  * console.log('second post-processing');
@@ -307,9 +307,9 @@ export interface KitConfig {
307
307
  * };
308
308
  * ```
309
309
  *
310
- * > The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
310
+ * > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
311
311
  *
312
- * > You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
312
+ * > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
313
313
  * @default {}
314
314
  */
315
315
  alias?: Record<string, string>;
@@ -350,11 +350,11 @@ export interface KitConfig {
350
350
  *
351
351
  * When pages are prerendered, the CSP header is added via a `<meta http-equiv>` tag (note that in this case, `frame-ancestors`, `report-uri` and `sandbox` directives will be ignored).
352
352
  *
353
- * > When `mode` is `'auto'`, SvelteKit will use nonces for dynamically rendered pages and hashes for prerendered pages. Using nonces with prerendered pages is insecure and therefore forbidden.
353
+ * > [!NOTE] When `mode` is `'auto'`, SvelteKit will use nonces for dynamically rendered pages and hashes for prerendered pages. Using nonces with prerendered pages is insecure and therefore forbidden.
354
354
  *
355
- * > Note that most [Svelte transitions](https://svelte.dev/tutorial/transition) work by creating an inline `<style>` element. If you use these in your app, you must either leave the `style-src` directive unspecified or add `unsafe-inline`.
355
+ * > [!NOTE] Note that most [Svelte transitions](https://svelte.dev/tutorial/transition) work by creating an inline `<style>` element. If you use these in your app, you must either leave the `style-src` directive unspecified or add `unsafe-inline`.
356
356
  *
357
- * If this level of configuration is insufficient and you have more dynamic requirements, you can use the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle) to roll your own CSP.
357
+ * If this level of configuration is insufficient and you have more dynamic requirements, you can use the [`handle` hook](https://kit.svelte.dev/docs/hooks#Server-hooks-handle) to roll your own CSP.
358
358
  */
359
359
  csp?: {
360
360
  /**
@@ -470,7 +470,7 @@ export interface KitConfig {
470
470
  /**
471
471
  * Inline CSS inside a `<style>` block at the head of the HTML. This option is a number that specifies the maximum length of a CSS file in UTF-16 code units, as specified by the [String.length](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length) property, to be inlined. All CSS files needed for the page and smaller than this value are merged and inlined in a `<style>` block.
472
472
  *
473
- * > This results in fewer initial requests and can improve your [First Contentful Paint](https://web.dev/first-contentful-paint) score. However, it generates larger HTML output and reduces the effectiveness of browser caches. Use it advisedly.
473
+ * > [!NOTE] This results in fewer initial requests and can improve your [First Contentful Paint](https://web.dev/first-contentful-paint) score. However, it generates larger HTML output and reduces the effectiveness of browser caches. Use it advisedly.
474
474
  * @default 0
475
475
  */
476
476
  inlineStyleThreshold?: number;
@@ -679,8 +679,8 @@ export interface KitConfig {
679
679
  }
680
680
 
681
681
  /**
682
- * The [`handle`](https://kit.svelte.dev/docs/hooks#server-hooks-handle) hook runs every time the SvelteKit server receives a [request](https://kit.svelte.dev/docs/web-standards#fetch-apis-request) and
683
- * determines the [response](https://kit.svelte.dev/docs/web-standards#fetch-apis-response).
682
+ * The [`handle`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle) hook runs every time the SvelteKit server receives a [request](https://kit.svelte.dev/docs/web-standards#Fetch-APIs-Request) and
683
+ * determines the [response](https://kit.svelte.dev/docs/web-standards#Fetch-APIs-Response).
684
684
  * It receives an `event` object representing the request and a function called `resolve`, which renders the route and generates a `Response`.
685
685
  * This allows you to modify response headers or bodies, or bypass SvelteKit entirely (for implementing routes programmatically, for example).
686
686
  */
@@ -690,7 +690,7 @@ export type Handle = (input: {
690
690
  }) => MaybePromise<Response>;
691
691
 
692
692
  /**
693
- * The server-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleerror) hook runs when an unexpected error is thrown while responding to a request.
693
+ * The server-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleError) hook runs when an unexpected error is thrown while responding to a request.
694
694
  *
695
695
  * If an unexpected error is thrown during loading or rendering, this function will be called with the error and the event.
696
696
  * Make sure that this function _never_ throws an error.
@@ -703,7 +703,7 @@ export type HandleServerError = (input: {
703
703
  }) => MaybePromise<void | App.Error>;
704
704
 
705
705
  /**
706
- * The client-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleerror) hook runs when an unexpected error is thrown while navigating.
706
+ * The client-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleError) hook runs when an unexpected error is thrown while navigating.
707
707
  *
708
708
  * If an unexpected error is thrown during loading or the following render, this function will be called with the error and the event.
709
709
  * Make sure that this function _never_ throws an error.
@@ -716,7 +716,7 @@ export type HandleClientError = (input: {
716
716
  }) => MaybePromise<void | App.Error>;
717
717
 
718
718
  /**
719
- * The [`handleFetch`](https://kit.svelte.dev/docs/hooks#server-hooks-handlefetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
719
+ * The [`handleFetch`](https://kit.svelte.dev/docs/hooks#server-hooks-handleFetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
720
720
  */
721
721
  export type HandleFetch = (input: {
722
722
  event: RequestEvent;
@@ -758,7 +758,7 @@ export interface LoadEvent<
758
758
  * - It can be used to make credentialed requests on the server, as it inherits the `cookie` and `authorization` headers for the page request.
759
759
  * - It can make relative requests on the server (ordinarily, `fetch` requires a URL with an origin when used in a server context).
760
760
  * - Internal requests (e.g. for `+server.js` routes) go directly to the handler function when running on the server, without the overhead of an HTTP call.
761
- * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#server-hooks-handle)
761
+ * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle)
762
762
  * - During hydration, the response will be read from the HTML, guaranteeing consistency and preventing an additional network request.
763
763
  *
764
764
  * You can learn more about making credentialed requests with cookies [here](https://kit.svelte.dev/docs/load#cookies)
@@ -1051,7 +1051,7 @@ export interface RequestEvent<
1051
1051
  * - It can be used to make credentialed requests on the server, as it inherits the `cookie` and `authorization` headers for the page request.
1052
1052
  * - It can make relative requests on the server (ordinarily, `fetch` requires a URL with an origin when used in a server context).
1053
1053
  * - Internal requests (e.g. for `+server.js` routes) go directly to the handler function when running on the server, without the overhead of an HTTP call.
1054
- * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#server-hooks-handle)
1054
+ * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle)
1055
1055
  * - During hydration, the response will be read from the HTML, guaranteeing consistency and preventing an additional network request.
1056
1056
  *
1057
1057
  * You can learn more about making credentialed requests with cookies [here](https://kit.svelte.dev/docs/load#cookies)
@@ -1062,7 +1062,7 @@ export interface RequestEvent<
1062
1062
  */
1063
1063
  getClientAddress(): string;
1064
1064
  /**
1065
- * Contains custom data that was added to the request within the [`handle hook`](https://kit.svelte.dev/docs/hooks#server-hooks-handle).
1065
+ * Contains custom data that was added to the request within the [`handle hook`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle).
1066
1066
  */
1067
1067
  locals: App.Locals;
1068
1068
  /**
@@ -8,7 +8,7 @@ export let base: '' | `/${string}`;
8
8
  /**
9
9
  * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
10
10
  *
11
- * > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
11
+ * > [!NOTE] If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
12
12
  */
13
13
  export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
14
14
 
@@ -16,6 +16,8 @@ export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit
16
16
  * Populate a route ID with params to resolve a pathname.
17
17
  * @example
18
18
  * ```js
19
+ * import { resolveRoute } from '$app/paths';
20
+ *
19
21
  * resolveRoute(
20
22
  * `/blog/[slug]/[...somethingElse]`,
21
23
  * {
@@ -16,6 +16,7 @@ import { respond_with_error } from './respond_with_error.js';
16
16
  import { get_option } from '../../../utils/options.js';
17
17
  import { get_data_json } from '../data/index.js';
18
18
  import { load_page_nodes } from './load_page_nodes.js';
19
+ import { DEV } from 'esm-env';
19
20
 
20
21
  /**
21
22
  * The maximum request depth permitted before assuming we're stuck in an infinite loop
@@ -99,6 +100,21 @@ export async function render_page(event, page, options, manifest, state, resolve
99
100
  // no server data to prerender. As a result, the load functions and rendering
100
101
  // only occur client-side.
101
102
  if (get_option(nodes, 'ssr') === false && !(state.prerendering && should_prerender_data)) {
103
+ // if the user makes a request through a non-enhanced form, the returned value is lost
104
+ // because there is no SSR or client-side handling of the response
105
+ if (DEV && action_result && !event.request.headers.has('x-sveltekit-action')) {
106
+ if (action_result.type === 'error') {
107
+ console.warn(
108
+ "The form action returned an error, but +error.svelte wasn't rendered because SSR is off. To get the error page with CSR, enhance your form with `use:enhance`. See https://kit.svelte.dev/docs/form-actions#progressive-enhancement-use-enhance"
109
+ );
110
+ } else if (action_result.data) {
111
+ /// case: lost data
112
+ console.warn(
113
+ "The form action returned a value, but it isn't available in `$page.form`, because SSR is off. To handle the returned value in CSR, enhance your form with `use:enhance`. See https://kit.svelte.dev/docs/form-actions#progressive-enhancement-use-enhance"
114
+ );
115
+ }
116
+ }
117
+
102
118
  return await render_response({
103
119
  branch: [],
104
120
  fetched,
@@ -348,7 +348,7 @@ export function create_universal_fetch(event, state, fetched, csr, resolve_opts)
348
348
  const included = resolve_opts.filterSerializedResponseHeaders(lower, value);
349
349
  if (!included) {
350
350
  throw new Error(
351
- `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#server-hooks-handle (at ${event.route.id})`
351
+ `Failed to get response header "${lower}" — it must be included by the \`filterSerializedResponseHeaders\` option: https://kit.svelte.dev/docs/hooks#Server-hooks-handle (at ${event.route.id})`
352
352
  );
353
353
  }
354
354
  }
package/src/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // generated during release, do not modify
2
2
 
3
3
  /** @type {string} */
4
- export const VERSION = '2.7.0';
4
+ export const VERSION = '2.7.2';
package/types/index.d.ts CHANGED
@@ -289,9 +289,9 @@ declare module '@sveltejs/kit' {
289
289
  * };
290
290
  * ```
291
291
  *
292
- * > The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
292
+ * > [!NOTE] The built-in `$lib` alias is controlled by `config.kit.files.lib` as it is used for packaging.
293
293
  *
294
- * > You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
294
+ * > [!NOTE] You will need to run `npm run dev` to have SvelteKit automatically generate the required alias configuration in `jsconfig.json` or `tsconfig.json`.
295
295
  * @default {}
296
296
  */
297
297
  alias?: Record<string, string>;
@@ -332,11 +332,11 @@ declare module '@sveltejs/kit' {
332
332
  *
333
333
  * When pages are prerendered, the CSP header is added via a `<meta http-equiv>` tag (note that in this case, `frame-ancestors`, `report-uri` and `sandbox` directives will be ignored).
334
334
  *
335
- * > When `mode` is `'auto'`, SvelteKit will use nonces for dynamically rendered pages and hashes for prerendered pages. Using nonces with prerendered pages is insecure and therefore forbidden.
335
+ * > [!NOTE] When `mode` is `'auto'`, SvelteKit will use nonces for dynamically rendered pages and hashes for prerendered pages. Using nonces with prerendered pages is insecure and therefore forbidden.
336
336
  *
337
- * > Note that most [Svelte transitions](https://svelte.dev/tutorial/transition) work by creating an inline `<style>` element. If you use these in your app, you must either leave the `style-src` directive unspecified or add `unsafe-inline`.
337
+ * > [!NOTE] Note that most [Svelte transitions](https://svelte.dev/tutorial/transition) work by creating an inline `<style>` element. If you use these in your app, you must either leave the `style-src` directive unspecified or add `unsafe-inline`.
338
338
  *
339
- * If this level of configuration is insufficient and you have more dynamic requirements, you can use the [`handle` hook](https://kit.svelte.dev/docs/hooks#server-hooks-handle) to roll your own CSP.
339
+ * If this level of configuration is insufficient and you have more dynamic requirements, you can use the [`handle` hook](https://kit.svelte.dev/docs/hooks#Server-hooks-handle) to roll your own CSP.
340
340
  */
341
341
  csp?: {
342
342
  /**
@@ -452,7 +452,7 @@ declare module '@sveltejs/kit' {
452
452
  /**
453
453
  * Inline CSS inside a `<style>` block at the head of the HTML. This option is a number that specifies the maximum length of a CSS file in UTF-16 code units, as specified by the [String.length](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length) property, to be inlined. All CSS files needed for the page and smaller than this value are merged and inlined in a `<style>` block.
454
454
  *
455
- * > This results in fewer initial requests and can improve your [First Contentful Paint](https://web.dev/first-contentful-paint) score. However, it generates larger HTML output and reduces the effectiveness of browser caches. Use it advisedly.
455
+ * > [!NOTE] This results in fewer initial requests and can improve your [First Contentful Paint](https://web.dev/first-contentful-paint) score. However, it generates larger HTML output and reduces the effectiveness of browser caches. Use it advisedly.
456
456
  * @default 0
457
457
  */
458
458
  inlineStyleThreshold?: number;
@@ -661,8 +661,8 @@ declare module '@sveltejs/kit' {
661
661
  }
662
662
 
663
663
  /**
664
- * The [`handle`](https://kit.svelte.dev/docs/hooks#server-hooks-handle) hook runs every time the SvelteKit server receives a [request](https://kit.svelte.dev/docs/web-standards#fetch-apis-request) and
665
- * determines the [response](https://kit.svelte.dev/docs/web-standards#fetch-apis-response).
664
+ * The [`handle`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle) hook runs every time the SvelteKit server receives a [request](https://kit.svelte.dev/docs/web-standards#Fetch-APIs-Request) and
665
+ * determines the [response](https://kit.svelte.dev/docs/web-standards#Fetch-APIs-Response).
666
666
  * It receives an `event` object representing the request and a function called `resolve`, which renders the route and generates a `Response`.
667
667
  * This allows you to modify response headers or bodies, or bypass SvelteKit entirely (for implementing routes programmatically, for example).
668
668
  */
@@ -672,7 +672,7 @@ declare module '@sveltejs/kit' {
672
672
  }) => MaybePromise<Response>;
673
673
 
674
674
  /**
675
- * The server-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleerror) hook runs when an unexpected error is thrown while responding to a request.
675
+ * The server-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleError) hook runs when an unexpected error is thrown while responding to a request.
676
676
  *
677
677
  * If an unexpected error is thrown during loading or rendering, this function will be called with the error and the event.
678
678
  * Make sure that this function _never_ throws an error.
@@ -685,7 +685,7 @@ declare module '@sveltejs/kit' {
685
685
  }) => MaybePromise<void | App.Error>;
686
686
 
687
687
  /**
688
- * The client-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleerror) hook runs when an unexpected error is thrown while navigating.
688
+ * The client-side [`handleError`](https://kit.svelte.dev/docs/hooks#shared-hooks-handleError) hook runs when an unexpected error is thrown while navigating.
689
689
  *
690
690
  * If an unexpected error is thrown during loading or the following render, this function will be called with the error and the event.
691
691
  * Make sure that this function _never_ throws an error.
@@ -698,7 +698,7 @@ declare module '@sveltejs/kit' {
698
698
  }) => MaybePromise<void | App.Error>;
699
699
 
700
700
  /**
701
- * The [`handleFetch`](https://kit.svelte.dev/docs/hooks#server-hooks-handlefetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
701
+ * The [`handleFetch`](https://kit.svelte.dev/docs/hooks#server-hooks-handleFetch) hook allows you to modify (or replace) a `fetch` request that happens inside a `load` function that runs on the server (or during pre-rendering)
702
702
  */
703
703
  export type HandleFetch = (input: {
704
704
  event: RequestEvent;
@@ -740,7 +740,7 @@ declare module '@sveltejs/kit' {
740
740
  * - It can be used to make credentialed requests on the server, as it inherits the `cookie` and `authorization` headers for the page request.
741
741
  * - It can make relative requests on the server (ordinarily, `fetch` requires a URL with an origin when used in a server context).
742
742
  * - Internal requests (e.g. for `+server.js` routes) go directly to the handler function when running on the server, without the overhead of an HTTP call.
743
- * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#server-hooks-handle)
743
+ * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle)
744
744
  * - During hydration, the response will be read from the HTML, guaranteeing consistency and preventing an additional network request.
745
745
  *
746
746
  * You can learn more about making credentialed requests with cookies [here](https://kit.svelte.dev/docs/load#cookies)
@@ -1033,7 +1033,7 @@ declare module '@sveltejs/kit' {
1033
1033
  * - It can be used to make credentialed requests on the server, as it inherits the `cookie` and `authorization` headers for the page request.
1034
1034
  * - It can make relative requests on the server (ordinarily, `fetch` requires a URL with an origin when used in a server context).
1035
1035
  * - Internal requests (e.g. for `+server.js` routes) go directly to the handler function when running on the server, without the overhead of an HTTP call.
1036
- * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#server-hooks-handle)
1036
+ * - During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the `text` and `json` methods of the `Response` object. Note that headers will _not_ be serialized, unless explicitly included via [`filterSerializedResponseHeaders`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle)
1037
1037
  * - During hydration, the response will be read from the HTML, guaranteeing consistency and preventing an additional network request.
1038
1038
  *
1039
1039
  * You can learn more about making credentialed requests with cookies [here](https://kit.svelte.dev/docs/load#cookies)
@@ -1044,7 +1044,7 @@ declare module '@sveltejs/kit' {
1044
1044
  */
1045
1045
  getClientAddress(): string;
1046
1046
  /**
1047
- * Contains custom data that was added to the request within the [`handle hook`](https://kit.svelte.dev/docs/hooks#server-hooks-handle).
1047
+ * Contains custom data that was added to the request within the [`handle hook`](https://kit.svelte.dev/docs/hooks#Server-hooks-handle).
1048
1048
  */
1049
1049
  locals: App.Locals;
1050
1050
  /**
@@ -1873,6 +1873,7 @@ declare module '@sveltejs/kit/hooks' {
1873
1873
  * preload: () => {
1874
1874
  * // this one wins as it's the first defined in the chain
1875
1875
  * console.log('first preload');
1876
+ * return true;
1876
1877
  * }
1877
1878
  * });
1878
1879
  * console.log('first post-processing');
@@ -1889,10 +1890,12 @@ declare module '@sveltejs/kit/hooks' {
1889
1890
  * },
1890
1891
  * preload: () => {
1891
1892
  * console.log('second preload');
1893
+ * return true;
1892
1894
  * },
1893
1895
  * filterSerializedResponseHeaders: () => {
1894
1896
  * // this one wins as it's the first defined in the chain
1895
- * console.log('second filterSerializedResponseHeaders');
1897
+ * console.log('second filterSerializedResponseHeaders');
1898
+ * return true;
1896
1899
  * }
1897
1900
  * });
1898
1901
  * console.log('second post-processing');
@@ -2161,7 +2164,7 @@ declare module '$app/paths' {
2161
2164
  /**
2162
2165
  * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
2163
2166
  *
2164
- * > If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
2167
+ * > [!NOTE] If a value for `config.kit.paths.assets` is specified, it will be replaced with `'/_svelte_kit_assets'` during `vite dev` or `vite preview`, since the assets don't yet live at their eventual URL.
2165
2168
  */
2166
2169
  export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
2167
2170
 
@@ -2169,6 +2172,8 @@ declare module '$app/paths' {
2169
2172
  * Populate a route ID with params to resolve a pathname.
2170
2173
  * @example
2171
2174
  * ```js
2175
+ * import { resolveRoute } from '$app/paths';
2176
+ *
2172
2177
  * resolveRoute(
2173
2178
  * `/blog/[slug]/[...somethingElse]`,
2174
2179
  * {
@@ -154,6 +154,6 @@
154
154
  null,
155
155
  null
156
156
  ],
157
- "mappings": ";;;;;;;;;kBA2BiBA,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;aA2BZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;;;;;;;;kBAeTC,aAAaA;;;;;;;;;;;;;;;;;kBAiBbC,OAAOA;;;;;;;;;;;;;;;;;;;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