From 69be0eb86c296b3801f12a8073e18c223a49055e Mon Sep 17 00:00:00 2001 From: TOMIKAWA Sotaro Date: Sun, 11 Aug 2024 11:04:21 +0900 Subject: [PATCH] chore: Bumpup svelte --- .changeset/perfect-pugs-fold.md | 5 +++ package.json | 6 +-- pnpm-lock.yaml | 72 ++++++++++++++++----------------- site/package.json | 2 +- src/internal/client.ts | 14 ++----- 5 files changed, 49 insertions(+), 50 deletions(-) create mode 100644 .changeset/perfect-pugs-fold.md diff --git a/.changeset/perfect-pugs-fold.md b/.changeset/perfect-pugs-fold.md new file mode 100644 index 0000000..fa03964 --- /dev/null +++ b/.changeset/perfect-pugs-fold.md @@ -0,0 +1,5 @@ +--- +"svelte-twc": patch +--- + +Bumpup svelte (next.214) diff --git a/package.json b/package.json index 108e6c3..c205a5e 100644 --- a/package.json +++ b/package.json @@ -43,17 +43,17 @@ "esbuild": "^0.20.2", "prettier": "^3.1.1", "prettier-plugin-svelte": "^3.2.3", - "svelte": "5.0.0-next.189", + "svelte": "5.0.0-next.214", "tsx": "^4.7.2", "typescript": "^5.4.5", "vite": "^5.2.10" }, "peerDependencies": { - "svelte": ">=5.0.0-next.189", + "svelte": ">=5.0.0-next.214", "vite": ">=2.0.0" }, "files": [ "dist" ], - "packageManager": "pnpm@9.5.0+sha512.140036830124618d624a2187b50d04289d5a087f326c9edfc0ccd733d76c4f52c3a313d4fc148794a2a9d81553016004e6742e8cf850670268a7387fc220c903" + "packageManager": "pnpm@9.7.0+sha256.b35018fbfa8f583668b2649e407922a721355cd81f61beeb4ac1d4258e585559" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc90d60..316b26b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,10 +25,10 @@ importers: version: 3.2.5 prettier-plugin-svelte: specifier: ^3.2.3 - version: 3.2.3(prettier@3.2.5)(svelte@5.0.0-next.189) + version: 3.2.3(prettier@3.2.5)(svelte@5.0.0-next.214) svelte: - specifier: 5.0.0-next.189 - version: 5.0.0-next.189 + specifier: 5.0.0-next.214 + version: 5.0.0-next.214 tsx: specifier: ^4.7.2 version: 4.7.2 @@ -43,20 +43,20 @@ importers: dependencies: svelte-exmarkdown: specifier: ^3.0.3 - version: 3.0.3(svelte@5.0.0-next.189) + version: 3.0.3(svelte@5.0.0-next.214) devDependencies: '@playwright/test': specifier: ^1.43.1 version: 1.43.1 '@sveltejs/adapter-static': specifier: ^3.0.1 - version: 3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7))) + version: 3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7))) '@sveltejs/kit': specifier: ^2.5.7 - version: 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + version: 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) '@sveltejs/vite-plugin-svelte': specifier: ^3.1.0 - version: 3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + version: 3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) autoprefixer: specifier: ^10.4.19 version: 10.4.19(postcss@8.4.38) @@ -70,11 +70,11 @@ importers: specifier: ^7.0.0 version: 7.0.0 svelte: - specifier: 5.0.0-next.189 - version: 5.0.0-next.189 + specifier: 5.0.0-next.214 + version: 5.0.0-next.214 svelte-check: specifier: ^3.6.9 - version: 3.6.9(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.189) + version: 3.6.9(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.214) svelte-twc: specifier: workspace:* version: link:.. @@ -2140,8 +2140,8 @@ packages: typescript: optional: true - svelte@5.0.0-next.189: - resolution: {integrity: sha512-KQ3mJimU/ku2tOMoXMu43RlxDP9EY/1NrB87kXQBPv64+WUKHn4PfGw1cDtqrbCkl4zE3sA+p0QyiI6PfsXbWQ==} + svelte@5.0.0-next.214: + resolution: {integrity: sha512-a4u0hUxhL1oV50Yeplp4rTL01ncn28vSsCm57giC552/4bzCEfj7vWt1HZhkHPrTurD7yxxSFG6RCUHqa9+z5A==} engines: {node: '>=18'} tailwindcss@3.4.3: @@ -2852,13 +2852,13 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.16.4': optional: true - '@sveltejs/adapter-static@3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))': + '@sveltejs/adapter-static@3.0.1(@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))': dependencies: - '@sveltejs/kit': 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + '@sveltejs/kit': 2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) - '@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7))': + '@sveltejs/kit@2.5.7(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) '@types/cookie': 0.6.0 cookie: 0.6.0 devalue: 5.0.0 @@ -2870,28 +2870,28 @@ snapshots: sade: 1.8.1 set-cookie-parser: 2.6.0 sirv: 2.0.4 - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 tiny-glob: 0.2.9 vite: 5.2.10(@types/node@20.12.7) - '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7))': + '@sveltejs/vite-plugin-svelte-inspector@2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7))': dependencies: - '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + '@sveltejs/vite-plugin-svelte': 3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) debug: 4.3.4 - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 vite: 5.2.10(@types/node@20.12.7) transitivePeerDependencies: - supports-color - '@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7))': + '@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7))': dependencies: - '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.189)(vite@5.2.10(@types/node@20.12.7)) + '@sveltejs/vite-plugin-svelte-inspector': 2.1.0(@sveltejs/vite-plugin-svelte@3.1.0(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)))(svelte@5.0.0-next.214)(vite@5.2.10(@types/node@20.12.7)) debug: 4.3.4 deepmerge: 4.3.1 kleur: 4.1.5 magic-string: 0.30.10 - svelte: 5.0.0-next.189 - svelte-hmr: 0.16.0(svelte@5.0.0-next.189) + svelte: 5.0.0-next.214 + svelte-hmr: 0.16.0(svelte@5.0.0-next.214) vite: 5.2.10(@types/node@20.12.7) vitefu: 0.2.5(vite@5.2.10(@types/node@20.12.7)) transitivePeerDependencies: @@ -4316,10 +4316,10 @@ snapshots: path-exists: 4.0.0 which-pm: 2.0.0 - prettier-plugin-svelte@3.2.3(prettier@3.2.5)(svelte@5.0.0-next.189): + prettier-plugin-svelte@3.2.3(prettier@3.2.5)(svelte@5.0.0-next.214): dependencies: prettier: 3.2.5 - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 prettier@2.8.8: {} @@ -4654,7 +4654,7 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} - svelte-check@3.6.9(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.189): + svelte-check@3.6.9(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.214): dependencies: '@jridgewell/trace-mapping': 0.3.25 chokidar: 3.6.0 @@ -4662,8 +4662,8 @@ snapshots: import-fresh: 3.3.0 picocolors: 1.0.0 sade: 1.8.1 - svelte: 5.0.0-next.189 - svelte-preprocess: 5.1.4(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.189)(typescript@5.4.5) + svelte: 5.0.0-next.214 + svelte-preprocess: 5.1.4(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.214)(typescript@5.4.5) typescript: 5.4.5 transitivePeerDependencies: - '@babel/core' @@ -4676,34 +4676,34 @@ snapshots: - stylus - sugarss - svelte-exmarkdown@3.0.3(svelte@5.0.0-next.189): + svelte-exmarkdown@3.0.3(svelte@5.0.0-next.214): dependencies: remark-gfm: 4.0.0 remark-parse: 11.0.0 remark-rehype: 11.1.0 - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 unified: 11.0.4 transitivePeerDependencies: - supports-color - svelte-hmr@0.16.0(svelte@5.0.0-next.189): + svelte-hmr@0.16.0(svelte@5.0.0-next.214): dependencies: - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 - svelte-preprocess@5.1.4(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.189)(typescript@5.4.5): + svelte-preprocess@5.1.4(postcss-load-config@4.0.2(postcss@8.4.38))(postcss@8.4.38)(svelte@5.0.0-next.214)(typescript@5.4.5): dependencies: '@types/pug': 2.0.10 detect-indent: 6.1.0 magic-string: 0.30.10 sorcery: 0.11.0 strip-indent: 3.0.0 - svelte: 5.0.0-next.189 + svelte: 5.0.0-next.214 optionalDependencies: postcss: 8.4.38 postcss-load-config: 4.0.2(postcss@8.4.38) typescript: 5.4.5 - svelte@5.0.0-next.189: + svelte@5.0.0-next.214: dependencies: '@ampproject/remapping': 2.3.0 '@jridgewell/sourcemap-codec': 1.4.15 diff --git a/site/package.json b/site/package.json index e21fc9a..ccc36c4 100644 --- a/site/package.json +++ b/site/package.json @@ -19,7 +19,7 @@ "highlight.js": "^11.9.0", "postcss": "^8.4.38", "rehype-highlight": "^7.0.0", - "svelte": "5.0.0-next.189", + "svelte": "5.0.0-next.214", "svelte-check": "^3.6.9", "svelte-twc": "workspace:*", "tailwindcss": "^3.4.3", diff --git a/src/internal/client.ts b/src/internal/client.ts index 85aebc4..b2f5d14 100644 --- a/src/internal/client.ts +++ b/src/internal/client.ts @@ -24,16 +24,10 @@ return function TwcComponent($$anchor, $$props) { $.snippet(node, () => $$props.children); $.reset(div); - $.template_effect(() => attributes = $.set_attributes( - div, - attributes, - { - ...props, - class: options.compose($$props.class, cls) - }, - true, - "" - )); + $.template_effect(() => attributes = $.set_attributes(div, attributes, { + ...props, + class: options.compose($$props.class, cls) + })); $.append($$anchor, div); $.pop();