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 https://github.com/thebuilder/react-intersection-observer/pull/759
- Fix callback ref cleanup compatibility across React 17–19 by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/760
- fix: make observe cleanup idempotent by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/763
- fix: respect threshold before trigger once cleanup by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/762
- test: characterize hook observer lifecycle by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/764
- refactor: share callback-ref observation between hooks by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/765
- build(deps-dev): bump postcss from 8.5.6 to 8.5.10 by @dependabot[bot] in https://github.com/thebuilder/react-intersection-observer/pull/761
- Adopt Fallow as a PR quality gate by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/768
- feat: add Blume documentation site by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/770
- Update dependencies by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/771
- docs: enable vercel analytics by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/772
- Simplify and brand Storybook introduction by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/773
- Update README to simplify bundle size information by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/774
- Use responsive logo lockups in docs header by @thebuilder in https://github.com/thebuilder/react-intersection-observer/pull/775
Full Changelog: https://github.com/thebuilder/react-intersection-observer/compare/v10.1.0...v11.0.0