- Docs
- Changelog
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/coretosrc/vanilla;src/corekeeps the DOM-free types, constants and helpers. Public entries are unchanged. - The package moved from the
samline/utilsmonorepo 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:
scrollSpyandautoScrollSpyhighlight the navigation link of the section in view witharia-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 andonChange. ESM, CommonJS and a browser global (window.ScrollSpy) that starts on its own.