@sveltejs/kit 2.3.1 → 2.3.3

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.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "The fastest way to build Svelte apps",
5
5
  "repository": {
6
6
  "type": "git",
@@ -424,7 +424,7 @@ async function kit({ svelte_config }) {
424
424
  case env_dynamic_public:
425
425
  // populate `$env/dynamic/public` from `window`
426
426
  if (browser) {
427
- return `export const env = ${global}.env ?? (await import(/* @vite-ignore */ ${global}.base + '/' + '${kit.appDir}/env.js')).env;`;
427
+ return `export const env = ${global}.env;`;
428
428
  }
429
429
 
430
430
  return create_dynamic_module(
@@ -0,0 +1,6 @@
1
+ import { BROWSER, DEV } from 'esm-env';
2
+ export { building, version } from '__sveltekit/environment';
3
+
4
+ export const browser = BROWSER;
5
+
6
+ export const dev = DEV;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * `true` if the app is running in the browser.
3
+ */
4
+ export const browser: boolean;
5
+
6
+ /**
7
+ * Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
8
+ */
9
+ export const dev: boolean;
10
+
11
+ /**
12
+ * SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
13
+ */
14
+ export const building: boolean;
15
+
16
+ /**
17
+ * The value of `config.kit.version.name`.
18
+ */
19
+ export const version: string;
@@ -0,0 +1,8 @@
1
+ export { base, assets } from '__sveltekit/paths';
2
+ import { base } from '__sveltekit/paths';
3
+ import { resolve_route } from '../../../utils/routing.js';
4
+
5
+ /** @type {import('./types.d.ts').resolveRoute} */
6
+ export function resolveRoute(id, params) {
7
+ return base + resolve_route(id, params);
8
+ }
@@ -0,0 +1,28 @@
1
+ /**
2
+ * A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
3
+ *
4
+ * Example usage: `<a href="{base}/your-page">Link</a>`
5
+ */
6
+ export let base: '' | `/${string}`;
7
+
8
+ /**
9
+ * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
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.
12
+ */
13
+ export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
14
+
15
+ /**
16
+ * Populate a route ID with params to resolve a pathname.
17
+ * @example
18
+ * ```js
19
+ * resolveRoute(
20
+ * `/blog/[slug]/[...somethingElse]`,
21
+ * {
22
+ * slug: 'hello-world',
23
+ * somethingElse: 'something/else'
24
+ * }
25
+ * ); // `/blog/hello-world/something/else`
26
+ * ```
27
+ */
28
+ export function resolveRoute(id: string, params: Record<string, string | undefined>): string;
@@ -297,11 +297,21 @@ export async function render_response({
297
297
 
298
298
  const blocks = [];
299
299
 
300
- const properties = [
301
- paths.assets && `assets: ${s(paths.assets)}`,
302
- `base: ${base_expression}`,
303
- `env: ${!client.uses_env_dynamic_public || state.prerendering ? null : s(public_env)}`
304
- ].filter(Boolean);
300
+ // when serving a prerendered page in an app that uses $env/dynamic/public, we must
301
+ // import the env.js module so that it evaluates before any user code can evaluate.
302
+ // TODO revert to using top-level await once https://bugs.webkit.org/show_bug.cgi?id=242740 is fixed
303
+ // https://github.com/sveltejs/kit/pull/11601
304
+ const load_env_eagerly = client.uses_env_dynamic_public && state.prerendering;
305
+
306
+ const properties = [`base: ${base_expression}`];
307
+
308
+ if (paths.assets) {
309
+ properties.push(`assets: ${s(paths.assets)}`);
310
+ }
311
+
312
+ if (client.uses_env_dynamic_public) {
313
+ properties.push(`env: ${load_env_eagerly ? 'null' : s(public_env)}`);
314
+ }
305
315
 
306
316
  if (chunks) {
307
317
  blocks.push('const deferred = new Map();');
@@ -319,6 +329,7 @@ export async function render_response({
319
329
  }`);
320
330
  }
321
331
 
332
+ // create this before declaring `data`, which may contain references to `${global}`
322
333
  blocks.push(`${global} = {
323
334
  ${properties.join(',\n\t\t\t\t\t\t')}
324
335
  };`);
@@ -358,15 +369,29 @@ export async function render_response({
358
369
  hydrate.push(`params: ${devalue.uneval(event.params)}`, `route: ${s(event.route)}`);
359
370
  }
360
371
 
361
- args.push(`{\n\t\t\t\t\t\t\t${hydrate.join(',\n\t\t\t\t\t\t\t')}\n\t\t\t\t\t\t}`);
372
+ const indent = '\t'.repeat(load_env_eagerly ? 7 : 6);
373
+ args.push(`{\n${indent}\t${hydrate.join(`,\n${indent}\t`)}\n${indent}}`);
362
374
  }
363
375
 
364
- blocks.push(`Promise.all([
376
+ if (load_env_eagerly) {
377
+ blocks.push(`import(${s(`${base}/${options.app_dir}/env.js`)}).then(({ env }) => {
378
+ ${global}.env = env;
379
+
380
+ Promise.all([
381
+ import(${s(prefixed(client.start))}),
382
+ import(${s(prefixed(client.app))})
383
+ ]).then(([kit, app]) => {
384
+ kit.start(${args.join(', ')});
385
+ });
386
+ });`);
387
+ } else {
388
+ blocks.push(`Promise.all([
365
389
  import(${s(prefixed(client.start))}),
366
390
  import(${s(prefixed(client.app))})
367
391
  ]).then(([kit, app]) => {
368
392
  kit.start(${args.join(', ')});
369
393
  });`);
394
+ }
370
395
 
371
396
  if (options.service_worker) {
372
397
  const opts = __SVELTEKIT_DEV__ ? ", { type: 'module' }" : '';
@@ -113,6 +113,10 @@ export async function respond(request, options, manifest, state) {
113
113
  return get_public_env(request);
114
114
  }
115
115
 
116
+ if (decoded.startsWith(`/${options.app_dir}`)) {
117
+ return text('Not found', { status: 404 });
118
+ }
119
+
116
120
  const is_data_request = has_data_suffix(decoded);
117
121
  /** @type {boolean[] | undefined} */
118
122
  let invalidated_data_nodes;
@@ -1,11 +1,18 @@
1
- declare global {
2
- const __SVELTEKIT_ADAPTER_NAME__: string;
3
- const __SVELTEKIT_APP_VERSION_FILE__: string;
4
- const __SVELTEKIT_APP_VERSION_POLL_INTERVAL__: number;
5
- const __SVELTEKIT_DEV__: boolean;
6
- const __SVELTEKIT_EMBEDDED__: boolean;
7
- var Bun: object;
8
- var Deno: object;
1
+ /** Internal version of $app/environment */
2
+ declare module '__sveltekit/environment' {
3
+ export const building: boolean;
4
+ export const prerendering: boolean;
5
+ export const version: string;
6
+ export function set_building(): void;
7
+ export function set_prerendering(): void;
9
8
  }
10
9
 
11
- export {};
10
+ /** Internal version of $app/paths */
11
+ declare module '__sveltekit/paths' {
12
+ export let base: '' | `/${string}`;
13
+ export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
14
+ export let relative: boolean;
15
+ export function reset(): void;
16
+ export function override(paths: { base: string; assets: string }): void;
17
+ export function set_assets(path: string): void;
18
+ }
@@ -79,41 +79,3 @@ declare module '$service-worker' {
79
79
  */
80
80
  export const version: string;
81
81
  }
82
-
83
- /** Internal version of $app/environment */
84
- declare module '__sveltekit/environment' {
85
- /**
86
- * SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
87
- */
88
- export const building: boolean;
89
- /**
90
- * True during prerendering, false otherwise.
91
- */
92
- export const prerendering: boolean;
93
- /**
94
- * The value of `config.kit.version.name`.
95
- */
96
- export const version: string;
97
- export function set_building(): void;
98
- export function set_prerendering(): void;
99
- }
100
-
101
- /** Internal version of $app/paths */
102
- declare module '__sveltekit/paths' {
103
- /**
104
- * A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
105
- *
106
- * Example usage: `<a href="{base}/your-page">Link</a>`
107
- */
108
- export let base: '' | `/${string}`;
109
- /**
110
- * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
111
- *
112
- * > 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.
113
- */
114
- export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
115
- export let relative: boolean;
116
- export function reset(): void;
117
- export function override(paths: { base: string; assets: string }): void;
118
- export function set_assets(path: string): void;
119
- }
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ const __SVELTEKIT_ADAPTER_NAME__: string;
3
+ const __SVELTEKIT_APP_VERSION_FILE__: string;
4
+ const __SVELTEKIT_APP_VERSION_POLL_INTERVAL__: number;
5
+ const __SVELTEKIT_DEV__: boolean;
6
+ const __SVELTEKIT_EMBEDDED__: boolean;
7
+ var Bun: object;
8
+ var Deno: object;
9
+ }
10
+
11
+ export {};
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.3.1';
4
+ export const VERSION = '2.3.3';
package/types/index.d.ts CHANGED
@@ -1892,15 +1892,25 @@ declare module '@sveltejs/kit/vite' {
1892
1892
  }
1893
1893
 
1894
1894
  declare module '$app/environment' {
1895
- export { building, version } from '__sveltekit/environment';
1896
1895
  /**
1897
1896
  * `true` if the app is running in the browser.
1898
1897
  */
1899
1898
  export const browser: boolean;
1899
+
1900
1900
  /**
1901
1901
  * Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
1902
1902
  */
1903
1903
  export const dev: boolean;
1904
+
1905
+ /**
1906
+ * SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
1907
+ */
1908
+ export const building: boolean;
1909
+
1910
+ /**
1911
+ * The value of `config.kit.version.name`.
1912
+ */
1913
+ export const version: string;
1904
1914
  }
1905
1915
 
1906
1916
  declare module '$app/forms' {
@@ -2067,7 +2077,20 @@ declare module '$app/navigation' {
2067
2077
  }
2068
2078
 
2069
2079
  declare module '$app/paths' {
2070
- export { base, assets } from '__sveltekit/paths';
2080
+ /**
2081
+ * A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
2082
+ *
2083
+ * Example usage: `<a href="{base}/your-page">Link</a>`
2084
+ */
2085
+ export let base: '' | `/${string}`;
2086
+
2087
+ /**
2088
+ * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
2089
+ *
2090
+ * > 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.
2091
+ */
2092
+ export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
2093
+
2071
2094
  /**
2072
2095
  * Populate a route ID with params to resolve a pathname.
2073
2096
  * @example
@@ -2080,7 +2103,7 @@ declare module '$app/paths' {
2080
2103
  * }
2081
2104
  * ); // `/blog/hello-world/something/else`
2082
2105
  * ```
2083
- * */
2106
+ */
2084
2107
  export function resolveRoute(id: string, params: Record<string, string | undefined>): string;
2085
2108
  }
2086
2109
 
@@ -2198,42 +2221,4 @@ declare module '$service-worker' {
2198
2221
  export const version: string;
2199
2222
  }
2200
2223
 
2201
- /** Internal version of $app/environment */
2202
- declare module '__sveltekit/environment' {
2203
- /**
2204
- * SvelteKit analyses your app during the `build` step by running it. During this process, `building` is `true`. This also applies during prerendering.
2205
- */
2206
- export const building: boolean;
2207
- /**
2208
- * True during prerendering, false otherwise.
2209
- */
2210
- export const prerendering: boolean;
2211
- /**
2212
- * The value of `config.kit.version.name`.
2213
- */
2214
- export const version: string;
2215
- export function set_building(): void;
2216
- export function set_prerendering(): void;
2217
- }
2218
-
2219
- /** Internal version of $app/paths */
2220
- declare module '__sveltekit/paths' {
2221
- /**
2222
- * A string that matches [`config.kit.paths.base`](https://kit.svelte.dev/docs/configuration#paths).
2223
- *
2224
- * Example usage: `<a href="{base}/your-page">Link</a>`
2225
- */
2226
- export let base: '' | `/${string}`;
2227
- /**
2228
- * An absolute path that matches [`config.kit.paths.assets`](https://kit.svelte.dev/docs/configuration#paths).
2229
- *
2230
- * > 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.
2231
- */
2232
- export let assets: '' | `https://${string}` | `http://${string}` | '/_svelte_kit_assets';
2233
- export let relative: boolean;
2234
- export function reset(): void;
2235
- export function override(paths: { base: string; assets: string }): void;
2236
- export function set_assets(path: string): void;
2237
- }
2238
-
2239
2224
  //# sourceMappingURL=index.d.ts.map
@@ -90,6 +90,8 @@
90
90
  "sveltekit",
91
91
  "browser",
92
92
  "dev",
93
+ "building",
94
+ "version",
93
95
  "deserialize",
94
96
  "enhance",
95
97
  "applyAction",
@@ -104,6 +106,8 @@
104
106
  "preloadCode",
105
107
  "pushState",
106
108
  "replaceState",
109
+ "base",
110
+ "assets",
107
111
  "resolveRoute",
108
112
  "getStores",
109
113
  "page",
@@ -121,10 +125,10 @@
121
125
  "../src/exports/node/index.js",
122
126
  "../src/exports/node/polyfills.js",
123
127
  "../src/exports/vite/index.js",
124
- "../src/runtime/app/environment.js",
128
+ "../src/runtime/app/environment/types.d.ts",
125
129
  "../src/runtime/app/forms.js",
126
130
  "../src/runtime/client/client.js",
127
- "../src/runtime/app/paths.js",
131
+ "../src/runtime/app/paths/types.d.ts",
128
132
  "../src/runtime/app/stores.js"
129
133
  ],
130
134
  "sourcesContent": [
@@ -144,5 +148,5 @@
144
148
  null,
145
149
  null
146
150
  ],
147
- "mappings": ";;;;;;;;;kBA2BiBA,OAAOA;;;;;;;;;;;;aAYZC,cAAcA;;;;;;aAMdC,cAAcA;;;;;;;;;;;;;;;kBAeTC,aAAaA;;;;;;;;;;;;;;;;kBAgBbC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA4FPC,MAAMA;;;;;;;;;;;;;;;;;;;;;kBAqBNC,OAAOA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyDPC,SAASA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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XC,OAAOA;;;;;;;iBCmwDDC,WAAWA;;;;;;;;;iBA5RjBC,aAAaA;;;;;;;;;;;;iBAiBbC,cAAcA;;;;;;;;;;iBAedC,UAAUA;;;;;iBASVC,qBAAqBA;;;;;;;;iBA2BrBC,IAAIA;;;;;;;;;;;;;;;;;;;;;;;;iBAsCJC,UAAUA;;;;iBAmBVC,aAAaA;;;;;;;;;;;;iBAqBPC,WAAWA;;;;;;;;;;;;;;;;;;iBAoCjBC,WAAWA;;;;;iBA2BXC,SAASA;;;;;iBAuCTC,YAAYA;MVzoDhB1D,YAAYA;;;;;;;;;YWvJb2D,IAAIA;;;;;;;YAOJC,MAAMA;;;;;;;;;;;;;;;iBAeDC,YAAYA;;;;iBCnBfC,SAASA;;;;;;;;;;;;;;cAwBTC,IAAIA;;;;;;;;cAeJC,UAAUA;;;;;;cAaVC,OAAOA"
148
152
  }
@@ -1,12 +0,0 @@
1
- import { BROWSER, DEV } from 'esm-env';
2
- export { building, version } from '__sveltekit/environment';
3
-
4
- /**
5
- * `true` if the app is running in the browser.
6
- */
7
- export const browser = BROWSER;
8
-
9
- /**
10
- * Whether the dev server is running. This is not guaranteed to correspond to `NODE_ENV` or `MODE`.
11
- */
12
- export const dev = DEV;
@@ -1,23 +0,0 @@
1
- export { base, assets } from '__sveltekit/paths';
2
- import { base } from '__sveltekit/paths';
3
- import { resolve_route } from '../../utils/routing.js';
4
-
5
- /**
6
- * Populate a route ID with params to resolve a pathname.
7
- * @example
8
- * ```js
9
- * resolveRoute(
10
- * `/blog/[slug]/[...somethingElse]`,
11
- * {
12
- * slug: 'hello-world',
13
- * somethingElse: 'something/else'
14
- * }
15
- * ); // `/blog/hello-world/something/else`
16
- * ```
17
- * @param {string} id
18
- * @param {Record<string, string | undefined>} params
19
- * @returns {string}
20
- */
21
- export function resolveRoute(id, params) {
22
- return base + resolve_route(id, params);
23
- }