react-intersection-observer
Advanced tools
Comparing version 0.1.2 to 0.2.0
{ | ||
"name": "react-intersection-observer", | ||
"version": "0.1.2", | ||
"version": "0.2.0", | ||
"description": "Monitor if a component is inside the viewport, using IntersectionObserver API", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
# react-intersection-observer | ||
[![Dependency Status](https://david-dm.org/thebuilder/react-intersection-observer.svg)](https://david-dm.org/thebuilder/react-intersection-observer) | ||
[![npm version](https://badge.fury.io/js/react-intersection-observer.svg)](https://www.npmjs.com/package/react-intersection-observer) | ||
@@ -15,3 +16,3 @@ React component that allows triggers a function when the component enters or leaves the viewport. | ||
## Demo | ||
https://thebuilder.github.io/react-intersection-observer/ | ||
See https://thebuilder.github.io/react-intersection-observer/ for a demo. | ||
@@ -22,3 +23,3 @@ ## Installation | ||
```sh | ||
yarn add react-view-pager | ||
yarn add react-intersection-observer | ||
``` | ||
@@ -28,3 +29,3 @@ | ||
```sh | ||
npm install react-view-pager --save | ||
npm install react-intersection-observer --save | ||
``` | ||
@@ -96,3 +97,3 @@ | ||
### Universal rendering | ||
## Universal rendering | ||
The IntersectionObserver polyfill requires `window` and `document`, and will crash if you try to import it outside the browser. | ||
@@ -103,2 +104,2 @@ To allow the Observer to be rendered universally, it sets `global.window` and `global.document` to empty objects if they are not defined. | ||
It could potentially conflict with other modules that checks for the existence of `window` and `document`. You can always require `lib/Observer.js` directly, to skip the window check. `lib/Observer.js` is also set as the `"browser"` field. | ||
It could potentially conflict with other modules that checks for the existence of `window` and `document`. You can always require `lib/Observer.js` directly, to skip the window check. `lib/Observer.js` is also set as the `"browser"` field. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1835702
21
101
0