Releases: thebuilder/react-intersection-observer
Release list
v11.0.1
What's Changed
- Fix docs callouts and logo theming by @thebuilder in #776
- Agent/docs callouts and logo theme by @thebuilder in #777
- feat(docs): add custom landing page with scroll-driven intersection demos by @thebuilder in #778
- feat(docs): brand the generated OG cards to match the landing by @thebuilder in #779
- fix(docs): theme-aware landing panels + tighter headline by @thebuilder in #780
- docs: update public documentation domains by @thebuilder in #783
- ci: publish releases with npm trusted publishing by @thebuilder in #785
- docs: cut filler from README and docs site by @thebuilder in #786
- fix: resume InView observation when triggerOnce is disabled by @ddussi in #782
New Contributors
Full Changelog: v11.0.0...v11.0.1
v11.0.0
v11.0.0
v11 delivers a ground-up observer lifecycle rewrite, making observation and cleanup more resilient across React 17, 18, and 19. Shared callback-ref handling, idempotent cleanup, and improved threshold behavior make hooks more predictable in real-world mounting and unmounting scenarios.
It also introduces a new Blume-powered documentation site with clearer guides and examples.
Storybook and the README have been refreshed to make getting started easier.
Smaller improvements include private vulnerability reporting, stronger PR quality checks with Fallow, dependency updates, and expanded observer lifecycle tests.
What's Changed
- docs: use private vulnerability reporting by @thebuilder in #759
- Fix callback ref cleanup compatibility across React 17–19 by @thebuilder in #760
- fix: make observe cleanup idempotent by @thebuilder in #763
- fix: respect threshold before trigger once cleanup by @thebuilder in #762
- test: characterize hook observer lifecycle by @thebuilder in #764
- refactor: share callback-ref observation between hooks by @thebuilder in #765
- build(deps-dev): bump postcss from 8.5.6 to 8.5.10 by @dependabot[bot] in #761
- Adopt Fallow as a PR quality gate by @thebuilder in #768
- feat: add Blume documentation site by @thebuilder in #770
- Update dependencies by @thebuilder in #771
- docs: enable vercel analytics by @thebuilder in #772
- Simplify and brand Storybook introduction by @thebuilder in #773
- Update README to simplify bundle size information by @thebuilder in #774
- Use responsive logo lockups in docs header by @thebuilder in #775
Full Changelog: v10.1.0...v11.0.0
v10.1.0
What's Changed
- chore: update github actions by @thebuilder in #754
- Add support for
scrollMarginoption for intersection observers by @thebuilder in #753
Full Changelog: v10.0.3...v10.1.0
v10.0.3
v10.0.2
What's Changed
- Add npm package size badge to README by @jantimon in #740
- feat: bump dependencies by @thebuilder in #741
- Fix React 17 webpack build error for useInsertionEffect by @Copilot in #744
New Contributors
Full Changelog: v10.0.0...v10.0.2
v10.0.0
Based on the great work in #718 by @jantimon - This release adds the new useOnInView hook.
✨ New
useOnInViewhook — a no-re-render alternative touseInViewthat delivers(inView, entry)to your callback while returning a ref you can attach to any element. Designed for tracking, analytics, and other side effect heavy workloads where state updates are unnecessary.IntersectionChangeEffect/IntersectionEffectOptionstypes — exported helper types that describe the new hook’s callback and options surface.- Storybook playground + documentation — new story, README section, and JSDoc example demonstrating how to use
useOnInView.
⚠️ Breaking Changes
useInView,useOnInView, and<InView>now ignore the browser’s initialinView === falseemission foronChangeevents, so handlers only fire once a real visibility change occurs, while still reporting all subsequent enter/leave transitions.
🧪 Testing
- Added a dedicated Vitest suite for
useOnInView, covering thresholds,triggerOnce,skiptoggling, merged refs, and multiple observers on the same node.
What's Changed
- chore: update package url in package.json by @thebuilder in #721
- build(deps-dev): bump vite from 6.2.0 to 6.2.5 by @dependabot[bot] in #724
- build(deps-dev): bump vite from 6.2.5 to 6.2.7 by @dependabot[bot] in #727
- Fix minor grammatical issue in documentation intro by @Akshay-Vs in #728
- Remove bundlephobia badge from README by @Copilot in #731
- Update dependencies by @thebuilder in #737
- feat: implement the useOnInView hook by @thebuilder in #738
New Contributors
Full Changelog: v9.16.0...v10.0.0
v9.16.0
What's Changed
- ci: drop semantic release flow by @thebuilder in #719
- Correctly detect global testing framework by @thebuilder in #720
Full Changelog: v9.15.1...v9.16.0