Skip to content

Commit

Permalink
(chore) bump Svelte version (#1474)
Browse files Browse the repository at this point in the history
support for const in if blocks in new transformation
#1470
  • Loading branch information
dummdidumm committed May 10, 2022
1 parent bb58b0c commit bcf6b6a
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/language-server/package.json
Expand Up @@ -54,7 +54,7 @@
"lodash": "^4.17.21",
"prettier": "2.5.1",
"prettier-plugin-svelte": "~2.7.0",
"svelte": "^3.47.0",
"svelte": "^3.48.0",
"svelte-preprocess": "~4.10.1",
"svelte2tsx": "~0.5.0",
"typescript": "*",
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte2tsx/package.json
Expand Up @@ -34,7 +34,7 @@
"rollup-plugin-delete": "^2.0.0",
"source-map-support": "^0.5.16",
"sourcemap-codec": "^1.4.8",
"svelte": "~3.47.0",
"svelte": "~3.48.0",
"tiny-glob": "^0.2.6",
"tslib": "^1.10.0",
"typescript": "^4.6.2"
Expand Down
@@ -0,0 +1,10 @@
<>{(name == "world") ? <>
{@const hello = name}
<h1>Hello {hello}</h1>
</> : (true) ? <>
{@const hello = name}
<h1>Hello {hello}</h1>
</> : <>
{@const hello = name}
<h1>Hello {hello}</h1>
</> }</>
@@ -0,0 +1,10 @@
if(name == "world"){
const hello = name;
{ svelteHTML.createElement("h1", {}); hello; }
} else if (true){
const hello = name;
{ svelteHTML.createElement("h1", {}); hello; }
}else{
const hello = name;
{ svelteHTML.createElement("h1", {}); hello; }
}
@@ -0,0 +1,10 @@
{#if name == "world"}
{@const hello = name}
<h1>Hello {hello}</h1>
{:else if true}
{@const hello = name}
<h1>Hello {hello}</h1>
{:else}
{@const hello = name}
<h1>Hello {hello}</h1>
{/if}
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2539,10 +2539,10 @@ svelte-preprocess@~4.10.1:
sorcery "^0.10.0"
strip-indent "^3.0.0"

svelte@^3.47.0, svelte@~3.47.0:
version "3.47.0"
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.47.0.tgz#ba46fe4aea99fc650d6939c215cd4694f5325a19"
integrity sha512-4JaJp3HEoTCGARRWZQIZDUanhYv0iyoHikklVHVLH9xFE9db22g4TDv7CPeNA8HD1JgjXI1vlhR1JZvvhaTu2Q==
svelte@^3.48.0, svelte@~3.48.0:
version "3.48.0"
resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.48.0.tgz#f98c866d45e155bad8e1e88f15f9c03cd28753d3"
integrity sha512-fN2YRm/bGumvjUpu6yI3BpvZnpIm9I6A7HR4oUNYd7ggYyIwSA/BX7DJ+UXXffLp6XNcUijyLvttbPVCYa/3xQ==

table@^5.2.3:
version "5.4.6"
Expand Down

0 comments on commit bcf6b6a

Please sign in to comment.