Skip to content

Commit 230f396

Browse files
committed
merge main
2 parents 3f93de6 + f2eed15 commit 230f396

File tree

64 files changed

+698
-337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+698
-337
lines changed

.changeset/big-hats-wonder.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@vitest/coverage-v8": "^2.0.5",
3737
"eslint": "^9.9.1",
3838
"eslint-plugin-lube": "^0.4.3",
39-
"jsdom": "25.0.0",
39+
"jsdom": "25.0.1",
4040
"playwright": "^1.46.1",
4141
"prettier": "^3.2.4",
4242
"prettier-plugin-svelte": "^3.1.2",

packages/svelte/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# svelte
22

3+
## 5.2.12
4+
5+
### Patch Changes
6+
7+
- fix: upgrade to esm-env 1.2.1 to fix issues with non-Vite setups ([#14470](https://github.com/sveltejs/svelte/pull/14470))
8+
9+
- fix: prevent infinite loops when pruning CSS ([#14474](https://github.com/sveltejs/svelte/pull/14474))
10+
11+
- fix: generate correct code when encountering object expression statement ([#14480](https://github.com/sveltejs/svelte/pull/14480))
12+
13+
## 5.2.11
14+
15+
### Patch Changes
16+
17+
- fix: ignore text and expressions outside the template when validating HTML ([#14468](https://github.com/sveltejs/svelte/pull/14468))
18+
19+
- fix: better account for render tags when pruning CSS ([#14456](https://github.com/sveltejs/svelte/pull/14456))
20+
21+
## 5.2.10
22+
23+
### Patch Changes
24+
25+
- fix: correctly remove unused selectors in middle of selector lists ([#14448](https://github.com/sveltejs/svelte/pull/14448))
26+
27+
- chore: upgrade esm-env for Vite 6 support ([#14460](https://github.com/sveltejs/svelte/pull/14460))
28+
29+
- fix: strip exported TypeScript function overloads ([#14458](https://github.com/sveltejs/svelte/pull/14458))
30+
331
## 5.2.9
432

533
### Patch Changes

packages/svelte/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svelte",
33
"description": "Cybernetically enhanced web apps",
44
"license": "MIT",
5-
"version": "5.2.9",
5+
"version": "5.2.12",
66
"type": "module",
77
"types": "./types/index.d.ts",
88
"engines": {
@@ -142,8 +142,8 @@
142142
"acorn-typescript": "^1.4.13",
143143
"aria-query": "^5.3.1",
144144
"axobject-query": "^4.1.0",
145-
"esm-env": "^1.0.0",
146-
"esrap": "^1.2.2",
145+
"esm-env": "^1.2.1",
146+
"esrap": "^1.2.3",
147147
"is-reference": "^3.0.3",
148148
"locate-character": "^3.0.0",
149149
"magic-string": "^0.30.11",

packages/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ const visitors = {
3636
if (node.exportKind === 'type') return b.empty;
3737

3838
if (node.declaration) {
39-
return context.next();
39+
const result = context.next();
40+
if (result?.declaration?.type === 'EmptyStatement') {
41+
return b.empty;
42+
}
43+
return result;
4044
}
4145

4246
if (node.specifiers) {

packages/svelte/src/compiler/phases/1-parse/state/tag.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,10 @@ function open(parser) {
314314
name
315315
},
316316
parameters: function_expression.params,
317-
body: create_fragment()
317+
body: create_fragment(),
318+
metadata: {
319+
sites: new Set()
320+
}
318321
});
319322
parser.stack.push(block);
320323
parser.fragments.push(block.body);
@@ -605,7 +608,8 @@ function special(parser) {
605608
metadata: {
606609
dynamic: false,
607610
args_with_call_expression: new Set(),
608-
path: []
611+
path: [],
612+
snippets: new Set()
609613
}
610614
});
611615
}

0 commit comments

Comments
 (0)