-> v0.6.0

This commit is contained in:
Rich Harris
2018-02-03 13:09:31 -05:00
parent 6554fc8616
commit fd1ad74144
3 changed files with 13 additions and 2 deletions

View File

@@ -1,5 +1,16 @@
# sapper changelog
## 0.6.0
* Hydrate on first load, and only on first load ([#93](https://github.com/sveltejs/sapper/pull/93))
* Identify clashes between page and server routes ([#96](https://github.com/sveltejs/sapper/pull/96))
* Remove Express-specific utilities, for compatbility with Polka et al ([#94](https://github.com/sveltejs/sapper/issues/94))
* Return a promise from `init` when first page has rendered ([#99](https://github.com/sveltejs/sapper/issues/99))
* Handle invalid hash links ([#104](https://github.com/sveltejs/sapper/pull/104))
* Avoid `URLSearchParams` ([#107](https://github.com/sveltejs/sapper/pull/107))
* Don't automatically set `Content-Type` for server routes ([#111](https://github.com/sveltejs/sapper/pull/111))
* Handle empty query string routes, e.g. `/?` ([#105](https://github.com/sveltejs/sapper/pull/105))
## 0.5.1
* Only write service-worker.js to filesystem in dev mode ([#90](https://github.com/sveltejs/sapper/issues/90))

View File

@@ -1,6 +1,6 @@
{
"name": "sapper",
"version": "0.5.1",
"version": "0.6.0",
"description": "Military-grade apps, engineered by Svelte",
"main": "middleware.js",
"bin": {

View File

@@ -151,7 +151,7 @@ function get_route_handler(get_assets, get_routes) {
if (route.type === 'page') {
// for page routes, we're going to serve some HTML
res.setHeader('Content-Type', 'text/html');
// preload main.js and current route
// TODO detect other stuff we can preload? images, CSS, fonts?
res.setHeader('Link', `<${client.main_file}>;rel="preload";as="script", <${client.routes[route.id]}>;rel="preload";as="script"`);