Skip to content

Releases: patik/within-viewport

3.0.1

06 Jul 09:48
511231a
Compare
Choose a tag to compare
  • Adds ESM support, in addition to the existing CommonJS support (#140)

3.0.0

23 Jan 06:43
48e369e
Compare
Choose a tag to compare
  • New: Adds a promise-based function withinViewportAsync that uses IntersectionObserver
  • Breaking change: the side option is no longer supported directly, see README for how to migrate
  • Deprecation notice: the function name is now camelCase, i.e. withinViewport with a capital V. The old spelling will still work but it will log a warning to the console.
  • New: TypeScript support and type definitions
  • Changed: revamped demo page

2.1.0

29 Jul 14:21
Compare
Choose a tag to compare
Added gitignore

1.0.0

02 Aug 22:46
Compare
Choose a tag to compare
  • Fixed bug where block-level elements wrapped in inline elements would have their position miscalculated
  • Faster performance
  • Added IE 7 support
  • Removed deprecated withinViewport camelCase naming