Skip to content

Commit a9cf04d

Browse files
Upgrade to Svelte 5 (#2587)
* Upgrade svelte and dependencies * Update and fix ErrorBoundary * Fix self-closing html tags * Fix prop type errors * Format code * Fix storybook * Fix search attribute filter * Fix tsconfig warnings, use svelte config for those valeus * Latest upgrades * Fix svelte check errors * Fix formatting --------- Co-authored-by: Alex Thomsen <[email protected]>
1 parent 0772c1c commit a9cf04d

File tree

69 files changed

+1213
-2128
lines changed

Some content is hidden

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

69 files changed

+1213
-2128
lines changed

.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
'plugin:storybook/recommended',
1010
],
1111
plugins: ['svelte', '@typescript-eslint', 'vitest', 'import'],
12-
ignorePatterns: ['**/*.cjs', '/server'],
12+
ignorePatterns: ['**/*.cjs', '/server', '**/error-boundary.svelte'],
1313
overrides: [
1414
{
1515
files: ['src/**/*.svelte'],

.storybook/main.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@ const config: StorybookConfig = {
66
'@storybook/addon-links',
77
'@storybook/addon-essentials',
88
'@storybook/addon-interactions',
9-
'@storybook/addon-svelte-csf',
9+
{
10+
name: '@storybook/addon-svelte-csf',
11+
options: {
12+
// REMOVE WHEN STORIES ARE UPGRADED TO NEW CSF SYNTAX
13+
legacyTemplate: true,
14+
},
15+
},
1016
'@storybook/addon-a11y',
1117
'@storybook/addon-themes',
1218
'@chromatic-com/storybook',

.vscode/temporal-ui.code-snippets

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"Playwright Test": {
33
"prefix": "pwt",
44
"body": ["test('${1}', async ({ page }) => {", " $0", "});"],
5-
"description": "useState()"
6-
}
5+
"description": "useState()",
6+
},
77
}

package.json

+34-35
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,11 @@
8383
"@codemirror/legacy-modes": "^6.4.0",
8484
"@codemirror/state": "^6.4.1",
8585
"@codemirror/view": "^6.29.0",
86-
"@crownframework/svelte-error-boundary": "^1.0.3",
8786
"@fontsource-variable/inter": "^5.0.8",
8887
"@fontsource/noto-sans-mono": "^5.0.9",
8988
"@lezer/highlight": "^1.1.3",
90-
"@storybook/addon-actions": "^8.4.7",
91-
"@sveltejs/package": "^2.2.6",
89+
"@storybook/addon-actions": "^8.6.4",
90+
"@sveltejs/package": "^2.3.10",
9291
"@sveltejs/svelte-virtual-list": "^3.0.1",
9392
"class-variance-authority": "^0.7.0",
9493
"date-fns": "^2.29.3",
@@ -118,25 +117,25 @@
118117
"@axe-core/playwright": "^4.10.1",
119118
"@babel/core": "^7.20.12",
120119
"@babel/preset-typescript": "^7.18.6",
121-
"@chromatic-com/storybook": "^3.2.3",
120+
"@chromatic-com/storybook": "^3.2.6",
122121
"@grpc/grpc-js": "^1.8.22",
123122
"@playwright/test": "^1.49.1",
124-
"@storybook/addon-a11y": "^8.4.7",
125-
"@storybook/addon-essentials": "^8.4.7",
126-
"@storybook/addon-interactions": "^8.4.7",
127-
"@storybook/addon-links": "^8.4.7 ",
128-
"@storybook/addon-svelte-csf": "^4.2.0",
129-
"@storybook/addon-themes": "^8.4.7",
130-
"@storybook/blocks": "^8.4.7",
131-
"@storybook/icons": "^1.3.0",
132-
"@storybook/svelte": "^8.4.7",
133-
"@storybook/sveltekit": "^8.4.7",
134-
"@storybook/test": "^8.4.7",
135-
"@storybook/test-runner": "^0.21.0",
136-
"@sveltejs/adapter-static": "^3.0.0",
123+
"@storybook/addon-a11y": "^8.6.11",
124+
"@storybook/addon-essentials": "^8.6.11",
125+
"@storybook/addon-interactions": "^8.6.11",
126+
"@storybook/addon-links": "^8.6.11",
127+
"@storybook/addon-svelte-csf": "^5.0.0-next.23",
128+
"@storybook/addon-themes": "^8.6.11",
129+
"@storybook/blocks": "^8.6.11",
130+
"@storybook/icons": "^1.4.0",
131+
"@storybook/svelte": "^8.6.11",
132+
"@storybook/sveltekit": "^8.6.11",
133+
"@storybook/test": "^8.6.11",
134+
"@storybook/test-runner": "^0.22.0",
135+
"@sveltejs/adapter-static": "^3.0.8",
137136
"@sveltejs/adapter-vercel": "^4.0.0",
138-
"@sveltejs/kit": "^2.5.0",
139-
"@sveltejs/vite-plugin-svelte": "^3.0.2",
137+
"@sveltejs/kit": "^2.20.2",
138+
"@sveltejs/vite-plugin-svelte": "^5.0.3",
140139
"@temporalio/activity": "1.11.6",
141140
"@temporalio/client": "1.11.6",
142141
"@temporalio/common": "1.11.6",
@@ -157,8 +156,8 @@
157156
"@types/yargs": "^17.0.24",
158157
"@typescript-eslint/eslint-plugin": "^6.6.0",
159158
"@typescript-eslint/parser": "^6.6.0",
160-
"@vitest/coverage-v8": "^1.6.0",
161-
"@vitest/ui": "^1.6.0",
159+
"@vitest/coverage-v8": "^3.1.1",
160+
"@vitest/ui": "^3.1.1",
162161
"autoprefixer": "^10.4.13",
163162
"axe-playwright": "^2.0.3",
164163
"c8": "^7.12.0",
@@ -173,7 +172,7 @@
173172
"eslint-plugin-import": "^2.28.1",
174173
"eslint-plugin-playwright": "^0.15.3",
175174
"eslint-plugin-storybook": "^0.8.0",
176-
"eslint-plugin-svelte": "^2.33.0",
175+
"eslint-plugin-svelte": "^2.46.1",
177176
"eslint-plugin-vitest": "^0.2.8",
178177
"esno": "^0.16.3",
179178
"express": "^4.18.2",
@@ -192,8 +191,8 @@
192191
"postcss-html": "^1.5.0",
193192
"postcss-import": "^14.1.0",
194193
"postcss-load-config": "^3.1.4",
195-
"prettier": "^3.0.3",
196-
"prettier-plugin-svelte": "^3.0.3",
194+
"prettier": "^3.5.1",
195+
"prettier-plugin-svelte": "^3.3.3",
197196
"prettier-plugin-tailwindcss": "^0.5.4",
198197
"react": "^18.2.0",
199198
"react-dom": "^18.2.0",
@@ -205,27 +204,27 @@
205204
"remark-parse": "^10.0.2",
206205
"remark-toc": "^8.0.1",
207206
"rimraf": "^4.3.1",
208-
"storybook": "^8.4.7",
207+
"storybook": "^8.6.11",
209208
"stylelint": "^15.10.3",
210209
"stylelint-config-recommended": "^13.0.0",
211210
"stylelint-config-standard": "^34.0.0",
212-
"svelte": "^4.0.0",
213-
"svelte-check": "^3.5.0",
214-
"svelte-eslint-parser": "^0.33.0",
215-
"svelte-highlight": "^3.4.0",
216-
"svelte-loader": "^3.1.4",
217-
"svelte-preprocess": "^5.0.4",
218-
"svelte2tsx": "^0.6.21",
211+
"svelte": "^5.25.5",
212+
"svelte-check": "^4.1.5",
213+
"svelte-eslint-parser": "^0.43.0",
214+
"svelte-highlight": "^7.8.2",
215+
"svelte-loader": "^3.2.4",
216+
"svelte-preprocess": "^6.0.3",
217+
"svelte2tsx": "^0.7.35",
219218
"tailwindcss": "^3.4.1",
220219
"tar-fs": "^2.1.1",
221220
"ts-node": "^10.9.1",
222221
"ts-proto": "^1.138.0",
223222
"tslib": "^2.4.1",
224223
"typescript": "^5.2.2",
225224
"unist-util-visit": "^5.0.0",
226-
"vite": "^5.0.12",
227-
"vite-node": "^0.23.4",
228-
"vitest": "^1.6.0",
225+
"vite": "^6.2.4",
226+
"vite-node": "^3.1.1",
227+
"vitest": "^3.1.1",
229228
"vitest-localstorage-mock": "^0.1.2",
230229
"wait-port": "^1.0.4",
231230
"webpack": "^5.76.0",

0 commit comments

Comments
 (0)