Skip to content

Update dependencies, including SvelteKit 3 - #33

Merged
amyjko merged 1 commit into
mainfrom
update-dependencies
Oct 3, 2026
Merged

amyjko merged 1 commit into
mainfrom
update-dependencies

Conversation

@amyjko

@amyjko amyjko commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Updates @sveltejs/kit 2 → 3 and @sveltejs/adapter-vercel 6 → 7, plus patch bumps to pg, the Supabase CLI, vite, and vitest. TypeScript stays at 6 because Kit 3 requires ^6 and svelte-check still caps it there.

What Kit 3 required

  • svelte.config.js is removed; its options are passed to sveltekit() in vite.config.ts.
  • tsconfig.json extends the generated $app/tsconfig and lists its own include.
  • $lib is now #lib, declared under imports in package.json. Kit's alias option is deprecated in favor of the same mechanism, so $database, $routes, and $types became #database, #routes, and #types. Subpath imports need real file extensions, so each import now names its file. This is most of the diff.
  • $app/environment → $app/env, $app/stores → $app/state, and $env/static/public → $app/env/public, with the two Supabase variables declared in the new src/env.ts.
  • error(404, { message }) → error(404, message).
  • goto options renamed (replace, reset: false, refreshAll), and invalidateAll() → refreshAll().
  • engines.node is now >=22.17.

Bug fix

Kit 3 sends rendering errors to the error page where Kit 2 logged them and carried on. That exposed a latent bug: a person's page showed "Internal Error" when loaded directly, because ProfileLink read an organization context that does not exist there, and its table had rows with no <tbody>. Both are fixed.

Behavior changes from Kit 3

  • Clicking a link to the current page now reloads its data.
  • The filter fields on the changes and processes pages no longer reset scroll when they update the URL.
  • updated.current now detects a new deployment on its own, which drives the existing reload-on-navigate behavior.

Verification

Locally: svelte-check clean, 288 unit tests, 208 e2e tests, 74 Playwright tests, npm run build, vercel build, and prettier all pass, and npm audit reports 0 vulnerabilities. A browser click-through of both the dev server and the production build covered login, filters, creating and deleting a role and a change, realtime refresh across two tabs, 404 pages, and a direct load of every reachable page signed in and signed out.

Not covered locally: a real Vercel deployment with adapter-vercel 7. Merging to main deploys to production, so check the preview deployment first.

🤖 Generated with Claude Code

Kit 2 to 3 and adapter-vercel 6 to 7, plus patch bumps to pg, the Supabase CLI, vite, and vitest.
TypeScript stays at 6: kit 3 requires ^6 and svelte-check still caps it there.

What Kit 3 required:
- svelte.config.js is gone; its options are passed to sveltekit() in vite.config.ts.
- tsconfig.json extends the generated $app/tsconfig and lists its own include.
- $lib is now #lib, declared under imports in package.json. Kit's alias option is deprecated in
  favor of the same mechanism, so $database, $routes, and $types became #database, #routes, and
  #types. Subpath imports need real file extensions, so each import now names its file.
- $app/environment is $app/env, the last $app/stores uses moved to $app/state, and
  $env/static/public is $app/env/public, with the two Supabase variables declared in src/env.ts.
- error(404, { message }) is error(404, message).
- goto options: replaceState to replace, keepFocus: true to reset: false, invalidateAll to
  refreshAll. invalidateAll() itself is deprecated in favor of refreshAll().
- data-sveltekit-reload takes 'false' rather than 'off'; Handle comes from @sveltejs/kit/hooks.
- engines.node is >=22.17, Kit 3's floor.

Kit 3 sends rendering errors to the error page where Kit 2 logged them and carried on. That turned
a latent bug into a visible one: a person's page showed "Internal Error" when loaded directly,
because ProfileLink read an organization context that does not exist there, and its table had rows
with no tbody. Both are fixed.

Kit 3 depends on cookie 2, which clears the npm audit warning. The regenerated database types lose
a trailing blank line with Supabase CLI 2.119. Two CI comments that described Kit 2 are updated.

Verified locally: svelte-check clean, 288 unit tests, 208 e2e tests, 74 Playwright tests, build,
vercel build, and format all pass, plus a browser click-through of the dev and production builds.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@amyjko
amyjko merged commit 271d669 into main Oct 3, 2026
1 check passed
@amyjko
amyjko deleted the update-dependencies branch October 3, 2026 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant