@sveltejs/kit
Advanced tools
Comparing version 2.15.1 to 2.15.2
{ | ||
"name": "@sveltejs/kit", | ||
"version": "2.15.1", | ||
"version": "2.15.2", | ||
"description": "SvelteKit is the fastest way to build Svelte apps", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -14,3 +14,3 @@ import { | ||
/** | ||
* A reactive object with information about the current page, serving several use cases: | ||
* A read-only reactive object with information about the current page, serving several use cases: | ||
* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load)) | ||
@@ -43,3 +43,3 @@ * - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions)) | ||
/** | ||
* An object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties. | ||
* A read-only object representing an in-progress navigation, with `from`, `to`, `type` and (if `type === 'popstate'`) `delta` properties. | ||
* Values are `null` when no navigation is occurring, or during server rendering. | ||
@@ -52,5 +52,5 @@ * @type {import('@sveltejs/kit').Navigation | { from: null, to: null, type: null, willUnload: null, delta: null, complete: null }} | ||
/** | ||
* A reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling. | ||
* A read-only reactive value that's initially `false`. If [`version.pollInterval`](https://svelte.dev/docs/kit/configuration#version) is a non-zero value, SvelteKit will poll for new versions of the app and update `current` to `true` when it detects one. `updated.check()` will force an immediate check, regardless of polling. | ||
* @type {{ get current(): boolean; check(): Promise<boolean>; }} | ||
*/ | ||
export const updated = BROWSER ? client_updated : server_updated; |
@@ -73,3 +73,6 @@ import { text } from '../../../exports/index.js'; | ||
const should_prerender_data = nodes.some((node) => node?.server?.load); | ||
const should_prerender_data = nodes.some( | ||
// prerender in case of trailingSlash because the client retrieves that value from the server | ||
(node) => node?.server?.load || node?.server?.trailingSlash !== undefined | ||
); | ||
const data_pathname = add_data_suffix(event.url.pathname); | ||
@@ -76,0 +79,0 @@ |
// generated during release, do not modify | ||
/** @type {string} */ | ||
export const VERSION = '2.15.1'; | ||
export const VERSION = '2.15.2'; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
772654
22369
5
21
2
67