Repository navigation
Conversation
SvelteKit 3 no longer reads svelte.config.js, and adapter-vercel 7 requires Kit 3, so both are upgraded together. - Pin @sveltejs/kit 3.1.0 and @sveltejs/adapter-vercel 7.0.1 - Move the svelte.config.js options into sveltekit() in vite.config.ts; pass dynamicCompileOptions directly because Kit 3 removed config.vitePlugin (the sv migrate output still nests it there) - Extend $app/tsconfig, which provides the compiler options that were set by hand, and keep $app/types in the overridden "types" build, unit tests and lint pass. svelte-check reports 20 errors that belong to the next phase (type export moves, $app/environment, $app/stores, resolve() typings, and generic Actions params). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix the svelte-check errors left by the Kit 3 upgrade and move the
remaining Kit 2 APIs to their Kit 3 forms.
- Import Handle from @sveltejs/kit/hooks and SubmitFunction from
$app/forms; import Actions from ./$types where params are used
- Replace $app/environment with $app/env, including the test mocks
- Move KanbanBoard from $app/stores to $app/state and from
replaceState() to a shallow goto(), so filter changes keep the board's
local state; widen the kanban URL helpers to accept the read-only
page.url
- Type buildWorkbooksUrl() as a /workbooks route with search so
resolve() accepts it, use { replace: true } instead of the deprecated
replaceState option, and drop the @ts-expect-error comments that
Kit 3's route types no longer need
- Add E2E tests for keeping the kanban state while replacing the filter
URL and for restoring saved workbook filters without a history entry
svelte-check, lint, unit tests, build, and the related E2E specs pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the SvelteKit 3 behavior of form actions, logout, session cookies and error pages before the release. - signin: keep form values after a failed enhanced login, return the fail() status (400) for an enhanced submission, land on home when logging out without a session, and keep the session cookie attributes - workbook_edit: keep the nested workbook tasks after a failed edit - account_transfer: reject a non-admin user (page and direct POST) and show the validation message for identical account names - error_pages: render the 404 and 403 error pages The fail() status and logout tests fail on SvelteKit 2, so they detect the Kit 3 behavior change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- workbook_edit: delete a task row before the failed submission, so the test fails if the table falls back to the workbook's original tasks (confirmed with a temporary onUpdate mutation) - workbook_order: rename the shallow-routing test to what it checks (no data reload and no history entry) - architecture.md: separate the filename and server/ directory rules for server-only modules, and split the subpath imports section into use / don't use / extensions with OK and NG examples Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The subpath imports section still assumed Kit 2, where lint was the only
guard against $lib. On Kit 3, $lib fails in every form (vi.mock included,
via module_removed_lib), while vi.mock('$features/...') is silently
ignored, which is why the rg sweep remains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
close #4192
Summary by CodeRabbit