From 53cc69c2c7b7b8b58cfdecea30d05e8874c85927 Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Thu, 30 Jun 2022 20:41:18 -0300 Subject: [PATCH 1/2] fix: no need to initialize hydration --- packages/fastify-dx-svelte/index.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/fastify-dx-svelte/index.js b/packages/fastify-dx-svelte/index.js index 0ab519f..9e7da1d 100644 --- a/packages/fastify-dx-svelte/index.js +++ b/packages/fastify-dx-svelte/index.js @@ -55,8 +55,6 @@ export function createHtmlFunction (source, scope, config) { const soFooterTemplate = createHtmlTemplateFunction(soFooterSource) // This function gets registered as reply.html() return function ({ routes, context, app }) { - // Initialize hydration, which can stay empty if context.serverOnly is true - let hydration = '' // Decide which templating functions to use, with and without hydration const headTemplate = context.serverOnly ? soHeadTemplate : unHeadTemplate const footerTemplate = context.serverOnly ? soFooterTemplate : unFooterTemplate From cd8470558254ecbc04a0eb4d8b4b5a50e0159fe5 Mon Sep 17 00:00:00 2001 From: Jonas Galvez Date: Thu, 30 Jun 2022 20:43:14 -0300 Subject: [PATCH 2/2] bump --- packages/fastify-dx-svelte/package.json | 2 +- starters/svelte/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fastify-dx-svelte/package.json b/packages/fastify-dx-svelte/package.json index 1deb679..a2b164b 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.2", + "version": "0.0.3", "files": [ "virtual/root.svelte", "virtual/route.svelte", diff --git a/starters/svelte/package.json b/starters/svelte/package.json index 48d5f1f..d8bb998 100644 --- a/starters/svelte/package.json +++ b/starters/svelte/package.json @@ -10,7 +10,7 @@ "lint": "eslint . --ext .js,.svelte --fix" }, "dependencies": { - "fastify-dx-svelte": "^0.0.2", + "fastify-dx-svelte": "^0.0.3", "fastify-vite": "^3.0.0-beta.23", "ky-universal": "^0.10.1", "ky": "^0.31.0"