Packages

@sveltejs/kit

3.3.0 · 17 Nov 2026MIT5.1M / weekRepositoryHomepagenpmAtom feed

Your version

2.0.0

major14 Dec 2023Where it was published

2.70.4 is the newest release of 2.x.

In short

25 breaking5 new5 fixed1 internal

  • Breaking

    Remove top-level promise awaiting

  • Breaking

    Prevent use of dynamic env vars during prerendering, serve env vars dynamically

  • Breaking

    Remove deprecated use:enhance callback values

  • Breaking

    Turn error and redirect into commands

  • Breaking

    The type for depends now requires a : as part of the string

  • Breaking

    Remove baseUrl fallback from generated tsconfig

  • Breaking

    Fail if route with +page and +server is marked prerenderable

  • Breaking

    Remove resolvePath in favour of resolveRoute from $app/paths

Security

13 advisories affect 2.0.0; 2.70.4 fixes the others

8 more

Release note

Major Changes

  • Breaking

    Remove top-level promise awaiting

  • Breaking

    Prevent use of dynamic env vars during prerendering, serve env vars dynamically

  • Breaking

    Remove deprecated use:enhance callback values

  • Breaking

    Turn error and redirect into commands

  • Breaking

    The type for depends now requires a : as part of the string

  • Breaking

    Remove baseUrl fallback from generated tsconfig

  • Breaking

    Fail if route with +page and +server is marked prerenderable

  • Breaking

    Remove resolvePath in favour of resolveRoute from $app/paths

  • Breaking

    Drop support for Svelte 3

  • Breaking

    Require Vite 5.0.3+

  • Breaking

    Generate __data.json files as sibling to .html files

  • Breaking

    Fail if +page and +server have mismatched config

  • Breaking

    Error if form without multipart/form-data enctype contains a file input

  • Breaking

    Require paths pass to preloadCode to be prefixed with basepath

  • Breaking

    @sveltejs/vite-plugin-svelte is now a peer dependency and will need to be installed in each project using SvelteKit

  • Breaking

    Stop re-exporting vitePreprocess

  • Breaking

    Require path option when setting/deleting/serializing cookies

  • Breaking

    Tighten up error handling

  • Breaking

    Remove state option from goto in favor of shallow routing

  • Breaking

    Disallow external navigation with goto

  • Breaking

    Upgrade to TypeScript 5. Default moduleResolution to bundler in user projects to be permissive in consuming and NodeNext when running package to be strict in distributing

  • Breaking

    Undefined is no longer a valid value for paths.relative

  • Breaking

    Require Node 18.13 or newer

  • Breaking

    Fix path resolution

  • Breaking

    Remove dangerZone.trackServerFetches

Minor Changes

  • Add untrack to load

  • Implement shallow routing

  • Provide SvelteKit html typings

  • Redact internal stack trace when reporting config errors

  • Allow for fine grained invalidation of search params

Patch Changes

  • Prerender optional parameters as empty when entries contains '*'

  • Resolve route config correctly

  • Import Svelte types from svelte/compiler

  • Reset invalid resources after a successful invalidation

  • Adjust fail method and ActionFailure type

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.