Update to SvelteKit 3
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 22/100
- Issue 類型
- 重構
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- typescript
研究方向
This is a full SvelteKit 3 migration, not a first-issue. After the listed TypeScript/Vite upgrades, run npx sv migrate sveltekit-3, then follow the checklists: move adapter and vitePreprocess into vite.config.ts, retarget tsconfig.json extends, and rename $lib/$app imports. Touch the named call sites for goto/invalidateAll/handleError in src/hooks.server.ts, storage pages, and src/lib/storage/*.svelte.ts, then update AGENTS.md and helm env docs. Done when the app builds, env/zod, OIDC redirects, and forms behave under the new APIs.
由索引模型根據 Issue 內容生成。
描述
[!CAUTION]
This is not a complete list
And we should also wait for a few svelte patches before migrating
Prerequisit upgrades
- TypeScript 5 to 6+
- Vite 7 to 8
Auto migration
- Run
npx sv migrate sveltekit-3
Configuration
- Delete
svelte.config.jsand moveadapter()andvitePreprocess()
into thesveltekit({ ... })plugin options invite.config.ts -
tsconfig.json: change"extends"from"./.svelte-kit/tsconfig.json"to"$app/tsconfig"
Module aliases and imports
-
$lib→#lib -
$app/environment→$app/env— 15 refs on main, 25 on the S3 branch
Environment variables
- Rework all ENV vars to conform to the new env convention
- Add zod schemas for every env
Navigation, forms and errors
-
goto()optioninvalidateAll→refreshAll,replaceState→replace. Affected:
src/routes/(app)/storage/[bucket]/[...prefix]/+page.svelte:28on main; on the S3 branch also
storage/browse/[connection]/[bucket]/[...prefix]/+page.svelte:61,84andstorage/+layout.svelte:53 - Standalone
invalidateAll()→refreshAll():src/lib/storage/state.svelte.ts:188,337,359
plusarchive.svelte.ts:236and other call sites - Rework
handleErroratsrc/hooks.server.ts:94— it now receives all errors including
expectederror()throws, so every 404/403 would currently be logged aterrorlevel and have
its message replaced with "An unexpected error occurred". Discriminate onkind. - Review
use:enhanceforms — cross-pageactionnow navigates automatically, and enhanced
responses use thefail()status instead of always 200 - Check external redirects still work — they now need
{ external: true }or an origin allowlist
(relevant to the OIDC flow insrc/routes/auth/) -
$app/paths: Pathnames no longer start with/, which affects the
PUBLIC_PATHSprefix matching insrc/hooks.server.ts:46-55
Documentation
- Update
AGENTS.md— it documents$libpaths, the$env/process.envlogging setup and the
superforms rule, all of which change - Update
deploy/helm/cockpitREADME and any env-var documentation
- 主要語言
- TypeScript
- 星號
- 1
- 分支
- 0
- 平均合併
- 3 天 20 小時
- 30 天內合併 PR
- 14
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
stackabletech/cockpit 的其他 Issue
-
Remove unused dependencies可能已有人在做 @Bohreromir 於 17 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 78/100
stackabletech/cockpit#101 ·
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 45/100
stackabletech/cockpit#377 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 22/100
stackabletech/cockpit#376 ·
維護者通常 1 天內回覆
-
OPA caching未關閉
難度 4/5 3-5 天 新手友好度 15/100
stackabletech/cockpit#375 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 15/100
stackabletech/cockpit#372 ·
維護者通常 1 天內回覆
查看 stackabletech/cockpit 的全部 Issue
相似的 Issue
-
Mondriaan
難度 1/5 1 小時以內 新手友好度 88/100
knaw-huc/textannoviz#709 ·
維護者通常 1 天內回覆
-
streams:add
難度 1/5 1 小時以內 新手友好度 62/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
walletbeat/walletbeat#1558 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 82/100
hawk-digital-environments/HAWKI#438 ·
維護者通常 1 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 78/100
OktoLabsAI/okto-pulse#114 ·
維護者通常 1 天內回覆