Packages

@sveltejs/kit

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

Upgrading @sveltejs/kit From 1.21.0 to 3.1.1

273 releases in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 1.21.0Newest 1.x1.30.4Latest3.3.0
  1. 1.21.0yours
  2. 31 releases
  3. 2.0.0major
  4. 143 releases
  5. 2.36.0security
  6. 3 releases
  7. 2.37.0security
  8. 81 releases
  9. 2.69.1security
  10. 2 releases
  11. 2.70.0security
  12. 4 releases
  13. 3.0.0security
  14. 2 releases
  15. 3.1.1target
  16. 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
  • Disable CSRF checks in dev

    2.37.0
  • Add csrf.trustedOrigins configuration

    2.36.0

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

95 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.