Skip to content

chore: migrate to SvelteKit 3 - #86

Merged
voltcrash merged 1 commit into
mainfrom
t3code/migrate-sveltekit-3
Oct 2, 2026
Merged

voltcrash merged 1 commit into
mainfrom
t3code/migrate-sveltekit-3

Conversation

@voltcrash

Copy link
Copy Markdown
Owner

Onyx used SvelteKit 2 and legacy imports, history state, and service-worker APIs. Upgrade to SvelteKit 3 while preserving browser back/forward navigation and offline editing.

Update SvelteKit to 3.0.0, the Vercel adapter to 7.0.0, and the Svelte compiler and plugin to their latest stable releases. Migrate imports to #lib, declare optional private authentication variables, and use the new application and service-worker TypeScript configs. Read note history through page.state and register the service worker as a module using $app/manifest. Ignore CORS Origin variation when retrieving cached static assets so offline hydration works.

Retain TypeScript 6.0.3 as approved: SvelteKit 3 requires its compiler API, which TypeScript 7 removed. The package manager added version-specific release-age exceptions for the newly released SvelteKit and Vercel adapter packages.

Validation:

  • vp install --frozen-lockfile
  • vp check
  • vp run check, including service-worker type checking
  • vp test: 191 passed, 1 existing skip
  • vp run test:e2e: 63 passed, including its production build
  • Authentication session endpoint with and without configuration: 200/null and 503 respectively; security headers preserved

Three existing Svelte warnings remain. Better Auth still declares a SvelteKit 2 peer range; its session endpoint and the GitHub backup/restore browser tests pass with SvelteKit 3.

@vercel

vercel Bot commented Oct 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
onyx Ready Ready Preview Oct 2, 2026 3:48am UTC

@voltcrash
voltcrash merged commit 3e4f3f3 into main Oct 2, 2026
3 checks passed
@voltcrash
voltcrash deleted the t3code/migrate-sveltekit-3 branch October 2, 2026 04:01

This branch was successfully deployed

1 active deployment
Preview — b0ad58da Deployed Oct 2, 2026 by vercel[bot]
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