Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

logrocket-react

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket-react - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

8

CHANGELOG.md

@@ -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

dist/index.js

@@ -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() {

11

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc