HeadlinesBriefing HeadlinesBriefing.com

SvelteKit 3 Released: Key Changes and Migration Guide

Hacker News •
×

Version 3.0 of Svelte Kit, the official application framework for Svelte, is now available. If you’ve used earlier versions of Svelte Kit, 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.

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, and error handling is improved across the board.

Are remote functions ready yet? Not quite. But it’s our 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.

Join us in Ljubljana next month. The next in-person Svelte Summit is taking place on November 19-20 in the lovely town of Ljubljana, Slovenia. Among other things it will be a celebration of Svelte’s 10th birthday, and we’d love to share some cake with you.

Source: Hacker News · Summarized by HeadlinesBriefing