Version 3.0 of SvelteKit, the official application framework for Svelte, is now available.

If you’ve used earlier versions of SvelteKit, everything will feel very familiar — it’s the same framework with a little more polish, a little more type safety, and a little less junk. We’ve made migration as seamless as we can with the sv migrate command:

npx sv migrate sveltekit-3 --tasks all --confirm

…which will automatically migrate as much of your codebase as possible, and generate a TODO list for everything else.

To create a new app, run sv create:

npx sv create my-new-app

Quick highlights:

  • configuration now lives in vite.config.ts instead of svelte.config.js
  • the $lib alias is now #lib, making use of standard subpath imports
  • environment variables are more powerful and easier to use
  • service workers are less boilerplatey
  • error handling is improved across the board

Remote functions are not quite ready yet but are the top priority. Remote functions are a set of utilities for secure, efficient, type-safe client-server communication. Using them requires Async Svelte, which for now requires an experimental flag.

The next in-person Svelte Summit is taking place on November 19-20 in Ljubljana, Slovenia.