@sveltejs/kit 1.0.0-next.28 → 1.0.0-next.280
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 +79 -0
- package/assets/app/paths.js +1 -0
- package/assets/app/stores.js +97 -0
- package/assets/chunks/utils.js +13 -0
- package/assets/client/singletons.js +21 -0
- package/assets/client/start.js +1560 -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 +2759 -0
- package/dist/chunks/amp_hook.js +56 -0
- package/dist/chunks/build.js +658 -0
- package/dist/chunks/cert.js +28154 -0
- package/dist/chunks/index.js +473 -0
- package/dist/chunks/index2.js +836 -0
- package/dist/chunks/index3.js +643 -0
- package/dist/chunks/index4.js +120 -0
- package/dist/chunks/index5.js +881 -0
- package/dist/chunks/index6.js +170 -0
- package/dist/chunks/index7.js +15584 -0
- package/dist/chunks/index8.js +4207 -0
- package/dist/chunks/misc.js +3 -0
- package/dist/chunks/multipart-parser.js +449 -0
- package/dist/cli.js +1132 -86
- package/dist/hooks.js +28 -0
- package/dist/install-fetch.js +6518 -0
- package/dist/node.js +95 -0
- package/package.json +97 -54
- package/svelte-kit.js +2 -0
- package/types/ambient.d.ts +208 -0
- package/types/index.d.ts +391 -0
- package/types/internal.d.ts +372 -0
- package/CHANGELOG.md +0 -326
- 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/build.js +0 -246
- package/dist/build.js.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/colors.js +0 -37
- package/dist/colors.js.map +0 -1
- package/dist/create_app.js +0 -580
- package/dist/create_app.js.map +0 -1
- package/dist/index.js +0 -368
- package/dist/index.js.map +0 -1
- package/dist/index2.js +0 -12035
- 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 -464
- package/dist/index5.js.map +0 -1
- package/dist/index6.js +0 -735
- package/dist/index6.js.map +0 -1
- package/dist/logging.js +0 -43
- package/dist/logging.js.map +0 -1
- package/dist/package.js +0 -432
- package/dist/package.js.map +0 -1
- package/dist/renderer.js +0 -2425
- package/dist/renderer.js.map +0 -1
- package/dist/standard.js +0 -101
- 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,372 @@
|
|
|
1
|
+
import { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
+
import {
|
|
3
|
+
SSRManifest,
|
|
4
|
+
ValidatedConfig,
|
|
5
|
+
RequestHandler,
|
|
6
|
+
Load,
|
|
7
|
+
ExternalFetch,
|
|
8
|
+
GetSession,
|
|
9
|
+
Handle,
|
|
10
|
+
HandleError,
|
|
11
|
+
RequestEvent,
|
|
12
|
+
RequestOptions,
|
|
13
|
+
PrerenderErrorHandler,
|
|
14
|
+
Server
|
|
15
|
+
} from './index';
|
|
16
|
+
|
|
17
|
+
export interface AdapterEntry {
|
|
18
|
+
/**
|
|
19
|
+
* A string that uniquely identifies an HTTP service (e.g. serverless function) and is used for deduplication.
|
|
20
|
+
* For example, `/foo/a-[b]` and `/foo/[c]` are different routes, but would both
|
|
21
|
+
* be represented in a Netlify _redirects file as `/foo/:param`, so they share an ID
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A function that compares the candidate route with the current route to determine
|
|
27
|
+
* if it should be treated as a fallback for the current route. For example, `/foo/[c]`
|
|
28
|
+
* is a fallback for `/foo/a-[b]`, and `/[...catchall]` is a fallback for all routes
|
|
29
|
+
*/
|
|
30
|
+
filter: (route: RouteDefinition) => boolean;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A function that is invoked once the entry has been created. This is where you
|
|
34
|
+
* should write the function to the filesystem and generate redirect manifests.
|
|
35
|
+
*/
|
|
36
|
+
complete: (entry: {
|
|
37
|
+
generateManifest: (opts: { relativePath: string; format?: 'esm' | 'cjs' }) => string;
|
|
38
|
+
}) => void;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface ServerModule {
|
|
42
|
+
Server: typeof InternalServer;
|
|
43
|
+
|
|
44
|
+
override(options: {
|
|
45
|
+
paths: {
|
|
46
|
+
base: string;
|
|
47
|
+
assets: string;
|
|
48
|
+
};
|
|
49
|
+
prerendering: boolean;
|
|
50
|
+
protocol?: 'http' | 'https';
|
|
51
|
+
read(file: string): Buffer;
|
|
52
|
+
}): void;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface Asset {
|
|
56
|
+
file: string;
|
|
57
|
+
size: number;
|
|
58
|
+
type: string | null;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type Body = JSONValue | Uint8Array | ReadableStream | import('stream').Readable;
|
|
62
|
+
|
|
63
|
+
export interface BuildData {
|
|
64
|
+
app_dir: string;
|
|
65
|
+
manifest_data: ManifestData;
|
|
66
|
+
service_worker: string | null;
|
|
67
|
+
client: {
|
|
68
|
+
assets: OutputAsset[];
|
|
69
|
+
chunks: OutputChunk[];
|
|
70
|
+
entry: {
|
|
71
|
+
file: string;
|
|
72
|
+
js: string[];
|
|
73
|
+
css: string[];
|
|
74
|
+
};
|
|
75
|
+
vite_manifest: import('vite').Manifest;
|
|
76
|
+
};
|
|
77
|
+
server: {
|
|
78
|
+
chunks: OutputChunk[];
|
|
79
|
+
methods: Record<string, HttpMethod[]>;
|
|
80
|
+
vite_manifest: import('vite').Manifest;
|
|
81
|
+
};
|
|
82
|
+
static: string[];
|
|
83
|
+
entries: string[];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type CSRComponent = any; // TODO
|
|
87
|
+
|
|
88
|
+
export type CSRComponentLoader = () => Promise<CSRComponent>;
|
|
89
|
+
|
|
90
|
+
export type CSRRoute = [RegExp, CSRComponentLoader[], CSRComponentLoader[], GetParams?, HasShadow?];
|
|
91
|
+
|
|
92
|
+
export type Either<T, U> = Only<T, U> | Only<U, T>;
|
|
93
|
+
|
|
94
|
+
export interface EndpointData {
|
|
95
|
+
type: 'endpoint';
|
|
96
|
+
key: string;
|
|
97
|
+
segments: RouteSegment[];
|
|
98
|
+
pattern: RegExp;
|
|
99
|
+
params: string[];
|
|
100
|
+
file: string;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface Fallthrough {
|
|
104
|
+
fallthrough: true;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type GetParams = (match: RegExpExecArray) => Record<string, string>;
|
|
108
|
+
|
|
109
|
+
type HasShadow = 1;
|
|
110
|
+
|
|
111
|
+
export interface Hooks {
|
|
112
|
+
externalFetch: ExternalFetch;
|
|
113
|
+
getSession: GetSession;
|
|
114
|
+
handle: Handle;
|
|
115
|
+
handleError: HandleError;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type HttpMethod = 'get' | 'head' | 'post' | 'put' | 'delete' | 'patch';
|
|
119
|
+
|
|
120
|
+
export class InternalServer extends Server {
|
|
121
|
+
respond(
|
|
122
|
+
request: Request,
|
|
123
|
+
options?: RequestOptions & {
|
|
124
|
+
prerender?: PrerenderOptions;
|
|
125
|
+
}
|
|
126
|
+
): Promise<Response>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type JSONObject = { [key: string]: JSONValue };
|
|
130
|
+
|
|
131
|
+
export type JSONValue = string | number | boolean | null | ToJSON | JSONValue[] | JSONObject;
|
|
132
|
+
|
|
133
|
+
export interface Logger {
|
|
134
|
+
(msg: string): void;
|
|
135
|
+
success(msg: string): void;
|
|
136
|
+
error(msg: string): void;
|
|
137
|
+
warn(msg: string): void;
|
|
138
|
+
minor(msg: string): void;
|
|
139
|
+
info(msg: string): void;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export interface ManifestData {
|
|
143
|
+
assets: Asset[];
|
|
144
|
+
layout: string;
|
|
145
|
+
error: string;
|
|
146
|
+
components: string[];
|
|
147
|
+
routes: RouteData[];
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
151
|
+
|
|
152
|
+
export interface MethodOverride {
|
|
153
|
+
parameter: string;
|
|
154
|
+
allowed: string[];
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type NormalizedLoadOutput = Either<
|
|
158
|
+
{
|
|
159
|
+
status: number;
|
|
160
|
+
error?: Error;
|
|
161
|
+
redirect?: string;
|
|
162
|
+
props?: Record<string, any> | Promise<Record<string, any>>;
|
|
163
|
+
stuff?: Record<string, any>;
|
|
164
|
+
maxage?: number;
|
|
165
|
+
},
|
|
166
|
+
Fallthrough
|
|
167
|
+
>;
|
|
168
|
+
|
|
169
|
+
type Only<T, U> = { [P in keyof T]: T[P] } & { [P in Exclude<keyof U, keyof T>]?: never };
|
|
170
|
+
|
|
171
|
+
export interface PageData {
|
|
172
|
+
type: 'page';
|
|
173
|
+
key: string;
|
|
174
|
+
shadow: string | null;
|
|
175
|
+
segments: RouteSegment[];
|
|
176
|
+
pattern: RegExp;
|
|
177
|
+
params: string[];
|
|
178
|
+
path: string;
|
|
179
|
+
a: string[];
|
|
180
|
+
b: string[];
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export interface PrerenderDependency {
|
|
184
|
+
response: Response;
|
|
185
|
+
body: null | string | Uint8Array;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type PrerenderOnErrorValue = 'fail' | 'continue' | PrerenderErrorHandler;
|
|
189
|
+
|
|
190
|
+
export interface PrerenderOptions {
|
|
191
|
+
fallback?: string;
|
|
192
|
+
all: boolean;
|
|
193
|
+
dependencies: Map<string, PrerenderDependency>;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export type RecursiveRequired<T> = {
|
|
197
|
+
// Recursive implementation of TypeScript's Required utility type.
|
|
198
|
+
// Will recursively continue until it reaches primitive or union
|
|
199
|
+
// with a Function in it, except those commented below
|
|
200
|
+
[K in keyof T]-?: Extract<T[K], Function> extends never // If it does not have a Function type
|
|
201
|
+
? RecursiveRequired<T[K]> // recursively continue through.
|
|
202
|
+
: K extends 'vite' // If it reaches the 'vite' key
|
|
203
|
+
? Extract<T[K], Function> // only take the Function type.
|
|
204
|
+
: T[K]; // Use the exact type for everything else
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
export interface RequiredResolveOptions {
|
|
208
|
+
ssr: boolean;
|
|
209
|
+
transformPage: ({ html }: { html: string }) => string;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface Respond {
|
|
213
|
+
(request: Request, options: SSROptions, state?: SSRState): Promise<Response>;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/** `string[]` is only for set-cookie, everything else must be type of `string` */
|
|
217
|
+
export type ResponseHeaders = Record<string, string | number | string[]>;
|
|
218
|
+
|
|
219
|
+
export type RouteData = PageData | EndpointData;
|
|
220
|
+
|
|
221
|
+
export interface RouteDefinition {
|
|
222
|
+
type: 'page' | 'endpoint';
|
|
223
|
+
pattern: RegExp;
|
|
224
|
+
segments: RouteSegment[];
|
|
225
|
+
methods: HttpMethod[];
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface RouteSegment {
|
|
229
|
+
content: string;
|
|
230
|
+
dynamic: boolean;
|
|
231
|
+
rest: boolean;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface ShadowEndpointOutput<Output extends JSONObject = JSONObject> {
|
|
235
|
+
status?: number;
|
|
236
|
+
headers?: Partial<ResponseHeaders>;
|
|
237
|
+
body?: Output;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export interface ShadowRequestHandler<Output extends JSONObject = JSONObject> {
|
|
241
|
+
(event: RequestEvent): MaybePromise<Either<ShadowEndpointOutput<Output>, Fallthrough>>;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface ShadowData {
|
|
245
|
+
fallthrough?: boolean;
|
|
246
|
+
status?: number;
|
|
247
|
+
error?: Error;
|
|
248
|
+
redirect?: string;
|
|
249
|
+
cookies?: string[];
|
|
250
|
+
body?: JSONObject;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface SSRComponent {
|
|
254
|
+
router?: boolean;
|
|
255
|
+
hydrate?: boolean;
|
|
256
|
+
prerender?: boolean;
|
|
257
|
+
load: Load;
|
|
258
|
+
default: {
|
|
259
|
+
render(props: Record<string, any>): {
|
|
260
|
+
html: string;
|
|
261
|
+
head: string;
|
|
262
|
+
css: {
|
|
263
|
+
code: string;
|
|
264
|
+
map: any; // TODO
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type SSRComponentLoader = () => Promise<SSRComponent>;
|
|
271
|
+
|
|
272
|
+
export interface SSREndpoint {
|
|
273
|
+
type: 'endpoint';
|
|
274
|
+
pattern: RegExp;
|
|
275
|
+
params: GetParams;
|
|
276
|
+
load(): Promise<{
|
|
277
|
+
[method: string]: RequestHandler;
|
|
278
|
+
}>;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface SSRNode {
|
|
282
|
+
module: SSRComponent;
|
|
283
|
+
/** client-side module URL for this component */
|
|
284
|
+
entry: string;
|
|
285
|
+
/** external CSS files */
|
|
286
|
+
css: string[];
|
|
287
|
+
/** external JS files */
|
|
288
|
+
js: string[];
|
|
289
|
+
/** inlined styles */
|
|
290
|
+
styles?: Record<string, string>;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
export type SSRNodeLoader = () => Promise<SSRNode>;
|
|
294
|
+
|
|
295
|
+
export interface SSROptions {
|
|
296
|
+
amp: boolean;
|
|
297
|
+
csp: ValidatedConfig['kit']['csp'];
|
|
298
|
+
dev: boolean;
|
|
299
|
+
floc: boolean;
|
|
300
|
+
get_stack: (error: Error) => string | undefined;
|
|
301
|
+
handle_error(error: Error & { frame?: string }, event: RequestEvent): void;
|
|
302
|
+
hooks: Hooks;
|
|
303
|
+
hydrate: boolean;
|
|
304
|
+
manifest: SSRManifest;
|
|
305
|
+
method_override: MethodOverride;
|
|
306
|
+
paths: {
|
|
307
|
+
base: string;
|
|
308
|
+
assets: string;
|
|
309
|
+
};
|
|
310
|
+
prefix: string;
|
|
311
|
+
prerender: boolean;
|
|
312
|
+
read(file: string): Buffer;
|
|
313
|
+
root: SSRComponent['default'];
|
|
314
|
+
router: boolean;
|
|
315
|
+
service_worker?: string;
|
|
316
|
+
template({
|
|
317
|
+
head,
|
|
318
|
+
body,
|
|
319
|
+
assets,
|
|
320
|
+
nonce
|
|
321
|
+
}: {
|
|
322
|
+
head: string;
|
|
323
|
+
body: string;
|
|
324
|
+
assets: string;
|
|
325
|
+
nonce: string;
|
|
326
|
+
}): string;
|
|
327
|
+
template_contains_nonce: boolean;
|
|
328
|
+
trailing_slash: TrailingSlash;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export interface SSRPage {
|
|
332
|
+
type: 'page';
|
|
333
|
+
pattern: RegExp;
|
|
334
|
+
params: GetParams;
|
|
335
|
+
shadow:
|
|
336
|
+
| null
|
|
337
|
+
| (() => Promise<{
|
|
338
|
+
[method: string]: ShadowRequestHandler;
|
|
339
|
+
}>);
|
|
340
|
+
/**
|
|
341
|
+
* plan a is to render 1 or more layout components followed by a leaf component.
|
|
342
|
+
*/
|
|
343
|
+
a: number[];
|
|
344
|
+
/**
|
|
345
|
+
* plan b — if one of them components fails in `load` we backtrack until we find
|
|
346
|
+
* the nearest error component.
|
|
347
|
+
*/
|
|
348
|
+
b: number[];
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export interface SSRPagePart {
|
|
352
|
+
id: string;
|
|
353
|
+
load: SSRComponentLoader;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
export type SSRRoute = SSREndpoint | SSRPage;
|
|
357
|
+
|
|
358
|
+
export interface SSRState {
|
|
359
|
+
fetched?: string;
|
|
360
|
+
initiator?: SSRPage | null;
|
|
361
|
+
platform?: any;
|
|
362
|
+
prerender?: PrerenderOptions;
|
|
363
|
+
fallback?: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export type StrictBody = string | Uint8Array;
|
|
367
|
+
|
|
368
|
+
type ToJSON = { toJSON(...args: any[]): Exclude<JSONValue, ToJSON> };
|
|
369
|
+
|
|
370
|
+
export type TrailingSlash = 'never' | 'always' | 'ignore';
|
|
371
|
+
|
|
372
|
+
export * from './index';
|
package/CHANGELOG.md
DELETED
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
# @sveltejs/kit
|
|
2
|
-
|
|
3
|
-
## 1.0.0-next.28
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 4353025: Prevent infinite loop when fetching bad URLs inside error responses
|
|
8
|
-
- 2860065: Handle assets path when prerendering
|
|
9
|
-
|
|
10
|
-
## 1.0.0-next.27
|
|
11
|
-
|
|
12
|
-
### Patch Changes
|
|
13
|
-
|
|
14
|
-
- Fail build if prerender errors
|
|
15
|
-
- Hide logging behind --verbose option
|
|
16
|
-
|
|
17
|
-
## 1.0.0-next.26
|
|
18
|
-
|
|
19
|
-
### Patch Changes
|
|
20
|
-
|
|
21
|
-
- Fix svelte-announcer CSS
|
|
22
|
-
|
|
23
|
-
## 1.0.0-next.25
|
|
24
|
-
|
|
25
|
-
### Patch Changes
|
|
26
|
-
|
|
27
|
-
- Surface stack traces for endpoint/page rendering errors
|
|
28
|
-
|
|
29
|
-
## 1.0.0-next.24
|
|
30
|
-
|
|
31
|
-
### Patch Changes
|
|
32
|
-
|
|
33
|
-
- 26643df: Account for config.paths when prerendering
|
|
34
|
-
|
|
35
|
-
## 1.0.0-next.23
|
|
36
|
-
|
|
37
|
-
### Patch Changes
|
|
38
|
-
|
|
39
|
-
- 9b758aa: Upgrade to Snowpack 3
|
|
40
|
-
|
|
41
|
-
## 1.0.0-next.22
|
|
42
|
-
|
|
43
|
-
### Patch Changes
|
|
44
|
-
|
|
45
|
-
- bb68595: use readFileSync instead of createReadStream
|
|
46
|
-
|
|
47
|
-
## 1.0.0-next.21
|
|
48
|
-
|
|
49
|
-
### Patch Changes
|
|
50
|
-
|
|
51
|
-
- 217e4cc: Set paths to empty string before prerender
|
|
52
|
-
|
|
53
|
-
## 1.0.0-next.20
|
|
54
|
-
|
|
55
|
-
### Patch Changes
|
|
56
|
-
|
|
57
|
-
- ccf4aa7: Implement prerender config
|
|
58
|
-
|
|
59
|
-
## 1.0.0-next.19
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- deda984: Make navigating store contain from and to properties
|
|
64
|
-
|
|
65
|
-
## 1.0.0-next.18
|
|
66
|
-
|
|
67
|
-
### Patch Changes
|
|
68
|
-
|
|
69
|
-
- c29b61e: Announce page changes
|
|
70
|
-
- 72da270: Reset focus properly
|
|
71
|
-
|
|
72
|
-
## 1.0.0-next.17
|
|
73
|
-
|
|
74
|
-
### Patch Changes
|
|
75
|
-
|
|
76
|
-
- f7dea55: Set process.env.NODE_ENV when invoking via the CLI
|
|
77
|
-
|
|
78
|
-
## 1.0.0-next.16
|
|
79
|
-
|
|
80
|
-
### Patch Changes
|
|
81
|
-
|
|
82
|
-
- Remove temporary logging
|
|
83
|
-
- Add sveltekit:prefetch and sveltekit:noscroll
|
|
84
|
-
|
|
85
|
-
## 1.0.0-next.15
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- 6d1bb11: Fix AMP CSS
|
|
90
|
-
- d8b53af: Ignore $layout and $error files when finding static paths
|
|
91
|
-
- Better scroll tracking
|
|
92
|
-
|
|
93
|
-
## 1.0.0-next.14
|
|
94
|
-
|
|
95
|
-
### Patch Changes
|
|
96
|
-
|
|
97
|
-
- Fix dev loader
|
|
98
|
-
|
|
99
|
-
## 1.0.0-next.13
|
|
100
|
-
|
|
101
|
-
### Patch Changes
|
|
102
|
-
|
|
103
|
-
- 1ea4d6b: More robust CSS extraction
|
|
104
|
-
|
|
105
|
-
## 1.0.0-next.12
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- e7c88dd: Tweak AMP validation screen
|
|
110
|
-
|
|
111
|
-
## 1.0.0-next.11
|
|
112
|
-
|
|
113
|
-
### Patch Changes
|
|
114
|
-
|
|
115
|
-
- a31f218: Fix SSR loader invalidation
|
|
116
|
-
|
|
117
|
-
## 1.0.0-next.10
|
|
118
|
-
|
|
119
|
-
### Patch Changes
|
|
120
|
-
|
|
121
|
-
- 8b14d29: Omit svelte-data scripts from AMP pages
|
|
122
|
-
|
|
123
|
-
## 1.0.0-next.9
|
|
124
|
-
|
|
125
|
-
### Patch Changes
|
|
126
|
-
|
|
127
|
-
- f5fa223: AMP support
|
|
128
|
-
- 47f2ee1: Always remove trailing slashes
|
|
129
|
-
- 1becb94: Replace preload with load
|
|
130
|
-
|
|
131
|
-
## 1.0.0-next.8
|
|
132
|
-
|
|
133
|
-
### Patch Changes
|
|
134
|
-
|
|
135
|
-
- 15dd751: Use meta http-equiv=refresh
|
|
136
|
-
- be7e031: Fix handling of static files
|
|
137
|
-
- ed6b8fd: Implement \$app/env
|
|
138
|
-
|
|
139
|
-
## 1.0.0-next.7
|
|
140
|
-
|
|
141
|
-
### Patch Changes
|
|
142
|
-
|
|
143
|
-
- 76705b0: make HMR work outside localhost
|
|
144
|
-
|
|
145
|
-
## 1.0.0-next.6
|
|
146
|
-
|
|
147
|
-
### Patch Changes
|
|
148
|
-
|
|
149
|
-
- 0e45255: Move options behind kit namespace, change paths -> kit.files
|
|
150
|
-
- fa7f2b2: Implement live bindings for SSR code
|
|
151
|
-
|
|
152
|
-
## 1.0.0-next.5
|
|
153
|
-
|
|
154
|
-
### Patch Changes
|
|
155
|
-
|
|
156
|
-
- Return dependencies from render
|
|
157
|
-
|
|
158
|
-
## 1.0.0-next.4
|
|
159
|
-
|
|
160
|
-
### Patch Changes
|
|
161
|
-
|
|
162
|
-
- af01b0d: Move renderer out of app assets folder
|
|
163
|
-
|
|
164
|
-
## 1.0.0-next.3
|
|
165
|
-
|
|
166
|
-
### Patch Changes
|
|
167
|
-
|
|
168
|
-
- Add paths to manifest, for static prerendering
|
|
169
|
-
|
|
170
|
-
## 1.0.0-next.2
|
|
171
|
-
|
|
172
|
-
### Patch Changes
|
|
173
|
-
|
|
174
|
-
- Fix typo causing misnamed assets folder
|
|
175
|
-
|
|
176
|
-
## 1.0.0-next.1
|
|
177
|
-
|
|
178
|
-
### Patch Changes
|
|
179
|
-
|
|
180
|
-
- a4bc090: Transform exported functions correctly
|
|
181
|
-
- 00bbf98: Fix nested layouts
|
|
182
|
-
|
|
183
|
-
## 0.0.31-next.0
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- ffd7bba: Fix SSR cache invalidation
|
|
188
|
-
|
|
189
|
-
## 0.0.30
|
|
190
|
-
|
|
191
|
-
### Patch Changes
|
|
192
|
-
|
|
193
|
-
- Add back stores(), but with deprecation warning
|
|
194
|
-
- Rename stores.preloading to stores.navigating
|
|
195
|
-
- Rewrite routing logic
|
|
196
|
-
|
|
197
|
-
## 0.0.29
|
|
198
|
-
|
|
199
|
-
### Patch Changes
|
|
200
|
-
|
|
201
|
-
- 10872cc: Normalize request.query
|
|
202
|
-
|
|
203
|
-
## 0.0.28
|
|
204
|
-
|
|
205
|
-
### Patch Changes
|
|
206
|
-
|
|
207
|
-
- Add svelte-kit start command
|
|
208
|
-
|
|
209
|
-
## 0.0.27
|
|
210
|
-
|
|
211
|
-
### Patch Changes
|
|
212
|
-
|
|
213
|
-
- rename CLI to svelte-kit
|
|
214
|
-
- 0904e22: rename svelte CLI to svelte-kit
|
|
215
|
-
- Validate route responses
|
|
216
|
-
- Make paths and target configurable
|
|
217
|
-
|
|
218
|
-
## 0.0.26
|
|
219
|
-
|
|
220
|
-
### Patch Changes
|
|
221
|
-
|
|
222
|
-
- b475ed4: Overhaul adapter API - fixes #166
|
|
223
|
-
- Updated dependencies [b475ed4]
|
|
224
|
-
- @sveltejs/app-utils@0.0.18
|
|
225
|
-
|
|
226
|
-
## 0.0.25
|
|
227
|
-
|
|
228
|
-
### Patch Changes
|
|
229
|
-
|
|
230
|
-
- Updated dependencies [3bdf33b]
|
|
231
|
-
- @sveltejs/app-utils@0.0.17
|
|
232
|
-
|
|
233
|
-
## 0.0.24
|
|
234
|
-
|
|
235
|
-
### Patch Changes
|
|
236
|
-
|
|
237
|
-
- 67eaeea: Move app-utils stuff into subpackages
|
|
238
|
-
- 7f8df30: Move kit runtime code, expose via \$app aliases
|
|
239
|
-
- Updated dependencies [67eaeea]
|
|
240
|
-
- @sveltejs/app-utils@0.0.16
|
|
241
|
-
|
|
242
|
-
## 0.0.23
|
|
243
|
-
|
|
244
|
-
### Patch Changes
|
|
245
|
-
|
|
246
|
-
- a163000: Parse body on incoming requests
|
|
247
|
-
- a346eab: Copy over latest Sapper router code
|
|
248
|
-
- Updated dependencies [a163000]
|
|
249
|
-
- @sveltejs/app-utils@0.0.15
|
|
250
|
-
|
|
251
|
-
## 0.0.22
|
|
252
|
-
|
|
253
|
-
### Patch Changes
|
|
254
|
-
|
|
255
|
-
- Force bump version
|
|
256
|
-
|
|
257
|
-
## 0.0.21
|
|
258
|
-
|
|
259
|
-
### Patch Changes
|
|
260
|
-
|
|
261
|
-
- Build setup entry point
|
|
262
|
-
- Work around pkg.exports constraint
|
|
263
|
-
- Respond with 500s if render fails
|
|
264
|
-
- Updated dependencies [undefined]
|
|
265
|
-
- Updated dependencies [undefined]
|
|
266
|
-
- Updated dependencies [undefined]
|
|
267
|
-
- @sveltejs/app-utils@0.0.14
|
|
268
|
-
|
|
269
|
-
## 0.0.20
|
|
270
|
-
|
|
271
|
-
### Patch Changes
|
|
272
|
-
|
|
273
|
-
- Pass setup module to renderer
|
|
274
|
-
- Bump Snowpack version
|
|
275
|
-
- Updated dependencies [undefined]
|
|
276
|
-
- Updated dependencies [96c06d8]
|
|
277
|
-
- @sveltejs/app-utils@0.0.13
|
|
278
|
-
|
|
279
|
-
## 0.0.19
|
|
280
|
-
|
|
281
|
-
### Patch Changes
|
|
282
|
-
|
|
283
|
-
- fa9d7ce: Handle import.meta in SSR module loader
|
|
284
|
-
- 0320208: Rename 'server route' to 'endpoint'
|
|
285
|
-
- b9444d2: Update to Snowpack 2.15
|
|
286
|
-
- 5ca907c: Use shared mkdirp helper
|
|
287
|
-
- Updated dependencies [0320208]
|
|
288
|
-
- Updated dependencies [5ca907c]
|
|
289
|
-
- @sveltejs/app-utils@0.0.12
|
|
290
|
-
|
|
291
|
-
## 0.0.18
|
|
292
|
-
|
|
293
|
-
### Patch Changes
|
|
294
|
-
|
|
295
|
-
- Updated dependencies [undefined]
|
|
296
|
-
- @sveltejs/app-utils@0.0.11
|
|
297
|
-
|
|
298
|
-
## 0.0.17
|
|
299
|
-
|
|
300
|
-
### Patch Changes
|
|
301
|
-
|
|
302
|
-
- 19323e9: Update Snowpack
|
|
303
|
-
- Updated dependencies [19323e9]
|
|
304
|
-
- @sveltejs/app-utils@0.0.10
|
|
305
|
-
|
|
306
|
-
## 0.0.16
|
|
307
|
-
|
|
308
|
-
### Patch Changes
|
|
309
|
-
|
|
310
|
-
- Updated dependencies [90a98ae]
|
|
311
|
-
- @sveltejs/app-utils@0.0.9
|
|
312
|
-
|
|
313
|
-
## 0.0.15
|
|
314
|
-
|
|
315
|
-
### Patch Changes
|
|
316
|
-
|
|
317
|
-
- Updated dependencies [undefined]
|
|
318
|
-
- @sveltejs/app-utils@0.0.8
|
|
319
|
-
|
|
320
|
-
## 0.0.14
|
|
321
|
-
|
|
322
|
-
### Patch Changes
|
|
323
|
-
|
|
324
|
-
- various
|
|
325
|
-
- Updated dependencies [undefined]
|
|
326
|
-
- @sveltejs/app-utils@0.0.7
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { g as get_base_uri } from '../utils-85ebcc60.js';
|
|
2
|
-
import { router, renderer } from '../internal/singletons.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":""}
|