- Docs
- Changelog
Changelog
Every @samline/is-visible 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.1.2] - 2026-11-27
Changed
src/corenow holds only the option types; the observers, pool and state moved tosrc/vanilla, following the family package shape. The public API and behavior are unchanged.
[1.1.1] - 2026-11-17
Fixed
- Vue:
<VisibilityObserver>accepts therootandfallbackprops, like the React component anduseIsVisible().
[1.1.0] - 2026-11-15
Added
@samline/is-visible/testingexportsresetObservers(), so packages that bundle the observer pool can reset it between unit tests. Test-only; not for production code.
Changed
- The package moved from the
samline/utilsmonorepo to its own repository, samline/is-visible. Homepage, repository and documentation links point to the package’s own site.
[1.0.1] - 2026-11-13
Fixed
- Documentation only: the README follows the canonical @samline structure with links to the new website (Home, examples, docs and agent skill), and the package now ships LICENSE.md.
[1.0.0] - 2026-11-12
Added
-
Move to the
samline/utilsmonorepo and release 1.0.- Breaking:
notVisibleno longer fires for an element that was never visible, andvisibleno longer repeats while the element stays visible. - Callbacks receive
(entry, element). Targets may be an element, a selector, aNodeListor an array. - Calls with the same
root,rootMarginandthresholdshare oneIntersectionObserver. - Top-level
root,rootMarginandthresholdoptions. The nestedoptionsobject is deprecated but still supported. fallback: 'visible' | 'none'for browsers without IntersectionObserver, so content is never left hidden.- React, Vue and Svelte adapters share one engine, and
isVisibleresets when the element leaves. - CommonJS build, minified browser bundle and
./browserexport.
- Breaking: