From 5104abf3294550ec09f159f3a9448a734f88b780 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Sat, 3 Feb 2018 13:09:31 -0500 Subject: [PATCH] -> v0.6.0 --- CHANGELOG.md | 11 +++++++++++ package.json | 2 +- src/middleware/index.ts | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 781a56c..5b4940b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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)) diff --git a/package.json b/package.json index 6d58c16..60e8762 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/middleware/index.ts b/src/middleware/index.ts index 3f9be26..506bdbb 100644 --- a/src/middleware/index.ts +++ b/src/middleware/index.ts @@ -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"`);