@sveltejs/kit 1.0.0-next.46 → 1.0.0-next.460

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.
Files changed (115) hide show
  1. package/README.md +12 -9
  2. package/package.json +93 -65
  3. package/scripts/special-types/$env+dynamic+private.md +8 -0
  4. package/scripts/special-types/$env+dynamic+public.md +8 -0
  5. package/scripts/special-types/$env+static+private.md +19 -0
  6. package/scripts/special-types/$env+static+public.md +7 -0
  7. package/scripts/special-types/$lib.md +1 -0
  8. package/src/cli.js +112 -0
  9. package/src/constants.js +7 -0
  10. package/src/core/adapt/builder.js +207 -0
  11. package/src/core/adapt/index.js +31 -0
  12. package/src/core/config/default-error.html +56 -0
  13. package/src/core/config/index.js +105 -0
  14. package/src/core/config/options.js +498 -0
  15. package/src/core/config/types.d.ts +1 -0
  16. package/src/core/env.js +112 -0
  17. package/src/core/generate_manifest/index.js +78 -0
  18. package/src/core/prerender/crawl.js +194 -0
  19. package/src/core/prerender/prerender.js +425 -0
  20. package/src/core/prerender/queue.js +80 -0
  21. package/src/core/sync/create_manifest_data/index.js +452 -0
  22. package/src/core/sync/create_manifest_data/types.d.ts +37 -0
  23. package/src/core/sync/sync.js +59 -0
  24. package/src/core/sync/utils.js +33 -0
  25. package/src/core/sync/write_ambient.js +53 -0
  26. package/src/core/sync/write_client_manifest.js +94 -0
  27. package/src/core/sync/write_matchers.js +25 -0
  28. package/src/core/sync/write_root.js +91 -0
  29. package/src/core/sync/write_tsconfig.js +195 -0
  30. package/src/core/sync/write_types/index.js +595 -0
  31. package/src/core/utils.js +70 -0
  32. package/src/exports/hooks/index.js +1 -0
  33. package/src/exports/hooks/sequence.js +44 -0
  34. package/src/exports/index.js +45 -0
  35. package/src/exports/node/index.js +145 -0
  36. package/src/exports/node/polyfills.js +40 -0
  37. package/src/exports/vite/build/build_server.js +349 -0
  38. package/src/exports/vite/build/build_service_worker.js +90 -0
  39. package/src/exports/vite/build/utils.js +160 -0
  40. package/src/exports/vite/dev/index.js +543 -0
  41. package/src/exports/vite/index.js +595 -0
  42. package/src/exports/vite/preview/index.js +186 -0
  43. package/src/exports/vite/types.d.ts +3 -0
  44. package/src/exports/vite/utils.js +345 -0
  45. package/src/runtime/app/env.js +1 -0
  46. package/src/runtime/app/environment.js +11 -0
  47. package/src/runtime/app/navigation.js +22 -0
  48. package/src/runtime/app/paths.js +1 -0
  49. package/src/runtime/app/stores.js +102 -0
  50. package/src/runtime/client/ambient.d.ts +24 -0
  51. package/src/runtime/client/client.js +1387 -0
  52. package/src/runtime/client/fetcher.js +60 -0
  53. package/src/runtime/client/parse.js +60 -0
  54. package/src/runtime/client/singletons.js +21 -0
  55. package/src/runtime/client/start.js +45 -0
  56. package/src/runtime/client/types.d.ts +88 -0
  57. package/src/runtime/client/utils.js +140 -0
  58. package/src/runtime/components/error.svelte +16 -0
  59. package/{assets → src/runtime}/components/layout.svelte +0 -0
  60. package/src/runtime/control.js +33 -0
  61. package/src/runtime/env/dynamic/private.js +1 -0
  62. package/src/runtime/env/dynamic/public.js +1 -0
  63. package/src/runtime/env-private.js +6 -0
  64. package/src/runtime/env-public.js +6 -0
  65. package/src/runtime/env.js +6 -0
  66. package/src/runtime/hash.js +16 -0
  67. package/src/runtime/paths.js +11 -0
  68. package/src/runtime/server/data/index.js +146 -0
  69. package/src/runtime/server/endpoint.js +63 -0
  70. package/src/runtime/server/index.js +339 -0
  71. package/src/runtime/server/page/cookie.js +25 -0
  72. package/src/runtime/server/page/crypto.js +239 -0
  73. package/src/runtime/server/page/csp.js +249 -0
  74. package/src/runtime/server/page/fetch.js +269 -0
  75. package/src/runtime/server/page/index.js +404 -0
  76. package/src/runtime/server/page/load_data.js +124 -0
  77. package/src/runtime/server/page/render.js +358 -0
  78. package/src/runtime/server/page/respond_with_error.js +92 -0
  79. package/src/runtime/server/page/serialize_data.js +58 -0
  80. package/src/runtime/server/page/types.d.ts +44 -0
  81. package/src/runtime/server/utils.js +209 -0
  82. package/src/utils/array.js +9 -0
  83. package/src/utils/error.js +22 -0
  84. package/src/utils/escape.js +46 -0
  85. package/src/utils/filesystem.js +108 -0
  86. package/src/utils/functions.js +16 -0
  87. package/src/utils/http.js +55 -0
  88. package/src/utils/misc.js +1 -0
  89. package/src/utils/routing.js +137 -0
  90. package/src/utils/url.js +142 -0
  91. package/svelte-kit.js +1 -1
  92. package/types/ambient.d.ts +332 -0
  93. package/types/index.d.ts +343 -0
  94. package/types/internal.d.ts +383 -0
  95. package/types/private.d.ts +213 -0
  96. package/CHANGELOG.md +0 -456
  97. package/assets/components/error.svelte +0 -13
  98. package/assets/runtime/app/env.js +0 -5
  99. package/assets/runtime/app/navigation.js +0 -44
  100. package/assets/runtime/app/paths.js +0 -1
  101. package/assets/runtime/app/stores.js +0 -93
  102. package/assets/runtime/chunks/utils.js +0 -22
  103. package/assets/runtime/internal/singletons.js +0 -23
  104. package/assets/runtime/internal/start.js +0 -771
  105. package/assets/runtime/paths.js +0 -12
  106. package/dist/chunks/index.js +0 -3522
  107. package/dist/chunks/index2.js +0 -587
  108. package/dist/chunks/index3.js +0 -246
  109. package/dist/chunks/index4.js +0 -539
  110. package/dist/chunks/index5.js +0 -763
  111. package/dist/chunks/index6.js +0 -322
  112. package/dist/chunks/standard.js +0 -99
  113. package/dist/chunks/utils.js +0 -83
  114. package/dist/cli.js +0 -546
  115. package/dist/ssr.js +0 -2581
