Update to SvelteKit 3
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 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
- 平均マージ
- 4日 6時間
- マージ済み PR(30日)
- 12
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
stackabletech/cockpit のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
stackabletech/cockpit#224 ·
メンテナーはふだん 2 日以内に返信
-
Remove unused dependencies対応中かも @Bohreromir が 16 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
stackabletech/cockpit#101 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
stackabletech/cockpit#362 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 57/100
stackabletech/cockpit#361 ·
メンテナーはふだん 2 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
stackabletech/cockpit#360 ·
メンテナーはふだん 2 日以内に返信
stackabletech/cockpit の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
farbenmeer/tapi#531 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
naver/egjs-flicking#971 ·
-
Renderer treats a sub-pixel width difference as a resize, which cancels the `motion()` entranceオープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
Tenant
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
MTES-MCT/Dossier-Facile-Frontend#2061 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
backnotprop/plannotator#1784 ·
メンテナーはふだん 1 日以内に返信