Guide

Changelog

Every @samline/scroll-spy release, newest first, with breaking changes, behavior changes and upgrade steps called out explicitly.

All notable changes to this package. Format: Keep a Changelog; versions follow semver.

[1.0.1] - 2026-11-17

Changed

  • Internal: the DOM controller moved from src/core to src/vanilla; src/core keeps the DOM-free types, constants and helpers. Public entries are unchanged.
  • The package moved from the samline/utils monorepo to its own repository, samline/scroll-spy. Homepage, repository and documentation links point to the package’s own site.

[1.0.0] - 2026-11-13

Added

  • First release: scrollSpy and autoScrollSpy highlight the navigation link of the section in view with aria-current (and an optional class), using an activation line (offset, 25% by default) that handles short and tall sections, the last section at the bottom of the page, click locking during smooth or scripted scrolls, scroll containers (root), long navigations that follow the active link, an optional URL hash and onChange. ESM, CommonJS and a browser global (window.ScrollSpy) that starts on its own.