From a16dea8af655d61b9cabd36444839313569e80be Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Sun, 26 Jun 2022 07:09:25 -0300 Subject: [PATCH] fix(svelte): empty await block --- packages/fastify-dx-svelte/README.md | 2 +- packages/fastify-dx-svelte/package.json | 2 +- packages/fastify-dx-svelte/virtual/route.svelte | 2 +- starters/svelte/package.json | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/fastify-dx-svelte/README.md b/packages/fastify-dx-svelte/README.md index b54efcf..ee478c5 100644 --- a/packages/fastify-dx-svelte/README.md +++ b/packages/fastify-dx-svelte/README.md @@ -17,7 +17,7 @@ **Fastify DX for Svelte** is a renderer adapter for [**fastify-vite**](https://github.com/fastify/fastify-vite). -It lets you run and SSR (server-side render) **Svelte applications built with Vite** on [Fastify](https://fastify.io/), with a minimal and transparent **server-first approach** — everything starts with `server.js`, your actual Fastify server). +It lets you run and SSR (server-side render) **Svelte applications built with Vite** on [Fastify](https://fastify.io/), with a minimal and transparent **server-first approach** — everything starts with `server.js`, your actual Fastify server. It also provides a set of built-in utilities for ease of development and managing a universal JavaScript context (SSR to CSR), very much like **Nuxt.js**, **Next.js** and **Remix**. All **Fastify DX** framework adapters implement the [URMA specification](https://github.com/fastify/fastify-dx/blob/main/URMA.md) and have almost the same API, with only minimal differences due to specific framework APIs or idioms. diff --git a/packages/fastify-dx-svelte/package.json b/packages/fastify-dx-svelte/package.json index d31f954..1deb679 100644 --- a/packages/fastify-dx-svelte/package.json +++ b/packages/fastify-dx-svelte/package.json @@ -5,7 +5,7 @@ "type": "module", "main": "index.js", "name": "fastify-dx-svelte", - "version": "0.0.1", + "version": "0.0.2", "files": [ "virtual/root.svelte", "virtual/route.svelte", diff --git a/packages/fastify-dx-svelte/virtual/route.svelte b/packages/fastify-dx-svelte/virtual/route.svelte index 978bbd2..8d670f1 100644 --- a/packages/fastify-dx-svelte/virtual/route.svelte +++ b/packages/fastify-dx-svelte/virtual/route.svelte @@ -75,7 +75,7 @@ let setupClientRouteContext = !isServer && setup() {:else} -{#await setupClientRouteContext}{:then} +{#await setupClientRouteContext then} diff --git a/starters/svelte/package.json b/starters/svelte/package.json index ed691a3..48d5f1f 100644 --- a/starters/svelte/package.json +++ b/starters/svelte/package.json @@ -10,10 +10,10 @@ "lint": "eslint . --ext .js,.svelte --fix" }, "dependencies": { - "fastify-dx-svelte": "^0.0.1-pre", + "fastify-dx-svelte": "^0.0.2", "fastify-vite": "^3.0.0-beta.23", - "ky": "^0.31.0", - "ky-universal": "^0.10.1" + "ky-universal": "^0.10.1", + "ky": "^0.31.0" }, "devDependencies": { "@babel/eslint-parser": "^7.16.0", @@ -37,4 +37,4 @@ "ky": "^0.31.0" } } -} +} \ No newline at end of file