Packages

@sveltejs/kit

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

Upgrading @sveltejs/kit From 2.46.3 to 3.1.1

68 releases in betweenevery note read

Other targets from 2.46.3Newest 2.x2.70.4Latest3.3.0
  1. 2.46.3yours
  2. 56 releases
  3. 2.69.1security
  4. 2 releases
  5. 2.70.0security
  6. 4 releases
  7. 3.0.0security
  8. 2 releases
  9. 3.1.1target
  10. 6 pre

Before you upgrade

Tick each one off as you go
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0
  • Breaking3.0.0

Security

  • Prevent path traversal when previewing prerendered pages and data on Windows

    3.0.0
  • Enable CSRF protection in builds with a non-production NODE_ENV value

    2.70.0
  • Prevent prototype pollution when deleting file inputs

    2.69.1

Release by release

  1. 3.1.1

    29 Oct 202611 fixes
    • Fixed

      Return a 400 response instead of throwing when reroute rewrites a malformed pathname

    • Fixed

      Restore function snapshots on reload when SSR is disabled

    • Fixed

      Prevent separate non-exported query.batch functions from sharing a batch

    • Fixed

      Reuse the original fetch across dev server reloads

  2. 3.1.0

    14 Oct 20262 new · 6 fixes
    • New

      Support report-sha256/report-sha384/report-sha512 CSP hash-reporting keywords

    • New

      Emit a sveltekit.endpoint span for +server handlers when server tracing is enabled

    • Fixed

      Don't treat every module as server-only when the project is inside a server directory

    • Fixed

      Continue deployment recovery when service worker updates fail

  3. 3.0.1

    6 Oct 20261 fix
    • Fixed

      Ensure relative imports in generated types work with nodenext module resolution

  4. 3.0.0

    Security fix1 Oct 202640 new · 172 fixes
    • Security

      Prevent path traversal when previewing prerendered pages and data on Windows

    • Breaking

      Move remote function types to $app/server

    • Breaking

      Remove experimental.handleRenderingErrors flag

    • Breaking

      Make getRequest and setResponse synchronous

  5. 2.70.4nothing new or fixed in the note

  6. 2.70.3

    18 Aug 20261 fix
    • Fixed

      Avoid eagerly reading $app/state dependencies during module initialization

  7. 2.70.2

    29 Jul 20261 fix
    • Fixed

      Prevent quadratic backtracking in Accept header content negotiation

  8. 2.70.1nothing new or fixed in the note

53 internal lines (docs, tests, tooling) left out.

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.