logrocket-react
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -0,1 +1,9 @@ | ||
### 3.0.1 | ||
- Added console warning if React version is not compatible | ||
- Fixed peer dependencies to not warn on react >16.5 | ||
### 3.0.0 | ||
- Add support for React >=16.5 | ||
- Remove support for React <16.5 | ||
### 2.0.0 | ||
@@ -2,0 +10,0 @@ - Add support for React 16.4 |
@@ -10,4 +10,12 @@ 'use strict'; | ||
var injectEventPluginsByName = void 0; | ||
// from https://github.com/facebook/react/blob/v16.5.1/packages/react-dom/src/client/ReactDOM.js#L750 | ||
var injectEventPluginsByName = _reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events[3]; | ||
var secret = _reactDom.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; | ||
if (secret && secret.Events && secret.Events[3]) { | ||
injectEventPluginsByName = secret.Events[3]; | ||
} else { | ||
injectEventPluginsByName = function injectEventPluginsByName() { | ||
console.warn('logrocket-react does not work with this version of React'); | ||
}; | ||
} | ||
@@ -14,0 +22,0 @@ function setupReact() { |
{ | ||
"name": "logrocket-react", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "React library for [LogRocket](https://logrocket.com/).", | ||
@@ -20,3 +20,6 @@ "main": "dist/index.js", | ||
"test": "node_modules/.bin/karma start", | ||
"test:16": "npm run react:clean && npm i react@16.5 react-dom@16.5 --no-save && npm test" | ||
"test:16.5": "npm run react:clean && npm i react@16.5 react-dom@16.5 --no-save && npm test", | ||
"test:16.8": "npm run react:clean && npm i react@16.8 react-dom@16.8 --no-save && npm test", | ||
"test:16.9": "npm run react:clean && npm i react@16.9 react-dom@16.9 --no-save && npm test", | ||
"test:all": "DEV=true npm run test:16.5 && npm run test:16.8 && npm run test:16.9" | ||
}, | ||
@@ -61,5 +64,5 @@ "devDependencies": { | ||
"peerDependencies": { | ||
"react": "16.5", | ||
"react-dom": "16.5" | ||
"react": ">=16.5", | ||
"react-dom": ">=16.5" | ||
} | ||
} |
# LogRocket React plugin | ||
Optional add-on package for [logrocket](https://www.npmjs.com/package/logrocket). | ||
------ | ||
The LogRocket React plugin allows you to search for sessions in which the user clicks a specific component in your app: | ||
@@ -9,15 +12,15 @@ | ||
// If using React >16.5 | ||
npm i --save logrocket-react@3 | ||
### If using React >16.5 | ||
`npm i --save logrocket-react@3` | ||
// If using React 16.4 | ||
npm i --save logrocket-react@2 | ||
### If using React 16.4 | ||
`npm i --save logrocket-react@2` | ||
// If using React <16.4+ | ||
npm i --save logrocket-react@1 | ||
### If using React <16.4+ | ||
`npm i --save logrocket-react@1` | ||
// If using React 0.14.0 or React 15: | ||
npm i --save logrocket-react@^0.0.5 | ||
### If using React 0.14.0 or React 15: | ||
`npm i --save logrocket-react@^0.0.5` | ||
## Resources | ||
* [Documentation](https://docs.logrocket.com/docs/react-plugin) |
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
5703
38
26