@sveltejs/kit
Advanced tools
Comparing version
{ | ||
"name": "@sveltejs/kit", | ||
"version": "2.20.7", | ||
"version": "2.20.8", | ||
"description": "SvelteKit is the fastest way to build Svelte apps", | ||
@@ -34,3 +34,3 @@ "keywords": [ | ||
"devDependencies": { | ||
"@playwright/test": "^1.44.1", | ||
"@playwright/test": "^1.51.1", | ||
"@sveltejs/vite-plugin-svelte": "^5.0.1", | ||
@@ -45,4 +45,4 @@ "@types/connect": "^3.4.38", | ||
"typescript": "^5.3.3", | ||
"vite": "^6.0.11", | ||
"vitest": "^3.0.1" | ||
"vite": "^6.2.6", | ||
"vitest": "^3.1.1" | ||
}, | ||
@@ -49,0 +49,0 @@ "peerDependencies": { |
@@ -18,2 +18,3 @@ import { text } from '../../../exports/index.js'; | ||
import { DEV } from 'esm-env'; | ||
import { PageNodes } from '../../../utils/page_nodes.js'; | ||
@@ -97,6 +98,9 @@ /** | ||
const ssr = nodes.ssr(); | ||
const csr = nodes.csr(); | ||
// renders an empty 'shell' page if SSR is turned off and if there is | ||
// no server data to prerender. As a result, the load functions and rendering | ||
// only occur client-side. | ||
if (nodes.ssr() === false && !(state.prerendering && should_prerender_data)) { | ||
if (ssr === false && !(state.prerendering && should_prerender_data)) { | ||
// if the user makes a request through a non-enhanced form, the returned value is lost | ||
@@ -122,3 +126,3 @@ // because there is no SSR or client-side handling of the response | ||
ssr: false, | ||
csr: nodes.csr() | ||
csr | ||
}, | ||
@@ -177,4 +181,2 @@ status, | ||
const csr = nodes.csr(); | ||
/** @type {Array<Promise<Record<string, any> | null>>} */ | ||
@@ -251,2 +253,5 @@ const load_promises = nodes.data.map((node, i) => { | ||
const layouts = compact(branch.slice(0, j + 1)); | ||
const nodes = new PageNodes(layouts.map((layout) => layout.node)); | ||
return await render_response({ | ||
@@ -258,6 +263,9 @@ event, | ||
resolve_opts, | ||
page_config: { ssr: true, csr: true }, | ||
page_config: { | ||
ssr: nodes.ssr(), | ||
csr: nodes.csr() | ||
}, | ||
status, | ||
error, | ||
branch: compact(branch.slice(0, j + 1)).concat({ | ||
branch: layouts.concat({ | ||
node, | ||
@@ -303,4 +311,2 @@ data: null, | ||
const ssr = nodes.ssr(); | ||
return await render_response({ | ||
@@ -313,3 +319,3 @@ event, | ||
page_config: { | ||
csr: nodes.csr(), | ||
csr, | ||
ssr | ||
@@ -316,0 +322,0 @@ }, |
// generated during release, do not modify | ||
/** @type {string} */ | ||
export const VERSION = '2.20.7'; | ||
export const VERSION = '2.20.8'; |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
820819
0.02%23512
0.03%