Skip to content

Commit

Permalink
Merge pull request #23 from ssssota/bumpup-svelte
Browse files Browse the repository at this point in the history
chore: Bumpup svelte
  • Loading branch information
ssssota authored Aug 11, 2024
2 parents aeb526e + 69be0eb commit ee90d82
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 50 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-pugs-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"svelte-twc": patch
---

Bumpup svelte (next.214)
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
72 changes: 36 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 4 additions & 10 deletions src/internal/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ee90d82

Please sign in to comment.