@sveltejs/kit 1.0.0-next.293 → 1.0.0-next.294
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/dist/chunks/index2.js +8 -1
- package/dist/cli.js +2 -2
- package/package.json +1 -1
- package/types/ambient.d.ts +3 -8
package/dist/chunks/index2.js
CHANGED
|
@@ -56,7 +56,12 @@ async function build_service_worker(
|
|
|
56
56
|
fs__default.writeFileSync(
|
|
57
57
|
service_worker,
|
|
58
58
|
`
|
|
59
|
-
|
|
59
|
+
// TODO remove for 1.0
|
|
60
|
+
export const timestamp = {
|
|
61
|
+
toString: () => {
|
|
62
|
+
throw new Error('\`timestamp\` has been removed from $service-worker. Use \`version\` instead');
|
|
63
|
+
}
|
|
64
|
+
};
|
|
60
65
|
|
|
61
66
|
export const build = [
|
|
62
67
|
${Array.from(app_files)
|
|
@@ -75,6 +80,8 @@ async function build_service_worker(
|
|
|
75
80
|
.map((path) => s(normalize_path(path, config.kit.trailingSlash)))
|
|
76
81
|
.join(',\n\t\t\t\t')}
|
|
77
82
|
];
|
|
83
|
+
|
|
84
|
+
export const version = ${s(config.kit.version.name)};
|
|
78
85
|
`
|
|
79
86
|
.replace(/^\t{3}/gm, '')
|
|
80
87
|
.trim()
|
package/dist/cli.js
CHANGED
|
@@ -870,7 +870,7 @@ async function launch(port, https) {
|
|
|
870
870
|
exec(`${cmd} ${https ? 'https' : 'http'}://localhost:${port}`);
|
|
871
871
|
}
|
|
872
872
|
|
|
873
|
-
const prog = sade('svelte-kit').version('1.0.0-next.
|
|
873
|
+
const prog = sade('svelte-kit').version('1.0.0-next.294');
|
|
874
874
|
|
|
875
875
|
prog
|
|
876
876
|
.command('dev')
|
|
@@ -1043,7 +1043,7 @@ async function check_port(port) {
|
|
|
1043
1043
|
function welcome({ port, host, https, open, loose, allow, cwd }) {
|
|
1044
1044
|
if (open) launch(port, https);
|
|
1045
1045
|
|
|
1046
|
-
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.
|
|
1046
|
+
console.log($.bold().cyan(`\n SvelteKit v${'1.0.0-next.294'}\n`));
|
|
1047
1047
|
|
|
1048
1048
|
const protocol = https ? 'https:' : 'http:';
|
|
1049
1049
|
const exposed = typeof host !== 'undefined' && host !== 'localhost' && host !== '127.0.0.1';
|
package/package.json
CHANGED
package/types/ambient.d.ts
CHANGED
|
@@ -207,14 +207,9 @@ declare module '$app/stores' {
|
|
|
207
207
|
export const updated: Readable<boolean> & { check: () => boolean };
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
/**
|
|
211
|
-
* This is a simple alias to `src/lib`, or whatever directory is specified as [`config.kit.files.lib`](/docs/configuration#files). It allows you to access common components and utility modules without `../../../../` nonsense.
|
|
212
|
-
*/
|
|
213
|
-
declare module '$lib' {}
|
|
214
|
-
|
|
215
210
|
/**
|
|
216
211
|
* ```ts
|
|
217
|
-
* import { build, files,
|
|
212
|
+
* import { build, files, prerendered, version } from '$service-worker';
|
|
218
213
|
* ```
|
|
219
214
|
*
|
|
220
215
|
* This module is only available to [service workers](/docs/service-workers).
|
|
@@ -233,9 +228,9 @@ declare module '$service-worker' {
|
|
|
233
228
|
*/
|
|
234
229
|
export const prerendered: string[];
|
|
235
230
|
/**
|
|
236
|
-
*
|
|
231
|
+
* See [`config.kit.version`](/docs/configuration#version). It's useful for generating unique cache names inside your service worker, so that a later deployment of your app can invalidate old caches.
|
|
237
232
|
*/
|
|
238
|
-
export const
|
|
233
|
+
export const version: string;
|
|
239
234
|
}
|
|
240
235
|
|
|
241
236
|
declare module '@sveltejs/kit/hooks' {
|