Skip to content
verdict:

SvelteKit 2.51.0

notable

note: no summary for this older release

We summarize recent releases. The original release notes for this version are below.

release-notesgithub.com/sveltejs/kit · 34 lines
  1. ### Minor Changes
  2. - feat: add `scroll` property to `NavigationTarget` in navigation callbacks ([#15248](https://github.com/sveltejs/kit/pull/15248))
  3. Navigation callbacks (`beforeNavigate`, `onNavigate`, and `afterNavigate`) now include scroll position information via the `scroll` property on `from` and `to` targets:
  4. - `from.scroll`: The scroll position at the moment navigation was triggered
  5. - `to.scroll`: In `beforeNavigate` and `onNavigate`, this is populated for `popstate` navigations (back/forward) with the scroll position that will be restored, and `null` for other navigation types. In `afterNavigate`, this is always the final scroll position after navigation completed.
  6. This enables use cases like animating transitions based on the target scroll position when using browser back/forward navigation.
  7. - feat: `hydratable`'s injected script now works with CSP ([#15048](https://github.com/sveltejs/kit/pull/15048))
  8. ### Patch Changes
  9. - fix: put preloads before styles ([#15232](https://github.com/sveltejs/kit/pull/15232))
  10. - fix: suppress false-positive inner content warning when children prop is forwarded to a child component ([#15269](https://github.com/sveltejs/kit/pull/15269))
  11. - fix: `fetch` not working when URL is same host but different than `paths.base` ([#15291](https://github.com/sveltejs/kit/pull/15291))
  12. - fix: navigate to hash link when base element is present ([#15236](https://github.com/sveltejs/kit/pull/15236))
  13. - fix: avoid triggering `handleError` when redirecting in a remote function ([#15222](https://github.com/sveltejs/kit/pull/15222))
  14. - fix: include `test` directory in generated `tsconfig.json` alongside existing `tests` entry ([#15254](https://github.com/sveltejs/kit/pull/15254))
  15. - fix: generate `tsconfig.json` using the value of `kit.files.src` ([#15253](https://github.com/sveltejs/kit/pull/15253))

view on githubimported 2026-09-28 via npm