@@ -0,0 +1,213 @@
1
+ // This module contains types that are visible in the documentation,
2
+ // but which cannot be imported from `@sveltejs/kit`. Care should
3
+ // be taken to avoid breaking changes when editing this file
4
+
5
+ export interface AdapterEntry {
6
+ /**
7
+ * A string that uniquely identifies an HTTP service (e.g. serverless function) and is used for deduplication.
8
+ * For example, `/foo/a-[b]` and `/foo/[c]` are different routes, but would both
9
+ * be represented in a Netlify _redirects file as `/foo/:param`, so they share an ID
10
+ */
11
+ id: string;
12
+
13
+ /**
14
+ * A function that compares the candidate route with the current route to determine
15
+ * if it should be treated as a fallback for the current route. For example, `/foo/[c]`
16
+ * is a fallback for `/foo/a-[b]`, and `/[...catchall]` is a fallback for all routes
17
+ */
18
+ filter: (route: RouteDefinition) => boolean;
19
+
20
+ /**
21
+ * A function that is invoked once the entry has been created. This is where you
22
+ * should write the function to the filesystem and generate redirect manifests.
23
+ */
24
+ complete: (entry: {
25
+ generateManifest: (opts: { relativePath: string; format?: 'esm' | 'cjs' }) => string;
26
+ }) => MaybePromise<void>;
27
+ }
28
+
29
+ // Based on https://github.com/josh-hemphill/csp-typed-directives/blob/latest/src/csp.types.ts
30
+ //
31
+ // MIT License
32
+ //
33
+ // Copyright (c) 2021-present, Joshua Hemphill
34
+ // Copyright (c) 2021, Tecnico Corporation
35
+ //
36
+ // Permission is hereby granted, free of charge, to any person obtaining a copy
37
+ // of this software and associated documentation files (the "Software"), to deal
38
+ // in the Software without restriction, including without limitation the rights
39
+ // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
40
+ // copies of the Software, and to permit persons to whom the Software is
41
+ // furnished to do so, subject to the following conditions:
42
+ //
43
+ // The above copyright notice and this permission notice shall be included in all
44
+ // copies or substantial portions of the Software.
45
+ //
46
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
47
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48
+ // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
49
+ // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
50
+ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
51
+ // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
52
+ // SOFTWARE.
53
+
54
+ export namespace Csp {
55
+ type ActionSource = 'strict-dynamic' | 'report-sample';
56
+ type BaseSource = 'self' | 'unsafe-eval' | 'unsafe-hashes' | 'unsafe-inline' | 'none';
57
+ type CryptoSource = `${'nonce' | 'sha256' | 'sha384' | 'sha512'}-${string}`;
58
+ type FrameSource = HostSource | SchemeSource | 'self' | 'none';
59
+ type HostNameScheme = `${string}.${string}` | 'localhost';
60
+ type HostSource = `${HostProtocolSchemes}${HostNameScheme}${PortScheme}`;
61
+ type HostProtocolSchemes = `${string}://` | '';
62
+ type HttpDelineator = '/' | '?' | '#' | '\\';
63
+ type PortScheme = `:${number}` | '' | ':*';
64
+ type SchemeSource = 'http:' | 'https:' | 'data:' | 'mediastream:' | 'blob:' | 'filesystem:';
65
+ type Source = HostSource | SchemeSource | CryptoSource | BaseSource;
66
+ type Sources = Source[];
67
+ type UriPath = `${HttpDelineator}${string}`;
68
+ }
69
+
70
+ export interface CspDirectives {
71
+ 'child-src'?: Csp.Sources;
72
+ 'default-src'?: Array<Csp.Source | Csp.ActionSource>;
73
+ 'frame-src'?: Csp.Sources;
74
+ 'worker-src'?: Csp.Sources;
75
+ 'connect-src'?: Csp.Sources;
76
+ 'font-src'?: Csp.Sources;
77
+ 'img-src'?: Csp.Sources;
78
+ 'manifest-src'?: Csp.Sources;
79
+ 'media-src'?: Csp.Sources;
80
+ 'object-src'?: Csp.Sources;
81
+ 'prefetch-src'?: Csp.Sources;
82
+ 'script-src'?: Array<Csp.Source | Csp.ActionSource>;
83
+ 'script-src-elem'?: Csp.Sources;
84
+ 'script-src-attr'?: Csp.Sources;
85
+ 'style-src'?: Array<Csp.Source | Csp.ActionSource>;
86
+ 'style-src-elem'?: Csp.Sources;
87
+ 'style-src-attr'?: Csp.Sources;
88
+ 'base-uri'?: Array<Csp.Source | Csp.ActionSource>;
89
+ sandbox?: Array<
90
+ | 'allow-downloads-without-user-activation'
91
+ | 'allow-forms'
92
+ | 'allow-modals'
93
+ | 'allow-orientation-lock'
94
+ | 'allow-pointer-lock'
95
+ | 'allow-popups'
96
+ | 'allow-popups-to-escape-sandbox'
97
+ | 'allow-presentation'
98
+ | 'allow-same-origin'
99
+ | 'allow-scripts'
100
+ | 'allow-storage-access-by-user-activation'
101
+ | 'allow-top-navigation'
102
+ | 'allow-top-navigation-by-user-activation'
103
+ >;
104
+ 'form-action'?: Array<Csp.Source | Csp.ActionSource>;
105
+ 'frame-ancestors'?: Array<Csp.HostSource | Csp.SchemeSource | Csp.FrameSource>;
106
+ 'navigate-to'?: Array<Csp.Source | Csp.ActionSource>;
107
+ 'report-uri'?: Csp.UriPath[];
108
+ 'report-to'?: string[];
109
+
110
+ 'require-trusted-types-for'?: Array<'script'>;
111
+ 'trusted-types'?: Array<'none' | 'allow-duplicates' | '*' | string>;
112
+ 'upgrade-insecure-requests'?: boolean;
113
+
114
+ /** @deprecated */
115
+ 'require-sri-for'?: Array<'script' | 'style' | 'script style'>;
116
+
117
+ /** @deprecated */
118
+ 'block-all-mixed-content'?: boolean;
119
+
120
+ /** @deprecated */
121
+ 'plugin-types'?: Array<`${string}/${string}` | 'none'>;
122
+
123
+ /** @deprecated */
124
+ referrer?: Array<
125
+ | 'no-referrer'
126
+ | 'no-referrer-when-downgrade'
127
+ | 'origin'
128
+ | 'origin-when-cross-origin'
129
+ | 'same-origin'
130
+ | 'strict-origin'
131
+ | 'strict-origin-when-cross-origin'
132
+ | 'unsafe-url'
133
+ | 'none'
134
+ >;
135
+ }
136
+
137
+ export type HttpMethod = 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
138
+
139
+ export interface Logger {
140
+ (msg: string): void;
141
+ success(msg: string): void;
142
+ error(msg: string): void;
143
+ warn(msg: string): void;
144
+ minor(msg: string): void;
145
+ info(msg: string): void;
146
+ }
147
+
148
+ export type MaybePromise<T> = T | Promise<T>;
149
+
150
+ export interface Prerendered {
151
+ pages: Map<
152
+ string,
153
+ {
154
+ /** The location of the .html file relative to the output directory */
155
+ file: string;
156
+ }
157
+ >;
158
+ assets: Map<
159
+ string,
160
+ {
161
+ /** The MIME type of the asset */
162
+ type: string;
163
+ }
164
+ >;
165
+ redirects: Map<
166
+ string,
167
+ {
168
+ status: number;
169
+ location: string;
170
+ }
171
+ >;
172
+ /** An array of prerendered paths (without trailing slashes, regardless of the trailingSlash config) */
173
+ paths: string[];
174
+ }
175
+
176
+ export interface PrerenderErrorHandler {
177
+ (details: {
178
+ status: number;
179
+ path: string;
180
+ referrer: string | null;
181
+ referenceType: 'linked' | 'fetched';
182
+ }): void;
183
+ }
184
+
185
+ export type PrerenderOnErrorValue = 'fail' | 'continue' | PrerenderErrorHandler;
186
+
187
+ export type PrerenderOption = boolean | 'auto';
188
+
189
+ export type PrerenderMap = Map<string, PrerenderOption>;
190
+
191
+ export interface RequestOptions {
192
+ getClientAddress: () => string;
193
+ platform?: App.Platform;
194
+ }
195
+
196
+ /** `string[]` is only for set-cookie, everything else must be type of `string` */
197
+ export type ResponseHeaders = Record<string, string | number | string[] | null>;
198
+
199
+ export interface RouteDefinition {
200
+ id: string;
201
+ type: 'page' | 'endpoint';
202
+ pattern: RegExp;
203
+ segments: RouteSegment[];
204
+ methods: HttpMethod[];
205
+ }
206
+
207
+ export interface RouteSegment {
208
+ content: string;
209
+ dynamic: boolean;
210
+ rest: boolean;
211
+ }
212
+
213
+ export type TrailingSlash = 'never' | 'always' | 'ignore';
package/CHANGELOG.md DELETED
@@ -1,456 +0,0 @@
1
- # @sveltejs/kit
2
-
3
- ## 1.0.0-next.46
4
-
5
- ### Patch Changes
6
-
7
- - f35a5cd: Change adapter signature
8
-
9
- ## 1.0.0-next.45
10
-
11
- ### Minor Changes
12
-
13
- - 925638a: Remove endpoints from the files built for the client
14
-
15
- ### Patch Changes
16
-
17
- - c3cf3f3: Bump deps
18
- - 625747d: kit: bundle @sveltejs/kit into built application
19
- - Updated dependencies [c3cf3f3]
20
- - @sveltejs/vite-plugin-svelte@1.0.0-next.3
21
-
22
- ## 1.0.0-next.44
23
-
24
- ### Patch Changes
25
-
26
- - e6449d2: Fix AMP styles for real
27
-
28
- ## 1.0.0-next.43
29
-
30
- ### Patch Changes
31
-
32
- - 672e9be: Fix AMP styles, again
33
-
34
- ## 1.0.0-next.42
35
-
36
- ### Patch Changes
37
-
38
- - 0f54ebc: Fix AMP styles
39
-
40
- ## 1.0.0-next.41
41
-
42
- ### Patch Changes
43
-
44
- - 4aa5a73: Future-proof prepare argument
45
- - 58dc400: Call correct set_paths function
46
- - 2322291: Update to node-fetch@3
47
-
48
- ## 1.0.0-next.40
49
-
50
- ### Patch Changes
51
-
52
- - 4c5fd3c: Include layout/error styles in SSR
53
-
54
- ## 1.0.0-next.39
55
-
56
- ### Patch Changes
57
-
58
- - b7fdb0d: Skip pre-bundling
59
-
60
- ## 1.0.0-next.38
61
-
62
- ### Patch Changes
63
-
64
- - 15402b1: Add service worker support
65
- - 0c630b5: Ignore dynamically imported components when constructing styles in dev mode
66
- - ac06af5: Fix svelte-kit adapt for Windows
67
- - 061fa46: Implement improved redirect API
68
- - b800049: Include type declarations
69
- - 07c6de4: Use posix paths in manifest even on Windows
70
- - 27ba872: Error if preload function exists
71
- - 0c630b5: Add default paths in case singletons module is invalidated
72
- - 73dd998: Allow custom extensions
73
-
74
- ## 1.0.0-next.37
75
-
76
- ### Patch Changes
77
-
78
- - 230c6d9: Indicate which request failed, if fetch fails inside load function
79
- - f1bc218: Run adapt via svelte-kit build
80
- - 6850ddc: Fix svelte-kit start for Windows
81
-
82
- ## 1.0.0-next.36
83
-
84
- ### Patch Changes
85
-
86
- - 7b70a33: Force version bump so that Kit uses updated vite-plugin-svelte
87
-
88
- ## 1.0.0-next.35
89
-
90
- ### Patch Changes
91
-
92
- - Use Vite
93
- - Fix Windows issues
94
- - Preserve load context during navigation
95
- - Return error from load
96
-
97
- ## 1.0.0-next.34
98
-
99
- ### Patch Changes
100
-
101
- - Fix adapters and convert to ES modules
102
-
103
- ## 1.0.0-next.33
104
-
105
- ### Patch Changes
106
-
107
- - 474070e: Better errors when modules cannot be found
108
-
109
- ## 1.0.0-next.32
110
-
111
- ### Patch Changes
112
-
113
- - Convert everything to ESM
114
-
115
- ## 1.0.0-next.31
116
-
117
- ### Patch Changes
118
-
119
- - b6c2434: app.js -> app.cjs
120
-
121
- ## 1.0.0-next.30
122
-
123
- ### Patch Changes
124
-
125
- - 00cbaf6: Rename _.config.js to _.config.cjs
126
-
127
- ## 1.0.0-next.29
128
-
129
- ### Patch Changes
130
-
131
- - 4c0edce: Use addEventListener instead of onload
132
-
133
- ## 1.0.0-next.28
134
-
135
- ### Patch Changes
136
-
137
- - 4353025: Prevent infinite loop when fetching bad URLs inside error responses
138
- - 2860065: Handle assets path when prerendering
139
-
140
- ## 1.0.0-next.27
141
-
142
- ### Patch Changes
143
-
144
- - Fail build if prerender errors
145
- - Hide logging behind --verbose option
146
-
147
- ## 1.0.0-next.26
148
-
149
- ### Patch Changes
150
-
151
- - Fix svelte-announcer CSS
152
-
153
- ## 1.0.0-next.25
154
-
155
- ### Patch Changes
156
-
157
- - Surface stack traces for endpoint/page rendering errors
158
-
159
- ## 1.0.0-next.24
160
-
161
- ### Patch Changes
162
-
163
- - 26643df: Account for config.paths when prerendering
164
-
165
- ## 1.0.0-next.23
166
-
167
- ### Patch Changes
168
-
169
- - 9b758aa: Upgrade to Snowpack 3
170
-
171
- ## 1.0.0-next.22
172
-
173
- ### Patch Changes
174
-
175
- - bb68595: use readFileSync instead of createReadStream
176
-
177
- ## 1.0.0-next.21
178
-
179
- ### Patch Changes
180
-
181
- - 217e4cc: Set paths to empty string before prerender
182
-
183
- ## 1.0.0-next.20
184
-
185
- ### Patch Changes
186
-
187
- - ccf4aa7: Implement prerender config
188
-
189
- ## 1.0.0-next.19
190
-
191
- ### Patch Changes
192
-
193
- - deda984: Make navigating store contain from and to properties
194
-
195
- ## 1.0.0-next.18
196
-
197
- ### Patch Changes
198
-
199
- - c29b61e: Announce page changes
200
- - 72da270: Reset focus properly
201
-
202
- ## 1.0.0-next.17
203
-
204
- ### Patch Changes
205
-
206
- - f7dea55: Set process.env.NODE_ENV when invoking via the CLI
207
-
208
- ## 1.0.0-next.16
209
-
210
- ### Patch Changes
211
-
212
- - Remove temporary logging
213
- - Add sveltekit:prefetch and sveltekit:noscroll
214
-
215
- ## 1.0.0-next.15
216
-
217
- ### Patch Changes
218
-
219
- - 6d1bb11: Fix AMP CSS
220
- - d8b53af: Ignore $layout and $error files when finding static paths
221
- - Better scroll tracking
222
-
223
- ## 1.0.0-next.14
224
-
225
- ### Patch Changes
226
-
227
- - Fix dev loader
228
-
229
- ## 1.0.0-next.13
230
-
231
- ### Patch Changes
232
-
233
- - 1ea4d6b: More robust CSS extraction
234
-
235
- ## 1.0.0-next.12
236
-
237
- ### Patch Changes
238
-
239
- - e7c88dd: Tweak AMP validation screen
240
-
241
- ## 1.0.0-next.11
242
-
243
- ### Patch Changes
244
-
245
- - a31f218: Fix SSR loader invalidation
246
-
247
- ## 1.0.0-next.10
248
-
249
- ### Patch Changes
250
-
251
- - 8b14d29: Omit svelte-data scripts from AMP pages
252
-
253
- ## 1.0.0-next.9
254
-
255
- ### Patch Changes
256
-
257
- - f5fa223: AMP support
258
- - 47f2ee1: Always remove trailing slashes
259
- - 1becb94: Replace preload with load
260
-
261
- ## 1.0.0-next.8
262
-
263
- ### Patch Changes
264
-
265
- - 15dd751: Use meta http-equiv=refresh
266
- - be7e031: Fix handling of static files
267
- - ed6b8fd: Implement \$app/env
268
-
269
- ## 1.0.0-next.7
270
-
271
- ### Patch Changes
272
-
273
- - 76705b0: make HMR work outside localhost
274
-
275
- ## 1.0.0-next.6
276
-
277
- ### Patch Changes
278
-
279
- - 0e45255: Move options behind kit namespace, change paths -> kit.files
280
- - fa7f2b2: Implement live bindings for SSR code
281
-
282
- ## 1.0.0-next.5
283
-
284
- ### Patch Changes
285
-
286
- - Return dependencies from render
287
-
288
- ## 1.0.0-next.4
289
-
290
- ### Patch Changes
291
-
292
- - af01b0d: Move renderer out of app assets folder
293
-
294
- ## 1.0.0-next.3
295
-
296
- ### Patch Changes
297
-
298
- - Add paths to manifest, for static prerendering
299
-
300
- ## 1.0.0-next.2
301
-
302
- ### Patch Changes
303
-
304
- - Fix typo causing misnamed assets folder
305
-
306
- ## 1.0.0-next.1
307
-
308
- ### Patch Changes
309
-
310
- - a4bc090: Transform exported functions correctly
311
- - 00bbf98: Fix nested layouts
312
-
313
- ## 0.0.31-next.0
314
-
315
- ### Patch Changes
316
-
317
- - ffd7bba: Fix SSR cache invalidation
318
-
319
- ## 0.0.30
320
-
321
- ### Patch Changes
322
-
323
- - Add back stores(), but with deprecation warning
324
- - Rename stores.preloading to stores.navigating
325
- - Rewrite routing logic
326
-
327
- ## 0.0.29
328
-
329
- ### Patch Changes
330
-
331
- - 10872cc: Normalize request.query
332
-
333
- ## 0.0.28
334
-
335
- ### Patch Changes
336
-
337
- - Add svelte-kit start command
338
-
339
- ## 0.0.27
340
-
341
- ### Patch Changes
342
-
343
- - rename CLI to svelte-kit
344
- - 0904e22: rename svelte CLI to svelte-kit
345
- - Validate route responses
346
- - Make paths and target configurable
347
-
348
- ## 0.0.26
349
-
350
- ### Patch Changes
351
-
352
- - b475ed4: Overhaul adapter API - fixes #166
353
- - Updated dependencies [b475ed4]
354
- - @sveltejs/app-utils@0.0.18
355
-
356
- ## 0.0.25
357
-
358
- ### Patch Changes
359
-
360
- - Updated dependencies [3bdf33b]
361
- - @sveltejs/app-utils@0.0.17
362
-
363
- ## 0.0.24
364
-
365
- ### Patch Changes
366
-
367
- - 67eaeea: Move app-utils stuff into subpackages
368
- - 7f8df30: Move kit runtime code, expose via \$app aliases
369
- - Updated dependencies [67eaeea]
370
- - @sveltejs/app-utils@0.0.16
371
-
372
- ## 0.0.23
373
-
374
- ### Patch Changes
375
-
376
- - a163000: Parse body on incoming requests
377
- - a346eab: Copy over latest Sapper router code
378
- - Updated dependencies [a163000]
379
- - @sveltejs/app-utils@0.0.15
380
-
381
- ## 0.0.22
382
-
383
- ### Patch Changes
384
-
385
- - Force bump version
386
-
387
- ## 0.0.21
388
-
389
- ### Patch Changes
390
-
391
- - Build setup entry point
392
- - Work around pkg.exports constraint
393
- - Respond with 500s if render fails
394
- - Updated dependencies [undefined]
395
- - Updated dependencies [undefined]
396
- - Updated dependencies [undefined]
397
- - @sveltejs/app-utils@0.0.14
398
-
399
- ## 0.0.20
400
-
401
- ### Patch Changes
402
-
403
- - Pass setup module to renderer
404
- - Bump Snowpack version
405
- - Updated dependencies [undefined]
406
- - Updated dependencies [96c06d8]
407
- - @sveltejs/app-utils@0.0.13
408
-
409
- ## 0.0.19
410
-
411
- ### Patch Changes
412
-
413
- - fa9d7ce: Handle import.meta in SSR module loader
414
- - 0320208: Rename 'server route' to 'endpoint'
415
- - b9444d2: Update to Snowpack 2.15
416
- - 5ca907c: Use shared mkdirp helper
417
- - Updated dependencies [0320208]
418
- - Updated dependencies [5ca907c]
419
- - @sveltejs/app-utils@0.0.12
420
-
421
- ## 0.0.18
422
-
423
- ### Patch Changes
424
-
425
- - Updated dependencies [undefined]
426
- - @sveltejs/app-utils@0.0.11
427
-
428
- ## 0.0.17
429
-
430
- ### Patch Changes
431
-
432
- - 19323e9: Update Snowpack
433
- - Updated dependencies [19323e9]
434
- - @sveltejs/app-utils@0.0.10
435
-
436
- ## 0.0.16
437
-
438
- ### Patch Changes
439
-
440
- - Updated dependencies [90a98ae]
441
- - @sveltejs/app-utils@0.0.9
442
-
443
- ## 0.0.15
444
-
445
- ### Patch Changes
446
-
447
- - Updated dependencies [undefined]
448
- - @sveltejs/app-utils@0.0.8
449
-
450
- ## 0.0.14
451
-
452
- ### Patch Changes
453
-
454
- - various
455
- - Updated dependencies [undefined]
456
- - @sveltejs/app-utils@0.0.7
@@ -1,13 +0,0 @@
1
- <script>
2
- export let status;
3
- export let error;
4
- </script>
5
-
6
- <h1>{status}</h1>
7
-
8
- <p>{error.message}</p>
9
-
10
- <!-- TODO figure out what to do with stacktraces in prod -->
11
- {#if error.stack}
12
- <pre>{error.stack}</pre>
13
- {/if}
@@ -1,5 +0,0 @@
1
- const browser = !import.meta.env.SSR;
2
- const dev = !!import.meta.env.DEV;
3
- const amp = !!import.meta.env.VITE_SVELTEKIT_AMP;
4
-
5
- export { amp, browser, dev };