Update to SvelteKit 3
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 22/100
- Tipo de issue
- Refatoração
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- typescript
- Domínio
- documentation, frontend
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
[!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
- Linguagem predominante
- TypeScript
- Estrelas
- 1
- Forks
- 0
- Merge médio
- 4d 6h
- PRs com merge (30d)
- 12
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de stackabletech/cockpit
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
stackabletech/cockpit#224 ·
Mantenedores costumam responder em até 2 dias
-
Remove unused dependenciesTalvez já em andamento @Bohreromir assumiu há 17 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
stackabletech/cockpit#101 ·
Mantenedores costumam responder em até 2 dias
-
RELEASE first versionAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
stackabletech/cockpit#362 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 57/100
stackabletech/cockpit#361 ·
Mantenedores costumam responder em até 2 dias
-
Define Admin definitionAberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 25/100
stackabletech/cockpit#360 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de stackabletech/cockpit
Issues semelhantes
-
bug(sight): the dashboard's text truncations split surrogate pairs and show broken charactersAbertacomponent:sight
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
agentic-os-org/ANOLISA#6738 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
bug Durable Agents Observability (AI Telemetry) status: needs triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
mastra-ai/mastra#26470 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
paperclipai/paperclip#15630 ·
Mantenedores costumam responder em até 1 dia
-
[good first issue, hacktoberfest] ⛩️ Add new Theme: Sakura Latte (good-first-issue)Talvez já em andamento @PGrayCS assumiu hoje. Abertacommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 78/100
lingdojo/kana-dojo#31937 · 1 comentário · 5 reações ·
Mantenedores costumam responder em até 1 dia
-
feature/cohorts feature/feature-flags team/feature-flags
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
Mantenedores costumam responder em até 1 dia