@sveltejs/kit 1.0.0-next.31 → 1.0.0-next.310
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/README.md +12 -9
- package/assets/app/env.js +20 -0
- package/assets/app/navigation.js +24 -0
- package/assets/app/paths.js +1 -0
- package/assets/app/stores.js +97 -0
- package/assets/client/singletons.js +13 -0
- package/assets/client/start.js +1655 -0
- package/assets/components/error.svelte +18 -2
- package/assets/env.js +8 -0
- package/assets/paths.js +13 -0
- package/assets/server/index.js +2862 -0
- package/dist/chunks/amp_hook.js +56 -0
- package/dist/chunks/cert.js +28154 -0
- package/dist/chunks/constants.js +663 -0
- package/dist/chunks/filesystem.js +110 -0
- package/dist/chunks/index.js +515 -0
- package/dist/chunks/index2.js +1326 -0
- package/dist/chunks/index3.js +118 -0
- package/dist/chunks/index4.js +185 -0
- package/dist/chunks/index5.js +251 -0
- package/dist/chunks/index6.js +15585 -0
- package/dist/chunks/index7.js +4207 -0
- package/dist/chunks/misc.js +78 -0
- package/dist/chunks/multipart-parser.js +449 -0
- package/dist/chunks/object.js +83 -0
- package/dist/chunks/sync.js +983 -0
- package/dist/chunks/url.js +56 -0
- package/dist/cli.js +1023 -91
- package/dist/hooks.js +28 -0
- package/dist/install-fetch.js +6518 -0
- package/dist/node.js +94 -0
- package/package.json +92 -54
- package/svelte-kit.js +2 -0
- package/types/ambient.d.ts +298 -0
- package/types/index.d.ts +258 -0
- package/types/internal.d.ts +314 -0
- package/types/private.d.ts +269 -0
- package/CHANGELOG.md +0 -344
- package/assets/runtime/app/navigation.js +0 -23
- package/assets/runtime/app/navigation.js.map +0 -1
- package/assets/runtime/app/paths.js +0 -2
- package/assets/runtime/app/paths.js.map +0 -1
- package/assets/runtime/app/stores.js +0 -78
- package/assets/runtime/app/stores.js.map +0 -1
- package/assets/runtime/internal/singletons.js +0 -15
- package/assets/runtime/internal/singletons.js.map +0 -1
- package/assets/runtime/internal/start.js +0 -591
- package/assets/runtime/internal/start.js.map +0 -1
- package/assets/runtime/utils-85ebcc60.js +0 -18
- package/assets/runtime/utils-85ebcc60.js.map +0 -1
- package/dist/api.js +0 -44
- package/dist/api.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/create_app.js +0 -580
- package/dist/create_app.js.map +0 -1
- package/dist/index.js +0 -375
- package/dist/index.js.map +0 -1
- package/dist/index2.js +0 -12205
- package/dist/index2.js.map +0 -1
- package/dist/index3.js +0 -549
- package/dist/index3.js.map +0 -1
- package/dist/index4.js +0 -74
- package/dist/index4.js.map +0 -1
- package/dist/index5.js +0 -468
- package/dist/index5.js.map +0 -1
- package/dist/index6.js +0 -735
- package/dist/index6.js.map +0 -1
- package/dist/renderer.js +0 -2425
- package/dist/renderer.js.map +0 -1
- package/dist/standard.js +0 -103
- package/dist/standard.js.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/utils.js.map +0 -1
- package/svelte-kit +0 -3
|
@@ -0,0 +1,269 @@
|
|
|
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
|
+
}) => 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 interface ErrorLoadInput<Params extends Record<string, string> = Record<string, string>>
|
|
138
|
+
extends LoadInput<Params> {
|
|
139
|
+
status?: number;
|
|
140
|
+
error?: Error;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type HttpMethod = 'get' | 'head' | 'post' | 'put' | 'delete' | 'patch';
|
|
144
|
+
|
|
145
|
+
export interface JSONObject {
|
|
146
|
+
[key: string]: JSONValue;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type JSONValue =
|
|
150
|
+
| string
|
|
151
|
+
| number
|
|
152
|
+
| boolean
|
|
153
|
+
| null
|
|
154
|
+
| undefined
|
|
155
|
+
| ToJSON
|
|
156
|
+
| JSONValue[]
|
|
157
|
+
| JSONObject;
|
|
158
|
+
|
|
159
|
+
export interface LoadInput<
|
|
160
|
+
Params extends Record<string, string> = Record<string, string>,
|
|
161
|
+
Props extends Record<string, any> = Record<string, any>
|
|
162
|
+
> {
|
|
163
|
+
fetch(info: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
164
|
+
params: Params;
|
|
165
|
+
props: Props;
|
|
166
|
+
routeId: string | null;
|
|
167
|
+
session: App.Session;
|
|
168
|
+
stuff: Partial<App.Stuff>;
|
|
169
|
+
url: URL;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface LoadOutput<Props extends Record<string, any> = Record<string, any>> {
|
|
173
|
+
status?: number;
|
|
174
|
+
error?: string | Error;
|
|
175
|
+
redirect?: string;
|
|
176
|
+
props?: Props;
|
|
177
|
+
stuff?: Partial<App.Stuff>;
|
|
178
|
+
maxage?: number;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface Logger {
|
|
182
|
+
(msg: string): void;
|
|
183
|
+
success(msg: string): void;
|
|
184
|
+
error(msg: string): void;
|
|
185
|
+
warn(msg: string): void;
|
|
186
|
+
minor(msg: string): void;
|
|
187
|
+
info(msg: string): void;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
191
|
+
|
|
192
|
+
export interface Prerendered {
|
|
193
|
+
pages: Map<
|
|
194
|
+
string,
|
|
195
|
+
{
|
|
196
|
+
/** The location of the .html file relative to the output directory */
|
|
197
|
+
file: string;
|
|
198
|
+
}
|
|
199
|
+
>;
|
|
200
|
+
assets: Map<
|
|
201
|
+
string,
|
|
202
|
+
{
|
|
203
|
+
/** The MIME type of the asset */
|
|
204
|
+
type: string;
|
|
205
|
+
}
|
|
206
|
+
>;
|
|
207
|
+
redirects: Map<
|
|
208
|
+
string,
|
|
209
|
+
{
|
|
210
|
+
status: number;
|
|
211
|
+
location: string;
|
|
212
|
+
}
|
|
213
|
+
>;
|
|
214
|
+
/** An array of prerendered paths (without trailing slashes, regardless of the trailingSlash config) */
|
|
215
|
+
paths: string[];
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export interface PrerenderErrorHandler {
|
|
219
|
+
(details: {
|
|
220
|
+
status: number;
|
|
221
|
+
path: string;
|
|
222
|
+
referrer: string | null;
|
|
223
|
+
referenceType: 'linked' | 'fetched';
|
|
224
|
+
}): void;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export type PrerenderOnErrorValue = 'fail' | 'continue' | PrerenderErrorHandler;
|
|
228
|
+
|
|
229
|
+
export interface RequestEvent<Params extends Record<string, string> = Record<string, string>> {
|
|
230
|
+
clientAddress: string;
|
|
231
|
+
locals: App.Locals;
|
|
232
|
+
params: Params;
|
|
233
|
+
platform: Readonly<App.Platform>;
|
|
234
|
+
request: Request;
|
|
235
|
+
routeId: string | null;
|
|
236
|
+
url: URL;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface RequestOptions {
|
|
240
|
+
getClientAddress: () => string;
|
|
241
|
+
platform?: App.Platform;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface ResolveOptions {
|
|
245
|
+
ssr?: boolean;
|
|
246
|
+
transformPage?: ({ html }: { html: string }) => MaybePromise<string>;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/** `string[]` is only for set-cookie, everything else must be type of `string` */
|
|
250
|
+
export type ResponseHeaders = Record<string, string | number | string[]>;
|
|
251
|
+
|
|
252
|
+
export interface RouteDefinition {
|
|
253
|
+
type: 'page' | 'endpoint';
|
|
254
|
+
pattern: RegExp;
|
|
255
|
+
segments: RouteSegment[];
|
|
256
|
+
methods: HttpMethod[];
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface RouteSegment {
|
|
260
|
+
content: string;
|
|
261
|
+
dynamic: boolean;
|
|
262
|
+
rest: boolean;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
export interface ToJSON {
|
|
266
|
+
toJSON(...args: any[]): Exclude<JSONValue, ToJSON>;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type TrailingSlash = 'never' | 'always' | 'ignore';
|
package/CHANGELOG.md
DELETED
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
# @sveltejs/kit
|
|
2
|
-
|
|
3
|
-
## 1.0.0-next.31
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- b6c2434: app.js -> app.cjs
|
|
8
|
-
|
|
9
|
-
## 1.0.0-next.30
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 00cbaf6: Rename _.config.js to _.config.cjs
|
|
14
|
-
|
|
15
|
-
## 1.0.0-next.29
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- 4c0edce: Use addEventListener instead of onload
|
|
20
|
-
|
|
21
|
-
## 1.0.0-next.28
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 4353025: Prevent infinite loop when fetching bad URLs inside error responses
|
|
26
|
-
- 2860065: Handle assets path when prerendering
|
|
27
|
-
|
|
28
|
-
## 1.0.0-next.27
|
|
29
|
-
|
|
30
|
-
### Patch Changes
|
|
31
|
-
|
|
32
|
-
- Fail build if prerender errors
|
|
33
|
-
- Hide logging behind --verbose option
|
|
34
|
-
|
|
35
|
-
## 1.0.0-next.26
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- Fix svelte-announcer CSS
|
|
40
|
-
|
|
41
|
-
## 1.0.0-next.25
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- Surface stack traces for endpoint/page rendering errors
|
|
46
|
-
|
|
47
|
-
## 1.0.0-next.24
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- 26643df: Account for config.paths when prerendering
|
|
52
|
-
|
|
53
|
-
## 1.0.0-next.23
|
|
54
|
-
|
|
55
|
-
### Patch Changes
|
|
56
|
-
|
|
57
|
-
- 9b758aa: Upgrade to Snowpack 3
|
|
58
|
-
|
|
59
|
-
## 1.0.0-next.22
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- bb68595: use readFileSync instead of createReadStream
|
|
64
|
-
|
|
65
|
-
## 1.0.0-next.21
|
|
66
|
-
|
|
67
|
-
### Patch Changes
|
|
68
|
-
|
|
69
|
-
- 217e4cc: Set paths to empty string before prerender
|
|
70
|
-
|
|
71
|
-
## 1.0.0-next.20
|
|
72
|
-
|
|
73
|
-
### Patch Changes
|
|
74
|
-
|
|
75
|
-
- ccf4aa7: Implement prerender config
|
|
76
|
-
|
|
77
|
-
## 1.0.0-next.19
|
|
78
|
-
|
|
79
|
-
### Patch Changes
|
|
80
|
-
|
|
81
|
-
- deda984: Make navigating store contain from and to properties
|
|
82
|
-
|
|
83
|
-
## 1.0.0-next.18
|
|
84
|
-
|
|
85
|
-
### Patch Changes
|
|
86
|
-
|
|
87
|
-
- c29b61e: Announce page changes
|
|
88
|
-
- 72da270: Reset focus properly
|
|
89
|
-
|
|
90
|
-
## 1.0.0-next.17
|
|
91
|
-
|
|
92
|
-
### Patch Changes
|
|
93
|
-
|
|
94
|
-
- f7dea55: Set process.env.NODE_ENV when invoking via the CLI
|
|
95
|
-
|
|
96
|
-
## 1.0.0-next.16
|
|
97
|
-
|
|
98
|
-
### Patch Changes
|
|
99
|
-
|
|
100
|
-
- Remove temporary logging
|
|
101
|
-
- Add sveltekit:prefetch and sveltekit:noscroll
|
|
102
|
-
|
|
103
|
-
## 1.0.0-next.15
|
|
104
|
-
|
|
105
|
-
### Patch Changes
|
|
106
|
-
|
|
107
|
-
- 6d1bb11: Fix AMP CSS
|
|
108
|
-
- d8b53af: Ignore $layout and $error files when finding static paths
|
|
109
|
-
- Better scroll tracking
|
|
110
|
-
|
|
111
|
-
## 1.0.0-next.14
|
|
112
|
-
|
|
113
|
-
### Patch Changes
|
|
114
|
-
|
|
115
|
-
- Fix dev loader
|
|
116
|
-
|
|
117
|
-
## 1.0.0-next.13
|
|
118
|
-
|
|
119
|
-
### Patch Changes
|
|
120
|
-
|
|
121
|
-
- 1ea4d6b: More robust CSS extraction
|
|
122
|
-
|
|
123
|
-
## 1.0.0-next.12
|
|
124
|
-
|
|
125
|
-
### Patch Changes
|
|
126
|
-
|
|
127
|
-
- e7c88dd: Tweak AMP validation screen
|
|
128
|
-
|
|
129
|
-
## 1.0.0-next.11
|
|
130
|
-
|
|
131
|
-
### Patch Changes
|
|
132
|
-
|
|
133
|
-
- a31f218: Fix SSR loader invalidation
|
|
134
|
-
|
|
135
|
-
## 1.0.0-next.10
|
|
136
|
-
|
|
137
|
-
### Patch Changes
|
|
138
|
-
|
|
139
|
-
- 8b14d29: Omit svelte-data scripts from AMP pages
|
|
140
|
-
|
|
141
|
-
## 1.0.0-next.9
|
|
142
|
-
|
|
143
|
-
### Patch Changes
|
|
144
|
-
|
|
145
|
-
- f5fa223: AMP support
|
|
146
|
-
- 47f2ee1: Always remove trailing slashes
|
|
147
|
-
- 1becb94: Replace preload with load
|
|
148
|
-
|
|
149
|
-
## 1.0.0-next.8
|
|
150
|
-
|
|
151
|
-
### Patch Changes
|
|
152
|
-
|
|
153
|
-
- 15dd751: Use meta http-equiv=refresh
|
|
154
|
-
- be7e031: Fix handling of static files
|
|
155
|
-
- ed6b8fd: Implement \$app/env
|
|
156
|
-
|
|
157
|
-
## 1.0.0-next.7
|
|
158
|
-
|
|
159
|
-
### Patch Changes
|
|
160
|
-
|
|
161
|
-
- 76705b0: make HMR work outside localhost
|
|
162
|
-
|
|
163
|
-
## 1.0.0-next.6
|
|
164
|
-
|
|
165
|
-
### Patch Changes
|
|
166
|
-
|
|
167
|
-
- 0e45255: Move options behind kit namespace, change paths -> kit.files
|
|
168
|
-
- fa7f2b2: Implement live bindings for SSR code
|
|
169
|
-
|
|
170
|
-
## 1.0.0-next.5
|
|
171
|
-
|
|
172
|
-
### Patch Changes
|
|
173
|
-
|
|
174
|
-
- Return dependencies from render
|
|
175
|
-
|
|
176
|
-
## 1.0.0-next.4
|
|
177
|
-
|
|
178
|
-
### Patch Changes
|
|
179
|
-
|
|
180
|
-
- af01b0d: Move renderer out of app assets folder
|
|
181
|
-
|
|
182
|
-
## 1.0.0-next.3
|
|
183
|
-
|
|
184
|
-
### Patch Changes
|
|
185
|
-
|
|
186
|
-
- Add paths to manifest, for static prerendering
|
|
187
|
-
|
|
188
|
-
## 1.0.0-next.2
|
|
189
|
-
|
|
190
|
-
### Patch Changes
|
|
191
|
-
|
|
192
|
-
- Fix typo causing misnamed assets folder
|
|
193
|
-
|
|
194
|
-
## 1.0.0-next.1
|
|
195
|
-
|
|
196
|
-
### Patch Changes
|
|
197
|
-
|
|
198
|
-
- a4bc090: Transform exported functions correctly
|
|
199
|
-
- 00bbf98: Fix nested layouts
|
|
200
|
-
|
|
201
|
-
## 0.0.31-next.0
|
|
202
|
-
|
|
203
|
-
### Patch Changes
|
|
204
|
-
|
|
205
|
-
- ffd7bba: Fix SSR cache invalidation
|
|
206
|
-
|
|
207
|
-
## 0.0.30
|
|
208
|
-
|
|
209
|
-
### Patch Changes
|
|
210
|
-
|
|
211
|
-
- Add back stores(), but with deprecation warning
|
|
212
|
-
- Rename stores.preloading to stores.navigating
|
|
213
|
-
- Rewrite routing logic
|
|
214
|
-
|
|
215
|
-
## 0.0.29
|
|
216
|
-
|
|
217
|
-
### Patch Changes
|
|
218
|
-
|
|
219
|
-
- 10872cc: Normalize request.query
|
|
220
|
-
|
|
221
|
-
## 0.0.28
|
|
222
|
-
|
|
223
|
-
### Patch Changes
|
|
224
|
-
|
|
225
|
-
- Add svelte-kit start command
|
|
226
|
-
|
|
227
|
-
## 0.0.27
|
|
228
|
-
|
|
229
|
-
### Patch Changes
|
|
230
|
-
|
|
231
|
-
- rename CLI to svelte-kit
|
|
232
|
-
- 0904e22: rename svelte CLI to svelte-kit
|
|
233
|
-
- Validate route responses
|
|
234
|
-
- Make paths and target configurable
|
|
235
|
-
|
|
236
|
-
## 0.0.26
|
|
237
|
-
|
|
238
|
-
### Patch Changes
|
|
239
|
-
|
|
240
|
-
- b475ed4: Overhaul adapter API - fixes #166
|
|
241
|
-
- Updated dependencies [b475ed4]
|
|
242
|
-
- @sveltejs/app-utils@0.0.18
|
|
243
|
-
|
|
244
|
-
## 0.0.25
|
|
245
|
-
|
|
246
|
-
### Patch Changes
|
|
247
|
-
|
|
248
|
-
- Updated dependencies [3bdf33b]
|
|
249
|
-
- @sveltejs/app-utils@0.0.17
|
|
250
|
-
|
|
251
|
-
## 0.0.24
|
|
252
|
-
|
|
253
|
-
### Patch Changes
|
|
254
|
-
|
|
255
|
-
- 67eaeea: Move app-utils stuff into subpackages
|
|
256
|
-
- 7f8df30: Move kit runtime code, expose via \$app aliases
|
|
257
|
-
- Updated dependencies [67eaeea]
|
|
258
|
-
- @sveltejs/app-utils@0.0.16
|
|
259
|
-
|
|
260
|
-
## 0.0.23
|
|
261
|
-
|
|
262
|
-
### Patch Changes
|
|
263
|
-
|
|
264
|
-
- a163000: Parse body on incoming requests
|
|
265
|
-
- a346eab: Copy over latest Sapper router code
|
|
266
|
-
- Updated dependencies [a163000]
|
|
267
|
-
- @sveltejs/app-utils@0.0.15
|
|
268
|
-
|
|
269
|
-
## 0.0.22
|
|
270
|
-
|
|
271
|
-
### Patch Changes
|
|
272
|
-
|
|
273
|
-
- Force bump version
|
|
274
|
-
|
|
275
|
-
## 0.0.21
|
|
276
|
-
|
|
277
|
-
### Patch Changes
|
|
278
|
-
|
|
279
|
-
- Build setup entry point
|
|
280
|
-
- Work around pkg.exports constraint
|
|
281
|
-
- Respond with 500s if render fails
|
|
282
|
-
- Updated dependencies [undefined]
|
|
283
|
-
- Updated dependencies [undefined]
|
|
284
|
-
- Updated dependencies [undefined]
|
|
285
|
-
- @sveltejs/app-utils@0.0.14
|
|
286
|
-
|
|
287
|
-
## 0.0.20
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- Pass setup module to renderer
|
|
292
|
-
- Bump Snowpack version
|
|
293
|
-
- Updated dependencies [undefined]
|
|
294
|
-
- Updated dependencies [96c06d8]
|
|
295
|
-
- @sveltejs/app-utils@0.0.13
|
|
296
|
-
|
|
297
|
-
## 0.0.19
|
|
298
|
-
|
|
299
|
-
### Patch Changes
|
|
300
|
-
|
|
301
|
-
- fa9d7ce: Handle import.meta in SSR module loader
|
|
302
|
-
- 0320208: Rename 'server route' to 'endpoint'
|
|
303
|
-
- b9444d2: Update to Snowpack 2.15
|
|
304
|
-
- 5ca907c: Use shared mkdirp helper
|
|
305
|
-
- Updated dependencies [0320208]
|
|
306
|
-
- Updated dependencies [5ca907c]
|
|
307
|
-
- @sveltejs/app-utils@0.0.12
|
|
308
|
-
|
|
309
|
-
## 0.0.18
|
|
310
|
-
|
|
311
|
-
### Patch Changes
|
|
312
|
-
|
|
313
|
-
- Updated dependencies [undefined]
|
|
314
|
-
- @sveltejs/app-utils@0.0.11
|
|
315
|
-
|
|
316
|
-
## 0.0.17
|
|
317
|
-
|
|
318
|
-
### Patch Changes
|
|
319
|
-
|
|
320
|
-
- 19323e9: Update Snowpack
|
|
321
|
-
- Updated dependencies [19323e9]
|
|
322
|
-
- @sveltejs/app-utils@0.0.10
|
|
323
|
-
|
|
324
|
-
## 0.0.16
|
|
325
|
-
|
|
326
|
-
### Patch Changes
|
|
327
|
-
|
|
328
|
-
- Updated dependencies [90a98ae]
|
|
329
|
-
- @sveltejs/app-utils@0.0.9
|
|
330
|
-
|
|
331
|
-
## 0.0.15
|
|
332
|
-
|
|
333
|
-
### Patch Changes
|
|
334
|
-
|
|
335
|
-
- Updated dependencies [undefined]
|
|
336
|
-
- @sveltejs/app-utils@0.0.8
|
|
337
|
-
|
|
338
|
-
## 0.0.14
|
|
339
|
-
|
|
340
|
-
### Patch Changes
|
|
341
|
-
|
|
342
|
-
- various
|
|
343
|
-
- Updated dependencies [undefined]
|
|
344
|
-
- @sveltejs/app-utils@0.0.7
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { router, renderer } from '../internal/singletons.js';
|
|
2
|
-
import { g as get_base_uri } from '../utils-85ebcc60.js';
|
|
3
|
-
|
|
4
|
-
async function goto(href, opts) {
|
|
5
|
-
return router.goto(href, opts);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function prefetch(href) {
|
|
9
|
-
return renderer.prefetch(new URL(href, get_base_uri(document)));
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
async function prefetchRoutes(pathnames) {
|
|
13
|
-
const path_routes = pathnames
|
|
14
|
-
? router.pages.filter((page) => pathnames.some((pathname) => page.pattern.test(pathname)))
|
|
15
|
-
: router.pages;
|
|
16
|
-
|
|
17
|
-
const promises = path_routes.map((r) => Promise.all(r.parts.map((load) => load())));
|
|
18
|
-
|
|
19
|
-
await Promise.all(promises);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { goto, prefetch, prefetchRoutes };
|
|
23
|
-
//# sourceMappingURL=navigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.js","sources":["../../../src/runtime/app/navigation/index.js"],"sourcesContent":["import { router, renderer } from '../../internal/singletons';\nimport { get_base_uri } from '../../internal/utils';\n\nexport async function goto(href, opts) {\n\treturn router.goto(href, opts);\n}\n\nexport function prefetch(href) {\n\treturn renderer.prefetch(new URL(href, get_base_uri(document)));\n}\n\nexport async function prefetchRoutes(pathnames) {\n\tconst path_routes = pathnames\n\t\t? router.pages.filter((page) => pathnames.some((pathname) => page.pattern.test(pathname)))\n\t\t: router.pages;\n\n\tconst promises = path_routes.map((r) => Promise.all(r.parts.map((load) => load())));\n\n\tawait Promise.all(promises);\n}\n"],"names":[],"mappings":";;;AAGO,eAAe,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;AACvC,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAChC,CAAC;AACD;AACO,SAAS,QAAQ,CAAC,IAAI,EAAE;AAC/B,CAAC,OAAO,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC;AACD;AACO,eAAe,cAAc,CAAC,SAAS,EAAE;AAChD,CAAC,MAAM,WAAW,GAAG,SAAS;AAC9B,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,SAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,KAAK,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;AAC5F,IAAI,MAAM,CAAC,KAAK,CAAC;AACjB;AACA,CAAC,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AACrF;AACA,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7B;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"paths.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|