@sveltejs/kit 1.0.0-next.24 → 1.0.0-next.240
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/{runtime/app → app}/stores.js +19 -15
- package/assets/chunks/utils.js +13 -0
- package/assets/client/singletons.js +21 -0
- package/assets/client/start.js +1382 -0
- package/assets/components/error.svelte +19 -3
- package/assets/env.js +8 -0
- package/assets/paths.js +13 -0
- package/assets/server/index.js +1842 -0
- package/dist/chunks/build.js +658 -0
- package/dist/chunks/cert.js +28154 -0
- package/dist/chunks/index.js +2202 -0
- package/dist/chunks/index2.js +807 -0
- package/dist/chunks/index3.js +643 -0
- package/dist/chunks/index4.js +109 -0
- package/dist/chunks/index5.js +752 -0
- package/dist/chunks/index6.js +170 -0
- package/dist/chunks/index7.js +15574 -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/chunks/url.js +119 -0
- package/dist/cli.js +1060 -84
- package/dist/hooks.js +28 -0
- package/dist/install-fetch.js +6518 -0
- package/dist/node.js +85 -0
- package/package.json +95 -54
- package/svelte-kit.js +2 -0
- package/types/ambient-modules.d.ts +201 -0
- package/types/app.d.ts +31 -0
- package/types/config.d.ts +164 -0
- package/types/endpoint.d.ts +18 -0
- package/types/helper.d.ts +32 -0
- package/types/hooks.d.ts +42 -0
- package/types/index.d.ts +10 -0
- package/types/internal.d.ts +234 -0
- package/types/page.d.ts +85 -0
- package/CHANGELOG.md +0 -300
- 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.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 -578
- package/dist/create_app.js.map +0 -1
- package/dist/index.js +0 -367
- package/dist/index.js.map +0 -1
- package/dist/index2.js +0 -12044
- package/dist/index2.js.map +0 -1
- package/dist/index3.js +0 -547
- package/dist/index3.js.map +0 -1
- package/dist/index4.js +0 -73
- 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 -727
- 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 -2391
- 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 -54
- package/dist/utils.js.map +0 -1
- package/svelte-kit +0 -3
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type ToJSON = { toJSON(...args: any[]): JSONValue };
|
|
2
|
+
type JSONValue = Exclude<JSONString, ToJSON>;
|
|
3
|
+
export type JSONString =
|
|
4
|
+
| string
|
|
5
|
+
| number
|
|
6
|
+
| boolean
|
|
7
|
+
| null
|
|
8
|
+
| ToJSON
|
|
9
|
+
| JSONString[]
|
|
10
|
+
| { [key: string]: JSONString };
|
|
11
|
+
|
|
12
|
+
/** `string[]` is only for set-cookie, everything else must be type of `string` */
|
|
13
|
+
export type ResponseHeaders = Record<string, string | string[]>;
|
|
14
|
+
|
|
15
|
+
// <-- Utility Types -->
|
|
16
|
+
type Only<T, U> = { [P in keyof T]: T[P] } & { [P in keyof U]?: never };
|
|
17
|
+
|
|
18
|
+
export type Either<T, U> = Only<T, U> | Only<U, T>;
|
|
19
|
+
export type InferValue<T, Key extends keyof T, Default> = T extends Record<Key, infer Val>
|
|
20
|
+
? Val
|
|
21
|
+
: Default;
|
|
22
|
+
export type MaybePromise<T> = T | Promise<T>;
|
|
23
|
+
export type RecursiveRequired<T> = {
|
|
24
|
+
// Recursive implementation of TypeScript's Required utility type.
|
|
25
|
+
// Will recursively continue until it reaches primitive or union
|
|
26
|
+
// with a Function in it, except those commented below
|
|
27
|
+
[K in keyof T]-?: Extract<T[K], Function> extends never // If it does not have a Function type
|
|
28
|
+
? RecursiveRequired<T[K]> // recursively continue through.
|
|
29
|
+
: K extends 'vite' // If it reaches the 'vite' key
|
|
30
|
+
? Extract<T[K], Function> // only take the Function type.
|
|
31
|
+
: T[K]; // Use the exact type for everything else
|
|
32
|
+
};
|
package/types/hooks.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { MaybePromise } from './helper';
|
|
2
|
+
|
|
3
|
+
export type StrictBody = string | Uint8Array;
|
|
4
|
+
|
|
5
|
+
export interface RequestEvent<Locals = Record<string, any>> {
|
|
6
|
+
request: Request;
|
|
7
|
+
url: URL;
|
|
8
|
+
params: Record<string, string>;
|
|
9
|
+
locals: Locals;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface GetSession<Locals = Record<string, any>, Session = any> {
|
|
13
|
+
(event: RequestEvent<Locals>): MaybePromise<Session>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ResolveOpts {
|
|
17
|
+
ssr?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface Handle<Locals = Record<string, any>> {
|
|
21
|
+
(input: {
|
|
22
|
+
event: RequestEvent<Locals>;
|
|
23
|
+
resolve(event: RequestEvent<Locals>, opts?: ResolveOpts): MaybePromise<Response>;
|
|
24
|
+
}): MaybePromise<Response>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// internally, `resolve` could return `undefined`, so we differentiate InternalHandle
|
|
28
|
+
// from the public Handle type
|
|
29
|
+
export interface InternalHandle<Locals = Record<string, any>> {
|
|
30
|
+
(input: {
|
|
31
|
+
event: RequestEvent<Locals>;
|
|
32
|
+
resolve(event: RequestEvent<Locals>, opts?: ResolveOpts): MaybePromise<Response | undefined>;
|
|
33
|
+
}): MaybePromise<Response | undefined>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface HandleError<Locals = Record<string, any>> {
|
|
37
|
+
(input: { error: Error & { frame?: string }; event: RequestEvent<Locals> }): void;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export interface ExternalFetch {
|
|
41
|
+
(req: Request): Promise<Response>;
|
|
42
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
/// <reference types="vite/client" />
|
|
3
|
+
|
|
4
|
+
import './ambient-modules';
|
|
5
|
+
|
|
6
|
+
export { App, SSRManifest } from './app';
|
|
7
|
+
export { Adapter, Builder, Config, PrerenderErrorHandler, ValidatedConfig } from './config';
|
|
8
|
+
export { EndpointOutput, RequestHandler } from './endpoint';
|
|
9
|
+
export { ErrorLoad, ErrorLoadInput, Load, LoadInput, LoadOutput } from './page';
|
|
10
|
+
export { ExternalFetch, GetSession, Handle, HandleError, RequestEvent, ResolveOpts } from './hooks';
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { OutputAsset, OutputChunk } from 'rollup';
|
|
2
|
+
import { InternalApp, SSRManifest } from './app';
|
|
3
|
+
import { Fallthrough, RequestHandler } from './endpoint';
|
|
4
|
+
import { Either } from './helper';
|
|
5
|
+
import { ExternalFetch, GetSession, HandleError, InternalHandle, RequestEvent } from './hooks';
|
|
6
|
+
import { Load } from './page';
|
|
7
|
+
|
|
8
|
+
export interface PrerenderOptions {
|
|
9
|
+
fallback?: string;
|
|
10
|
+
all: boolean;
|
|
11
|
+
dependencies: Map<string, Response>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface AppModule {
|
|
15
|
+
App: typeof InternalApp;
|
|
16
|
+
|
|
17
|
+
override(options: {
|
|
18
|
+
paths: {
|
|
19
|
+
base: string;
|
|
20
|
+
assets: string;
|
|
21
|
+
};
|
|
22
|
+
prerendering: boolean;
|
|
23
|
+
protocol?: 'http' | 'https';
|
|
24
|
+
read(file: string): Buffer;
|
|
25
|
+
}): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface Logger {
|
|
29
|
+
(msg: string): void;
|
|
30
|
+
success(msg: string): void;
|
|
31
|
+
error(msg: string): void;
|
|
32
|
+
warn(msg: string): void;
|
|
33
|
+
minor(msg: string): void;
|
|
34
|
+
info(msg: string): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface SSRComponent {
|
|
38
|
+
router?: boolean;
|
|
39
|
+
hydrate?: boolean;
|
|
40
|
+
prerender?: boolean;
|
|
41
|
+
load: Load;
|
|
42
|
+
default: {
|
|
43
|
+
render(props: Record<string, any>): {
|
|
44
|
+
html: string;
|
|
45
|
+
head: string;
|
|
46
|
+
css: {
|
|
47
|
+
code: string;
|
|
48
|
+
map: any; // TODO
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type SSRComponentLoader = () => Promise<SSRComponent>;
|
|
55
|
+
|
|
56
|
+
export type CSRComponent = any; // TODO
|
|
57
|
+
|
|
58
|
+
export type CSRComponentLoader = () => Promise<CSRComponent>;
|
|
59
|
+
|
|
60
|
+
export interface SSRPagePart {
|
|
61
|
+
id: string;
|
|
62
|
+
load: SSRComponentLoader;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type GetParams = (match: RegExpExecArray) => Record<string, string>;
|
|
66
|
+
|
|
67
|
+
export interface SSRPage {
|
|
68
|
+
type: 'page';
|
|
69
|
+
pattern: RegExp;
|
|
70
|
+
params: GetParams;
|
|
71
|
+
/**
|
|
72
|
+
* plan a is to render 1 or more layout components followed by a leaf component.
|
|
73
|
+
*/
|
|
74
|
+
a: number[];
|
|
75
|
+
/**
|
|
76
|
+
* plan b — if one of them components fails in `load` we backtrack until we find
|
|
77
|
+
* the nearest error component.
|
|
78
|
+
*/
|
|
79
|
+
b: number[];
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface SSREndpoint {
|
|
83
|
+
type: 'endpoint';
|
|
84
|
+
pattern: RegExp;
|
|
85
|
+
params: GetParams;
|
|
86
|
+
load(): Promise<{
|
|
87
|
+
[method: string]: RequestHandler;
|
|
88
|
+
}>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type SSRRoute = SSREndpoint | SSRPage;
|
|
92
|
+
|
|
93
|
+
export type CSRRoute = [RegExp, CSRComponentLoader[], CSRComponentLoader[], GetParams?];
|
|
94
|
+
|
|
95
|
+
export type SSRNodeLoader = () => Promise<SSRNode>;
|
|
96
|
+
|
|
97
|
+
export interface Hooks {
|
|
98
|
+
externalFetch: ExternalFetch;
|
|
99
|
+
getSession: GetSession;
|
|
100
|
+
handle: InternalHandle;
|
|
101
|
+
handleError: HandleError;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export interface SSRNode {
|
|
105
|
+
module: SSRComponent;
|
|
106
|
+
/** client-side module URL for this component */
|
|
107
|
+
entry: string;
|
|
108
|
+
/** external CSS files */
|
|
109
|
+
css: string[];
|
|
110
|
+
/** external JS files */
|
|
111
|
+
js: string[];
|
|
112
|
+
/** inlined styles */
|
|
113
|
+
styles?: Record<string, string>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface SSRRenderOptions {
|
|
117
|
+
amp: boolean;
|
|
118
|
+
dev: boolean;
|
|
119
|
+
floc: boolean;
|
|
120
|
+
get_stack: (error: Error) => string | undefined;
|
|
121
|
+
handle_error(error: Error & { frame?: string }, event: RequestEvent): void;
|
|
122
|
+
hooks: Hooks;
|
|
123
|
+
hydrate: boolean;
|
|
124
|
+
manifest: SSRManifest;
|
|
125
|
+
method_override: MethodOverride;
|
|
126
|
+
paths: {
|
|
127
|
+
base: string;
|
|
128
|
+
assets: string;
|
|
129
|
+
};
|
|
130
|
+
prefix: string;
|
|
131
|
+
prerender: boolean;
|
|
132
|
+
read(file: string): Buffer;
|
|
133
|
+
root: SSRComponent['default'];
|
|
134
|
+
router: boolean;
|
|
135
|
+
service_worker?: string;
|
|
136
|
+
target: string;
|
|
137
|
+
template({ head, body, assets }: { head: string; body: string; assets: string }): string;
|
|
138
|
+
trailing_slash: TrailingSlash;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface SSRRenderState {
|
|
142
|
+
fetched?: string;
|
|
143
|
+
initiator?: SSRPage | null;
|
|
144
|
+
prerender?: PrerenderOptions;
|
|
145
|
+
fallback?: string;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export interface Asset {
|
|
149
|
+
file: string;
|
|
150
|
+
size: number;
|
|
151
|
+
type: string | null;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface RouteSegment {
|
|
155
|
+
content: string;
|
|
156
|
+
dynamic: boolean;
|
|
157
|
+
rest: boolean;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type HttpMethod = 'get' | 'head' | 'post' | 'put' | 'delete' | 'patch';
|
|
161
|
+
|
|
162
|
+
export interface PageData {
|
|
163
|
+
type: 'page';
|
|
164
|
+
segments: RouteSegment[];
|
|
165
|
+
pattern: RegExp;
|
|
166
|
+
params: string[];
|
|
167
|
+
path: string;
|
|
168
|
+
a: string[];
|
|
169
|
+
b: string[];
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface EndpointData {
|
|
173
|
+
type: 'endpoint';
|
|
174
|
+
segments: RouteSegment[];
|
|
175
|
+
pattern: RegExp;
|
|
176
|
+
params: string[];
|
|
177
|
+
file: string;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export type RouteData = PageData | EndpointData;
|
|
181
|
+
|
|
182
|
+
export interface ManifestData {
|
|
183
|
+
assets: Asset[];
|
|
184
|
+
layout: string;
|
|
185
|
+
error: string;
|
|
186
|
+
components: string[];
|
|
187
|
+
routes: RouteData[];
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface BuildData {
|
|
191
|
+
app_dir: string;
|
|
192
|
+
manifest_data: ManifestData;
|
|
193
|
+
client: {
|
|
194
|
+
assets: OutputAsset[];
|
|
195
|
+
chunks: OutputChunk[];
|
|
196
|
+
entry: {
|
|
197
|
+
file: string;
|
|
198
|
+
js: string[];
|
|
199
|
+
css: string[];
|
|
200
|
+
};
|
|
201
|
+
vite_manifest: import('vite').Manifest;
|
|
202
|
+
};
|
|
203
|
+
server: {
|
|
204
|
+
chunks: OutputChunk[];
|
|
205
|
+
methods: Record<string, HttpMethod[]>;
|
|
206
|
+
vite_manifest: import('vite').Manifest;
|
|
207
|
+
};
|
|
208
|
+
static: string[];
|
|
209
|
+
entries: string[];
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export type NormalizedLoadOutput = Either<
|
|
213
|
+
{
|
|
214
|
+
status: number;
|
|
215
|
+
error?: Error;
|
|
216
|
+
redirect?: string;
|
|
217
|
+
props?: Record<string, any> | Promise<Record<string, any>>;
|
|
218
|
+
stuff?: Record<string, any>;
|
|
219
|
+
maxage?: number;
|
|
220
|
+
},
|
|
221
|
+
Fallthrough
|
|
222
|
+
>;
|
|
223
|
+
|
|
224
|
+
export type TrailingSlash = 'never' | 'always' | 'ignore';
|
|
225
|
+
export interface MethodOverride {
|
|
226
|
+
parameter: string;
|
|
227
|
+
allowed: string[];
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface Respond {
|
|
231
|
+
(request: Request, options: SSRRenderOptions, state?: SSRRenderState): Promise<
|
|
232
|
+
Response | undefined
|
|
233
|
+
>;
|
|
234
|
+
}
|
package/types/page.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { Fallthrough } from './endpoint';
|
|
2
|
+
import { Either, InferValue, MaybePromise } from './helper';
|
|
3
|
+
|
|
4
|
+
export interface LoadInput<
|
|
5
|
+
PageParams extends Record<string, string> = Record<string, string>,
|
|
6
|
+
Stuff extends Record<string, any> = Record<string, any>,
|
|
7
|
+
Session = any
|
|
8
|
+
> {
|
|
9
|
+
url: URL;
|
|
10
|
+
params: PageParams;
|
|
11
|
+
fetch(info: RequestInfo, init?: RequestInit): Promise<Response>;
|
|
12
|
+
session: Session;
|
|
13
|
+
stuff: Stuff;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ErrorLoadInput<
|
|
17
|
+
PageParams extends Record<string, string> = Record<string, string>,
|
|
18
|
+
Stuff extends Record<string, any> = Record<string, any>,
|
|
19
|
+
Session = any
|
|
20
|
+
> extends LoadInput<PageParams, Stuff, Session> {
|
|
21
|
+
status?: number;
|
|
22
|
+
error?: Error;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface LoadOutput<
|
|
26
|
+
Props extends Record<string, any> = Record<string, any>,
|
|
27
|
+
Stuff extends Record<string, any> = Record<string, any>
|
|
28
|
+
> {
|
|
29
|
+
status?: number;
|
|
30
|
+
error?: string | Error;
|
|
31
|
+
redirect?: string;
|
|
32
|
+
props?: Props;
|
|
33
|
+
stuff?: Stuff;
|
|
34
|
+
maxage?: number;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface LoadInputExtends {
|
|
38
|
+
stuff?: Record<string, any>;
|
|
39
|
+
pageParams?: Record<string, string>;
|
|
40
|
+
session?: any;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface LoadOutputExtends {
|
|
44
|
+
stuff?: Record<string, any>;
|
|
45
|
+
props?: Record<string, any>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface Load<
|
|
49
|
+
Input extends LoadInputExtends = Required<LoadInputExtends>,
|
|
50
|
+
Output extends LoadOutputExtends = Required<LoadOutputExtends>
|
|
51
|
+
> {
|
|
52
|
+
(
|
|
53
|
+
input: LoadInput<
|
|
54
|
+
InferValue<Input, 'pageParams', Record<string, string>>,
|
|
55
|
+
InferValue<Input, 'stuff', Record<string, any>>,
|
|
56
|
+
InferValue<Input, 'session', any>
|
|
57
|
+
>
|
|
58
|
+
): MaybePromise<
|
|
59
|
+
Either<
|
|
60
|
+
Fallthrough,
|
|
61
|
+
LoadOutput<
|
|
62
|
+
InferValue<Output, 'props', Record<string, any>>,
|
|
63
|
+
InferValue<Output, 'stuff', Record<string, any>>
|
|
64
|
+
>
|
|
65
|
+
>
|
|
66
|
+
>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface ErrorLoad<
|
|
70
|
+
Input extends LoadInputExtends = Required<LoadInputExtends>,
|
|
71
|
+
Output extends LoadOutputExtends = Required<LoadOutputExtends>
|
|
72
|
+
> {
|
|
73
|
+
(
|
|
74
|
+
input: ErrorLoadInput<
|
|
75
|
+
InferValue<Input, 'pageParams', Record<string, string>>,
|
|
76
|
+
InferValue<Input, 'stuff', Record<string, any>>,
|
|
77
|
+
InferValue<Input, 'session', any>
|
|
78
|
+
>
|
|
79
|
+
): MaybePromise<
|
|
80
|
+
LoadOutput<
|
|
81
|
+
InferValue<Output, 'props', Record<string, any>>,
|
|
82
|
+
InferValue<Output, 'stuff', Record<string, any>>
|
|
83
|
+
>
|
|
84
|
+
>;
|
|
85
|
+
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
# @sveltejs/kit
|
|
2
|
-
|
|
3
|
-
## 1.0.0-next.24
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- 26643df: Account for config.paths when prerendering
|
|
8
|
-
|
|
9
|
-
## 1.0.0-next.23
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- 9b758aa: Upgrade to Snowpack 3
|
|
14
|
-
|
|
15
|
-
## 1.0.0-next.22
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- bb68595: use readFileSync instead of createReadStream
|
|
20
|
-
|
|
21
|
-
## 1.0.0-next.21
|
|
22
|
-
|
|
23
|
-
### Patch Changes
|
|
24
|
-
|
|
25
|
-
- 217e4cc: Set paths to empty string before prerender
|
|
26
|
-
|
|
27
|
-
## 1.0.0-next.20
|
|
28
|
-
|
|
29
|
-
### Patch Changes
|
|
30
|
-
|
|
31
|
-
- ccf4aa7: Implement prerender config
|
|
32
|
-
|
|
33
|
-
## 1.0.0-next.19
|
|
34
|
-
|
|
35
|
-
### Patch Changes
|
|
36
|
-
|
|
37
|
-
- deda984: Make navigating store contain from and to properties
|
|
38
|
-
|
|
39
|
-
## 1.0.0-next.18
|
|
40
|
-
|
|
41
|
-
### Patch Changes
|
|
42
|
-
|
|
43
|
-
- c29b61e: Announce page changes
|
|
44
|
-
- 72da270: Reset focus properly
|
|
45
|
-
|
|
46
|
-
## 1.0.0-next.17
|
|
47
|
-
|
|
48
|
-
### Patch Changes
|
|
49
|
-
|
|
50
|
-
- f7dea55: Set process.env.NODE_ENV when invoking via the CLI
|
|
51
|
-
|
|
52
|
-
## 1.0.0-next.16
|
|
53
|
-
|
|
54
|
-
### Patch Changes
|
|
55
|
-
|
|
56
|
-
- Remove temporary logging
|
|
57
|
-
- Add sveltekit:prefetch and sveltekit:noscroll
|
|
58
|
-
|
|
59
|
-
## 1.0.0-next.15
|
|
60
|
-
|
|
61
|
-
### Patch Changes
|
|
62
|
-
|
|
63
|
-
- 6d1bb11: Fix AMP CSS
|
|
64
|
-
- d8b53af: Ignore $layout and $error files when finding static paths
|
|
65
|
-
- Better scroll tracking
|
|
66
|
-
|
|
67
|
-
## 1.0.0-next.14
|
|
68
|
-
|
|
69
|
-
### Patch Changes
|
|
70
|
-
|
|
71
|
-
- Fix dev loader
|
|
72
|
-
|
|
73
|
-
## 1.0.0-next.13
|
|
74
|
-
|
|
75
|
-
### Patch Changes
|
|
76
|
-
|
|
77
|
-
- 1ea4d6b: More robust CSS extraction
|
|
78
|
-
|
|
79
|
-
## 1.0.0-next.12
|
|
80
|
-
|
|
81
|
-
### Patch Changes
|
|
82
|
-
|
|
83
|
-
- e7c88dd: Tweak AMP validation screen
|
|
84
|
-
|
|
85
|
-
## 1.0.0-next.11
|
|
86
|
-
|
|
87
|
-
### Patch Changes
|
|
88
|
-
|
|
89
|
-
- a31f218: Fix SSR loader invalidation
|
|
90
|
-
|
|
91
|
-
## 1.0.0-next.10
|
|
92
|
-
|
|
93
|
-
### Patch Changes
|
|
94
|
-
|
|
95
|
-
- 8b14d29: Omit svelte-data scripts from AMP pages
|
|
96
|
-
|
|
97
|
-
## 1.0.0-next.9
|
|
98
|
-
|
|
99
|
-
### Patch Changes
|
|
100
|
-
|
|
101
|
-
- f5fa223: AMP support
|
|
102
|
-
- 47f2ee1: Always remove trailing slashes
|
|
103
|
-
- 1becb94: Replace preload with load
|
|
104
|
-
|
|
105
|
-
## 1.0.0-next.8
|
|
106
|
-
|
|
107
|
-
### Patch Changes
|
|
108
|
-
|
|
109
|
-
- 15dd751: Use meta http-equiv=refresh
|
|
110
|
-
- be7e031: Fix handling of static files
|
|
111
|
-
- ed6b8fd: Implement \$app/env
|
|
112
|
-
|
|
113
|
-
## 1.0.0-next.7
|
|
114
|
-
|
|
115
|
-
### Patch Changes
|
|
116
|
-
|
|
117
|
-
- 76705b0: make HMR work outside localhost
|
|
118
|
-
|
|
119
|
-
## 1.0.0-next.6
|
|
120
|
-
|
|
121
|
-
### Patch Changes
|
|
122
|
-
|
|
123
|
-
- 0e45255: Move options behind kit namespace, change paths -> kit.files
|
|
124
|
-
- fa7f2b2: Implement live bindings for SSR code
|
|
125
|
-
|
|
126
|
-
## 1.0.0-next.5
|
|
127
|
-
|
|
128
|
-
### Patch Changes
|
|
129
|
-
|
|
130
|
-
- Return dependencies from render
|
|
131
|
-
|
|
132
|
-
## 1.0.0-next.4
|
|
133
|
-
|
|
134
|
-
### Patch Changes
|
|
135
|
-
|
|
136
|
-
- af01b0d: Move renderer out of app assets folder
|
|
137
|
-
|
|
138
|
-
## 1.0.0-next.3
|
|
139
|
-
|
|
140
|
-
### Patch Changes
|
|
141
|
-
|
|
142
|
-
- Add paths to manifest, for static prerendering
|
|
143
|
-
|
|
144
|
-
## 1.0.0-next.2
|
|
145
|
-
|
|
146
|
-
### Patch Changes
|
|
147
|
-
|
|
148
|
-
- Fix typo causing misnamed assets folder
|
|
149
|
-
|
|
150
|
-
## 1.0.0-next.1
|
|
151
|
-
|
|
152
|
-
### Patch Changes
|
|
153
|
-
|
|
154
|
-
- a4bc090: Transform exported functions correctly
|
|
155
|
-
- 00bbf98: Fix nested layouts
|
|
156
|
-
|
|
157
|
-
## 0.0.31-next.0
|
|
158
|
-
|
|
159
|
-
### Patch Changes
|
|
160
|
-
|
|
161
|
-
- ffd7bba: Fix SSR cache invalidation
|
|
162
|
-
|
|
163
|
-
## 0.0.30
|
|
164
|
-
|
|
165
|
-
### Patch Changes
|
|
166
|
-
|
|
167
|
-
- Add back stores(), but with deprecation warning
|
|
168
|
-
- Rename stores.preloading to stores.navigating
|
|
169
|
-
- Rewrite routing logic
|
|
170
|
-
|
|
171
|
-
## 0.0.29
|
|
172
|
-
|
|
173
|
-
### Patch Changes
|
|
174
|
-
|
|
175
|
-
- 10872cc: Normalize request.query
|
|
176
|
-
|
|
177
|
-
## 0.0.28
|
|
178
|
-
|
|
179
|
-
### Patch Changes
|
|
180
|
-
|
|
181
|
-
- Add svelte-kit start command
|
|
182
|
-
|
|
183
|
-
## 0.0.27
|
|
184
|
-
|
|
185
|
-
### Patch Changes
|
|
186
|
-
|
|
187
|
-
- rename CLI to svelte-kit
|
|
188
|
-
- 0904e22: rename svelte CLI to svelte-kit
|
|
189
|
-
- Validate route responses
|
|
190
|
-
- Make paths and target configurable
|
|
191
|
-
|
|
192
|
-
## 0.0.26
|
|
193
|
-
|
|
194
|
-
### Patch Changes
|
|
195
|
-
|
|
196
|
-
- b475ed4: Overhaul adapter API - fixes #166
|
|
197
|
-
- Updated dependencies [b475ed4]
|
|
198
|
-
- @sveltejs/app-utils@0.0.18
|
|
199
|
-
|
|
200
|
-
## 0.0.25
|
|
201
|
-
|
|
202
|
-
### Patch Changes
|
|
203
|
-
|
|
204
|
-
- Updated dependencies [3bdf33b]
|
|
205
|
-
- @sveltejs/app-utils@0.0.17
|
|
206
|
-
|
|
207
|
-
## 0.0.24
|
|
208
|
-
|
|
209
|
-
### Patch Changes
|
|
210
|
-
|
|
211
|
-
- 67eaeea: Move app-utils stuff into subpackages
|
|
212
|
-
- 7f8df30: Move kit runtime code, expose via \$app aliases
|
|
213
|
-
- Updated dependencies [67eaeea]
|
|
214
|
-
- @sveltejs/app-utils@0.0.16
|
|
215
|
-
|
|
216
|
-
## 0.0.23
|
|
217
|
-
|
|
218
|
-
### Patch Changes
|
|
219
|
-
|
|
220
|
-
- a163000: Parse body on incoming requests
|
|
221
|
-
- a346eab: Copy over latest Sapper router code
|
|
222
|
-
- Updated dependencies [a163000]
|
|
223
|
-
- @sveltejs/app-utils@0.0.15
|
|
224
|
-
|
|
225
|
-
## 0.0.22
|
|
226
|
-
|
|
227
|
-
### Patch Changes
|
|
228
|
-
|
|
229
|
-
- Force bump version
|
|
230
|
-
|
|
231
|
-
## 0.0.21
|
|
232
|
-
|
|
233
|
-
### Patch Changes
|
|
234
|
-
|
|
235
|
-
- Build setup entry point
|
|
236
|
-
- Work around pkg.exports constraint
|
|
237
|
-
- Respond with 500s if render fails
|
|
238
|
-
- Updated dependencies [undefined]
|
|
239
|
-
- Updated dependencies [undefined]
|
|
240
|
-
- Updated dependencies [undefined]
|
|
241
|
-
- @sveltejs/app-utils@0.0.14
|
|
242
|
-
|
|
243
|
-
## 0.0.20
|
|
244
|
-
|
|
245
|
-
### Patch Changes
|
|
246
|
-
|
|
247
|
-
- Pass setup module to renderer
|
|
248
|
-
- Bump Snowpack version
|
|
249
|
-
- Updated dependencies [undefined]
|
|
250
|
-
- Updated dependencies [96c06d8]
|
|
251
|
-
- @sveltejs/app-utils@0.0.13
|
|
252
|
-
|
|
253
|
-
## 0.0.19
|
|
254
|
-
|
|
255
|
-
### Patch Changes
|
|
256
|
-
|
|
257
|
-
- fa9d7ce: Handle import.meta in SSR module loader
|
|
258
|
-
- 0320208: Rename 'server route' to 'endpoint'
|
|
259
|
-
- b9444d2: Update to Snowpack 2.15
|
|
260
|
-
- 5ca907c: Use shared mkdirp helper
|
|
261
|
-
- Updated dependencies [0320208]
|
|
262
|
-
- Updated dependencies [5ca907c]
|
|
263
|
-
- @sveltejs/app-utils@0.0.12
|
|
264
|
-
|
|
265
|
-
## 0.0.18
|
|
266
|
-
|
|
267
|
-
### Patch Changes
|
|
268
|
-
|
|
269
|
-
- Updated dependencies [undefined]
|
|
270
|
-
- @sveltejs/app-utils@0.0.11
|
|
271
|
-
|
|
272
|
-
## 0.0.17
|
|
273
|
-
|
|
274
|
-
### Patch Changes
|
|
275
|
-
|
|
276
|
-
- 19323e9: Update Snowpack
|
|
277
|
-
- Updated dependencies [19323e9]
|
|
278
|
-
- @sveltejs/app-utils@0.0.10
|
|
279
|
-
|
|
280
|
-
## 0.0.16
|
|
281
|
-
|
|
282
|
-
### Patch Changes
|
|
283
|
-
|
|
284
|
-
- Updated dependencies [90a98ae]
|
|
285
|
-
- @sveltejs/app-utils@0.0.9
|
|
286
|
-
|
|
287
|
-
## 0.0.15
|
|
288
|
-
|
|
289
|
-
### Patch Changes
|
|
290
|
-
|
|
291
|
-
- Updated dependencies [undefined]
|
|
292
|
-
- @sveltejs/app-utils@0.0.8
|
|
293
|
-
|
|
294
|
-
## 0.0.14
|
|
295
|
-
|
|
296
|
-
### Patch Changes
|
|
297
|
-
|
|
298
|
-
- various
|
|
299
|
-
- Updated dependencies [undefined]
|
|
300
|
-
- @sveltejs/app-utils@0.0.7
|