Skip to content

Commit 2e66534

Browse files
committed
[Svelte] Add support for Svelte 5
1 parent c30afe1 commit 2e66534

File tree

14 files changed

+188
-482
lines changed

14 files changed

+188
-482
lines changed

UPGRADE-3.0.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class MyLiveComponent {
3838
* Options `authReferrerPolicy`, `mapIds`, `channel`, `solutionChannel` have been added
3939
* Options `ìd`, `nonce`, `retries`, `url` have been removed
4040

41+
## Svelte
42+
43+
* The support for Svelte 3 has been dropped, only Svelte 5 is supported now.
44+
Make sure to upgrade your Svelte components accordingly.
45+
46+
TODO: to complete...
47+
4148
## Swup
4249

4350
* The package has been removed, see the [previous README](https://raw.githubusercontent.com/symfony/ux/refs/heads/2.x/src/Turbo/README.md)

pnpm-lock.yaml

Lines changed: 74 additions & 86 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Svelte/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Minimum required Symfony version is now 6.4
66
- Minimum required PHP version is now 8.2
77
- Remove old compatibility layer with deprecated `StimulusTwigExtension` from WebpackEncoreBundle ^1.0, use StimulusBundle instead
8+
- Drop support of Svelte 3, only Svelte 5 is supported now
89

910
## 2.30
1011

src/Svelte/assets/dist/render_controller.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ declare class export_default extends Controller<Element & {
1616
intro: BooleanConstructor;
1717
};
1818
connect(): void;
19-
disconnect(): void;
20-
_destroyIfExists(): void;
19+
disconnect(): Promise<void>;
20+
_destroyIfExists(): Promise<void>;
2121
private dispatchEvent;
2222
}
2323

0 commit comments

Comments
 (0)