Releases: thebuilder/react-intersection-observer
Releases · thebuilder/react-intersection-observer
v9.2.2
02 Jun 20:11
Compare
Sorry, something went wrong.
No results found
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
Compare
Sorry, something went wrong.
No results found
9.2.1 (2022-06-02)
Bug Fixes
correct microbundle output paths (0f55aa2 )
v9.2.0
28 May 21:36
Compare
Sorry, something went wrong.
No results found
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
Compare
Sorry, something went wrong.
No results found
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
Compare
Sorry, something went wrong.
No results found
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
v9.0.0-beta.3
21 Apr 12:01
Compare
Sorry, something went wrong.
No results found
Bug Fixes
remove static props from InView to fix tree shaking (59b8480 )
v9.0.0-beta.2
21 Apr 08:30
Compare
Sorry, something went wrong.
No results found
Bug Fixes
be specific with import type (fa8840f )
v9.0.0-beta.1
20 Apr 14:23
Compare
Sorry, something went wrong.
No results found
Features
remove the default export (53123cc )
BREAKING CHANGES
Can no longer do the default import of InView.
v8.34.0
12 Apr 12:02
Compare
Sorry, something went wrong.
No results found
8.34.0 (2022-04-12)
Features
upgrade to React 18 (#538 ) (98bb83f )
Upgrade Storybook and other dev dependencies.
Breaking changes
This removes the old tag
prop from <InView>
, that was deprecated by as
some years ago. If you haven't changed it, this could break your build. The fix would be to replace all instances of tag
with as
.
Changed the type of as
from the old ReactType
to ElementType
. This would only be a problem if you are still using the old version of the React Types.
v8.33.1
15 Dec 22:52
Compare
Sorry, something went wrong.
No results found