SvelteKit is a comprehensive framework for Svelte, upgraded to version 2.0 to fully support Svelte 3 and prepare for the upcoming Svelte 5 release in 2024.
While most features are geared toward supporting Svelte 5, a notable feature is the inclusion of shallow routing for history creation without page navigation. A significant use case for this feature is when a modal is displayed on a webpage. Mobile users often swipe their screens to close the modal. This new feature allows developers to add additional history when receiving the back button event or a screen swipe, effectively closing the modal.
This update brings numerous breaking changes. The development team suggests upgrading to the latest 1.x version before transitioning to Svelte 4. Afterwards, all deprecation warnings can be addressed before proceeding with the actual upgrade.
TLDR: SvelteKit is a full-fledged framework for Svelte, now at version 2.0 with complete support for Svelte 3 and readiness for the upcoming Svelte 5 release. It introduces shallow routing for seamless history creation and addresses breaking changes. Upgrade steps include transitioning to the latest 1.x version, then updating to Svelte 4 before resolving deprecation warnings.
Leave a Comment