feat: upgrade app to svelte-5

This commit is contained in:
2024-11-02 17:21:04 +01:00
parent a87add30ff
commit fa659ab74e
12 changed files with 1754 additions and 7340 deletions

View File

@ -16,6 +16,6 @@
},
"devDependencies": {
"comlink": "^4.4.1",
"vite-plugin-comlink": "^4.0.3"
"vite-plugin-comlink": "^5.1.0"
}
}

View File

@ -3,7 +3,7 @@
import type { Graph, RuntimeExecutor } from "@nodes/types";
export class WorkerRuntimeExecutor implements RuntimeExecutor {
private worker = new ComlinkWorker<typeof import('./worker-runtime-executor-backend.ts')>(new URL("./worker-runtime-executor-backend.ts", import.meta.url));
private worker = new ComlinkWorker<typeof import('./worker-runtime-executor-backend.ts')>(new URL("worker-runtime-executor-backend.ts", import.meta.url));
constructor() {
}
async execute(graph: Graph, settings: Record<string, unknown>) {

View File

@ -13,6 +13,6 @@
"author": "",
"license": "ISC",
"dependencies": {
"zod": "^3.23.5"
"zod": "^3.23.8"
}
}

View File

@ -31,35 +31,35 @@
},
"devDependencies": {
"@storybook/addon-essentials": "^8.4.1",
"@storybook/addon-svelte-csf": "^5.0.0-next.10",
"@storybook/addon-svelte-csf": "5.0.0-next.10",
"@storybook/addon-themes": "^8.4.1",
"@storybook/svelte": "^8.4.1",
"@storybook/sveltekit": "^8.4.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/kit": "^2.5.27",
"@sveltejs/package": "^2.3.1",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.7.4",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@types/eslint": "^8.56.10",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"eslint": "^9.1.1",
"eslint-plugin-storybook": "^0.10.1",
"eslint-plugin-svelte": "^2.45.1",
"publint": "^0.2.7",
"@types/eslint": "^9.6.1",
"@typescript-eslint/eslint-plugin": "^8.12.2",
"@typescript-eslint/parser": "^8.12.2",
"eslint": "^9.14.0",
"eslint-plugin-storybook": "^0.10.2",
"eslint-plugin-svelte": "^2.46.0",
"publint": "^0.2.12",
"storybook": "^8.4.1",
"svelte": "^5.0.0",
"svelte-check": "^4.0.0",
"tslib": "^2.6.2",
"typescript": "^5.5.0",
"vite": "^5.4.4",
"vitest": "^1.5.2"
"svelte": "^5.1.9",
"svelte-check": "^4.0.5",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vitest": "^2.1.4"
},
"svelte": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"dependencies": {
"@nodes/types": "link:../types",
"@threlte/core": "^7.3.0",
"@threlte/extras": "^8.11.2"
"@threlte/core": "^7.3.1",
"@threlte/extras": "^8.12.0"
}
}

View File

@ -1,15 +1,11 @@
<script lang="ts">
import { run } from 'svelte/legacy';
interface Props {
value: boolean;
id?: string;
}
let { value = $bindable(), id = '' }: Props = $props();
run(() => {
$effect(() => {
if (typeof value === 'string') {
value = value === 'true';
} else if (typeof value === 'number') {

View File

@ -13,7 +13,7 @@
"@nodes/types": "link:../types"
},
"devDependencies": {
"vite": "^5.2.10",
"vitest": "^1.5.3"
"vite": "^5.4.10",
"vitest": "^2.1.4"
}
}