Packages

@sveltejs/kit

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

Your version

2.16.0

17 Jan 2025Where it was published

2.70.4 is the newest release of 2.x.

In short

3 new1 faster10 fixed2 internal

Security

Release note

Minor Changes

  • Add ability to invalidate a custom identifier on goto()

  • Remove the postinstall script to support pnpm 10

    NOTE: users should add "prepare": "svelte-kit sync" to their package.json in order to avoid the following warning upon first running Vite:

    ▲ [WARNING] Cannot find base config file "./.svelte-kit/tsconfig.json" [tsconfig.json]
    
        tsconfig.json:2:12:  
          2 │ "extends": "./.svelte-kit/tsconfig.json",  
            ╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
  • Provide PageProps and LayoutProps types

Patch Changes

  • Shorten chunk file names

  • Strip internal data before passing URL to reroute

  • Support absolute URLs and reroutes with data-sveltekit-preload-code="viewport"

  • Use current window.fetch for server load fetch requests

  • Resolve symlinks when handling routes

  • Prevent infinite reload when using the hash router and previewing /index.html

  • Service worker base path in dev mode

  • Correctly link to assets inlined by the inlineStyleThreshold option

  • Fall back to importing dynamic dependencies relative to SvelteKit package

  • Use arrow function types over bound funcs

  • Correctly navigate when hash router is enabled and the browser encodes extra hashes

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.