From 53f400a4f6c35649b18e7a29e5b1dcccaaa94c43 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Thu, 19 Dec 2024 15:35:22 +0100 Subject: [PATCH] fix: some svelte 5 issues --- app/package.json | 32 +- app/src/lib/graph-interface/edges/Edge.svelte | 19 +- .../edges/createEdgeGeometry.ts | 2 +- .../graph-interface/graph/colors.svelte.ts | 7 +- app/src/lib/graph-interface/node/Node.svelte | 6 +- .../lib/graph-interface/node/NodeHTML.svelte | 5 +- .../lib/graph-interface/node/NodeInput.svelte | 13 +- app/src/lib/node-store/DraggableNode.svelte | 1 - package.json | 3 +- pnpm-lock.yaml | 2651 ++++++++++------- 10 files changed, 1583 insertions(+), 1156 deletions(-) diff --git a/app/package.json b/app/package.json index f27c68c..c4ec430 100644 --- a/app/package.json +++ b/app/package.json @@ -13,34 +13,34 @@ "@nodes/registry": "link:../packages/registry", "@nodes/ui": "link:../packages/ui", "@nodes/utils": "link:../packages/utils", - "@sveltejs/kit": "^2.7.4", + "@sveltejs/kit": "^2.12.2", "@threlte/core": "8.0.0-next.23", "@threlte/extras": "9.0.0-next.33", - "@types/three": "^0.169.0", - "@unocss/reset": "^0.63.6", - "comlink": "^4.4.1", + "@types/three": "^0.171.0", + "@unocss/reset": "^0.65.2", + "comlink": "^4.4.2", "file-saver": "^2.0.5", - "idb": "^8.0.0", + "idb": "^8.0.1", "jsondiffpatch": "^0.6.0", - "three": "^0.170.0" + "three": "^0.171.0" }, "devDependencies": { - "@iconify-json/tabler": "^1.2.7", + "@iconify-json/tabler": "^1.2.13", "@nodes/types": "link:../packages/types", "@sveltejs/adapter-static": "^3.0.6", - "@sveltejs/vite-plugin-svelte": "^4.0.0", + "@sveltejs/vite-plugin-svelte": "^5.0.3", "@tsconfig/svelte": "^5.0.4", "@types/file-saver": "^2.0.7", - "@unocss/preset-icons": "^0.63.6", - "svelte": "^5.1.9", - "svelte-check": "^4.0.5", + "@unocss/preset-icons": "^0.65.2", + "svelte": "^5.14.4", + "svelte-check": "^4.1.1", "tslib": "^2.8.1", - "typescript": "^5.6.3", - "unocss": "^0.63.6", - "vite": "^5.4.10", + "typescript": "^5.7.2", + "unocss": "^0.65.2", + "vite": "^6.0.4", "vite-plugin-comlink": "^5.1.0", - "vite-plugin-glsl": "^1.3.0", + "vite-plugin-glsl": "^1.3.1", "vite-plugin-wasm": "^3.3.0", - "vitest": "^2.1.4" + "vitest": "^2.1.8" } } diff --git a/app/src/lib/graph-interface/edges/Edge.svelte b/app/src/lib/graph-interface/edges/Edge.svelte index c91f709..785ed3a 100644 --- a/app/src/lib/graph-interface/edges/Edge.svelte +++ b/app/src/lib/graph-interface/edges/Edge.svelte @@ -9,7 +9,7 @@ $effect(() => { appSettings.theme; circleMaterial.color = colors.edge.clone().convertSRGBToLinear(); - }) + }); }); const lineCache = new Map(); @@ -25,23 +25,25 @@