Skip to content

Releases: thebuilder/react-intersection-observer

v9.3.3

15 Jun 12:59
e59d9c2
Compare
Choose a tag to compare

9.3.3 (2022-06-15)

Bug Fixes

v9.3.2

15 Jun 12:35
8b873cd
Compare
Choose a tag to compare

9.3.2 (2022-06-15)

Bug Fixes

  • correct the build copy (88058e1)
  • export paths with dot path (5d36ed6)

v9.3.1

15 Jun 12:03
83a5232
Compare
Choose a tag to compare

9.3.1 (2022-06-15)

Bug Fixes

v9.3.0

14 Jun 13:34
ea76e44
Compare
Choose a tag to compare

9.3.0 (2022-06-14)

Features

  • refactor to use modern exports (bc0daf6)

v9.3.0-beta.1

08 Jun 11:14
0fa2241
Compare
Choose a tag to compare
v9.3.0-beta.1 Pre-release
Pre-release

9.3.0-beta.1 (2022-06-08)

Features

  • refactor to use modern exports (bc0daf6)

v9.2.2

02 Jun 20:11
Compare
Choose a tag to compare

9.2.2 (2022-06-02)

Bug Fixes

  • correct broken module exports (12bad4a)
  • correct name in size limit (3d4534e)
  • revert the bundle changes (e7ac6d2)

v9.2.1

02 Jun 13:02
27b39e5
Compare
Choose a tag to compare

9.2.1 (2022-06-02)

Bug Fixes

  • correct microbundle output paths (0f55aa2)

v9.2.0

28 May 21:36
af0440f
Compare
Choose a tag to compare

9.2.0 (2022-05-28)

Features

  • Switch to vitest and storybook vite (#549) (af0440f)
  • Support both Jest and Vitest in test-utils
  • Improve readme section on testing

v9.1.0

25 Apr 12:07
4b6eea0
Compare
Choose a tag to compare

9.1.0 (2022-04-25)

Features

  • support onChange on useInView (ba8d059)
  const { ref } = useInView({
    onChange: (inView) => {
      if (inView) {
        dataLayer.push('Section shown'); // Here's a GTM dataLayer push
      }
    },
  });

v9.0.0

21 Apr 12:46
f0571d8
Compare
Choose a tag to compare

9.0.0 (2022-04-21)

This release is mainly to fix an issue with the exports not being properly tree-shaken.

Features

Size of exports

After tree shaking, this is the current size impact of the exports, as reported by size-limit.

  • InView - 1.6 kB with all dependencies, minified and gzipped
  • useInView - 1.13 kB with all dependencies, minified and gzipped
  • observe - 835 B with all dependencies, minified and gzipped

BREAKING CHANGES

  • Removed the default export of the InView component. Use the named InView import instead
-import InView from 'react-intersection-observer
+import { InView } from 'react-intersection-observer