Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

logrocket

Package Overview
Dependencies
Maintainers
14
Versions
172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logrocket - npm Package Compare versions

Comparing version
10.1.0
to
10.1.1-rc1
+180
-104
CHANGELOG.md

@@ -0,258 +1,334 @@

### 10.1.1
- Improve exception function wrapping behavior
### 10.1.0
* Added capture of more specific XMLHttpRequest failure codes
* Added network response capture for synchronous XMLHttpRequests
- Added capture of more specific XMLHttpRequest failure codes
- Added network response capture for synchronous XMLHttpRequests
### 10.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 9.0.2
* include second argument passed to console.error() in associated exceptions when first argument is 'ERROR'
- include second argument passed to console.error() in associated exceptions when first argument is 'ERROR'
### 9.0.1
* Allowing "null" property values in `LogRocket.track() calls.
- Allowing "null" property values in `LogRocket.track() calls.
### 9.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 8.1.3
* Fixed a minor issue that could prevent capture of `history.pushState` and `history.popState` as navigation events.
- Fixed a minor issue that could prevent capture of `history.pushState` and `history.popState` as navigation events.
### 8.1.2
* Added logging to capture stack traces from unhandled rejections that contain errors.
- Added logging to capture stack traces from unhandled rejections that contain errors.
### 8.1.1
* Resolved an issue with environments that make console methods read-only. We will not be able to capture automatic logs in these environments, but will be able to initialize completely.
* When network capture has been explicitly disabled (with the `network.isEnabled: false` initialization option) we will no longer wrap `XMLHttpRequest` or `fetch`.
* Added `dom.disableWebAnimations` initialization option to disable web animation capture, which is enabled by default (https://docs.logrocket.com/reference/disabling-web-animation-api-capture).
- Resolved an issue with environments that make console methods read-only. We will not be able to capture automatic logs in these environments, but will be able to initialize completely.
- When network capture has been explicitly disabled (with the `network.isEnabled: false` initialization option) we will no longer wrap `XMLHttpRequest` or `fetch`.
- Added `dom.disableWebAnimations` initialization option to disable web animation capture, which is enabled by default (https://docs.logrocket.com/reference/disabling-web-animation-api-capture).
### 8.1.0
* Added `trackScrollEvent` SDK call for manually logging element scroll positions.
- Added `trackScrollEvent` SDK call for manually logging element scroll positions.
### 8.0.1
* Fixed an issue where some event listeners could not be removed after SDK shutdown.
- Fixed an issue where some event listeners could not be removed after SDK shutdown.
### 8.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 7.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 6.0.2
* If a network response contains `text/event-stream` content do not attempt to read the body. A placeholder body
- If a network response contains `text/event-stream` content do not attempt to read the body. A placeholder body
indicating we did not attempt to read the payload is used instead.
### 6.0.1
* Update type definitions to correctly expose `serverURL` for the `LogRocket.init` method.
* Added type definition for the `logrocket/setup` method of configuring the SDK.
- Update type definitions to correctly expose `serverURL` for the `LogRocket.init` method.
- Added type definition for the `logrocket/setup` method of configuring the SDK.
### 6.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 5.0.1
* Added "hiddenAttributes" config option to ignore specific DOM attributes in recording
- Added "hiddenAttributes" config option to ignore specific DOM attributes in recording
### 5.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 4.0.4
* Added new option "privateClassNameBlocklist" to the "dom" init config for css class based redaction.
- Added new option "privateClassNameBlocklist" to the "dom" init config for css class based redaction.
### 4.0.3
* Fixed bundle size
- Fixed bundle size
### 4.0.2
* Added support for Ionic Framework
- Added support for Ionic Framework
### 4.0.1
* Added "disableBusyFramesTracker" to allow disabling CPU Usage monitoring
- Added "disableBusyFramesTracker" to allow disabling CPU Usage monitoring
### 4.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 3.0.1
* Stability improvements
- Stability improvements
### 3.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 2.2.1
* Added new option "privateAttributeBlocklist" to the "dom" init config with
- Added new option "privateAttributeBlocklist" to the "dom" init config with
### 2.2.0
* Stability improvements
- Stability improvements
### 2.1.3
* Add TS type for SDK `version` property
- Add TS type for SDK `version` property
### 2.1.2
* Suppress AbortError for completed fetch responses
- Suppress AbortError for completed fetch responses
### 2.1.1
* Stability improvements
- Stability improvements
### 2.1.0
* Added TS types for cross-domain iframe recording configuration variables
- Added TS types for cross-domain iframe recording configuration variables
found here https://docs.logrocket.com/reference#mergeiframes
### 2.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 1.3.0
* Made NPS survey LogRocket session URL injection optional
- Made NPS survey LogRocket session URL injection optional
### 1.2.3
* Fixed `TrackEventProperties` typescript definition.
- Fixed `TrackEventProperties` typescript definition.
### 1.2.2
* Stability improvements
- Stability improvements
### 1.2.1
* Stability improvements
- Stability improvements
### 1.2.0
* Delighted Integration
- Delighted Integration
### 1.1.0
* Track API improvements
- Track API improvements
### 1.0.16
* Wootric integration improvements
- Wootric integration improvements
### 1.0.15
* Wootric integration
- Wootric integration
### 1.0.14
* Support non-extensible event listeners
- Support non-extensible event listeners
### 1.0.13
* Ignore network request and response bodies when the SDK is shut down.
- Ignore network request and response bodies when the SDK is shut down.
### 1.0.12
* Added request ID to request and response sanitizers
- Added request ID to request and response sanitizers
### 1.0.11
* Stability improvements.
- Stability improvements.
### 1.0.10
* Stability improvements.
- Stability improvements.
### 1.0.9
* Updated TypeScript definition file
- Updated TypeScript definition file
### 1.0.8
* Updated TypeScript definition file
- Updated TypeScript definition file
### 1.0.7
* Updated TypeScript definition file
- Updated TypeScript definition file
### 1.0.6
* Fixed Typescript types for request/response sanitizer and state/action sanitizer options
- Fixed Typescript types for request/response sanitizer and state/action sanitizer options
### 1.0.5
* More improvements to fetch handling in Safari.
- More improvements to fetch handling in Safari.
### 1.0.4
* Fixed a bug where recording some fetch requests in Safari would fail.
- Fixed a bug where recording some fetch requests in Safari would fail.
### 1.0.3
* Added OSS attributions to be a good open-source citizen.
- Added OSS attributions to be a good open-source citizen.
### 1.0.2
* Updated TypeScript definition file
- Updated TypeScript definition file
### 1.0.1
* Added a warning when the async script is blocked by the browser.
- Added a warning when the async script is blocked by the browser.
### 1.0.0
* Introduced new CDN and service endpoints. A new Content Security Policy is
- Introduced new CDN and service endpoints. A new Content Security Policy is
available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy
### 0.6.21
* Additional error handling when recording network.
- Additional error handling when recording network.
### 0.6.20
* Updated TypeScript definition file.
- Updated TypeScript definition file.
### 0.6.19
* Resolved an issue with server-side rendering tools introduced by the 0.6.18 release.
- Resolved an issue with server-side rendering tools introduced by the 0.6.18 release.
### 0.6.18
**This release has been revoked due to a bug with server-side applications**
* Added new entrypoint `logrocket/setup` for configuring on-prem SDK.
- Added new entrypoint `logrocket/setup` for configuring on-prem SDK.
// Loads the full SDK from your host instead of our public CDN and
// configures the SDK to send data to your installation.
const LogRocket = require('logrocket/setup')({
sdkServer: 'YOUR_DASHBOARD_HOST',
ingestServer: 'YOUR_INGEST_HOST',
});
// Loads the full SDK from your host instead of our public CDN and
// configures the SDK to send data to your installation.
const LogRocket = require('logrocket/setup')({
sdkServer: 'YOUR_DASHBOARD_HOST',
ingestServer: 'YOUR_INGEST_HOST',
});
### 0.6.17
* Added a new option `ingestServer` to simplify configuration for on-prem installs.
- Added a new option `ingestServer` to simplify configuration for on-prem installs.
### 0.6.16
* Added anonymous use of `identify` to the TypeScript definition file.
- Added anonymous use of `identify` to the TypeScript definition file.
### 0.6.15
* Fixed a build issue resulting in a potential reference error.
- Fixed a build issue resulting in a potential reference error.
### 0.6.14
* Fixed minification bug
- Fixed minification bug
### 0.6.13
* Updated TypeScript definition file.
- Updated TypeScript definition file.
### 0.6.12
* Fixed a memory leak when recording XMLHttpRequests.
- Fixed a memory leak when recording XMLHttpRequests.
### 0.6.11
* Fixed a bug where recording some fetch requests in Safari 11.1 would fail.
- Fixed a bug where recording some fetch requests in Safari 11.1 would fail.
### 0.6.10
* Fixed `captureException` type definition.
- Fixed `captureException` type definition.
### 0.6.9
* Allow calling `captureException` and `captureMessage` in Node.js environments.
- Allow calling `captureException` and `captureMessage` in Node.js environments.
### 0.6.8
* Calling `init` more than once no longer throws an error. The session will not be changed.
* The `startNewSession` method now prints a `console.error` when its called before `init`.
- Calling `init` more than once no longer throws an error. The session will not be changed.
- The `startNewSession` method now prints a `console.error` when its called before `init`.
### 0.6.7
* Fixed module export in definition file
- Fixed module export in definition file
### 0.6.6
* Typescript definition file now works with `noImplicitAny` and `strictLibCheck`.
- Typescript definition file now works with `noImplicitAny` and `strictLibCheck`.
### 0.6.5
* Fixed Typescript definition file
- Fixed Typescript definition file
### 0.6.4
* Stability improvements
- Stability improvements
### 0.6.3
* Fix an edge case where network logging would fail on old iOS Safari.
- Fix an edge case where network logging would fail on old iOS Safari.
### 0.6.2
* Stability improvements
- Stability improvements
### 0.6.1
* Remove some cruft from the SDK
- Remove some cruft from the SDK
### 0.6.0
* Expose additional methods for logging
- Expose additional methods for logging

@@ -263,3 +339,3 @@ ### 0.5.5

* Fix a case where MutationObserver was overwritten by user-land code.
- Fix a case where MutationObserver was overwritten by user-land code.

@@ -270,4 +346,4 @@ ### 0.5.4

* Make sure LogRocket doesn't fail to load in NodeJS environment
* Improve timekeeping in browsers with incorrect clocks
- Make sure LogRocket doesn't fail to load in NodeJS environment
- Improve timekeeping in browsers with incorrect clocks

@@ -278,5 +354,5 @@ ### 0.5.3

* Add sessionURL to types.
* Fixed reduxMiddleware type
* Fixed Typescript module definition
- Add sessionURL to types.
- Fixed reduxMiddleware type
- Fixed Typescript module definition

@@ -287,4 +363,4 @@ ### 0.5.2

* Fix `instanceof` checks on `XMLHttpRequest`.
* Added TypeScript definition file.
- Fix `instanceof` checks on `XMLHttpRequest`.
- Added TypeScript definition file.

@@ -295,3 +371,3 @@ ### 0.5.1

* Switch to an unminified bundle to fix builds for old Webpack versions.
- Switch to an unminified bundle to fix builds for old Webpack versions.

@@ -302,3 +378,3 @@ ### 0.5.0

* Add `LogRocket.track()` for custom analytics events: https://docs.logrocket.com/v1.0/reference#track
- Add `LogRocket.track()` for custom analytics events: https://docs.logrocket.com/v1.0/reference#track

@@ -309,3 +385,3 @@ ### 0.4.3

* Correctly truncate network data for large XHR requests.
- Correctly truncate network data for large XHR requests.

@@ -316,3 +392,3 @@ ### 0.4.2

* Correctly forward XMLHttpRequest.UNSENT, XMLHttpRequest.OPENED, XMLHttpRequest.HEADERS_RECEIVED, XMLHttpRequest.LOADING, and XMLHttpRequest.DONE.
- Correctly forward XMLHttpRequest.UNSENT, XMLHttpRequest.OPENED, XMLHttpRequest.HEADERS_RECEIVED, XMLHttpRequest.LOADING, and XMLHttpRequest.DONE.

@@ -323,6 +399,6 @@ ### 0.4.1

* console and network shims are on installed if `LogRocket.init()` is called, instead of when
`LogRocket` is imported. This should make it easier to only install LogRocket in a staging/prod
environment.
* `whatwg-fetch` is no longer included automatically. Make sure to import `whatwg-fetch` before calling `LogRocket.init()`.
* Decreased gzipped bundle size from ~22kb to ~8kb!
- console and network shims are on installed if `LogRocket.init()` is called, instead of when
`LogRocket` is imported. This should make it easier to only install LogRocket in a staging/prod
environment.
- `whatwg-fetch` is no longer included automatically. Make sure to import `whatwg-fetch` before calling `LogRocket.init()`.
- Decreased gzipped bundle size from ~22kb to ~8kb!
type Nullable<T> = {
[Property in keyof T]: T[Property] | null;
}
};

@@ -31,49 +31,51 @@ declare let LogRocket: LR.LogRocket;

interface IOptions {
release?: string,
release?: string;
console?: {
isEnabled?: boolean | {
log?: boolean,
info?: boolean,
debug?: boolean,
warn?: boolean,
error?: boolean
},
shouldAggregateConsoleErrors?: boolean,
},
isEnabled?:
| boolean
| {
log?: boolean;
info?: boolean;
debug?: boolean;
warn?: boolean;
error?: boolean;
};
shouldAggregateConsoleErrors?: boolean;
};
network?: {
isEnabled?: boolean,
requestSanitizer?(request: IRequest): null | Nullable<IRequest>,
responseSanitizer?(response: IResponse): null | Nullable<IResponse>,
},
isEnabled?: boolean;
requestSanitizer?(request: IRequest): null | Nullable<IRequest>;
responseSanitizer?(response: IResponse): null | Nullable<IResponse>;
};
browser?: {
urlSanitizer?(url: string): null | string,
},
urlSanitizer?(url: string): null | string;
};
dom?: {
isEnabled?: boolean,
baseHref?: string,
textSanitizer?: boolean | string,
inputSanitizer?: boolean | string,
privateAttributeBlocklist?: string[],
privateClassNameBlocklist?: string[],
hiddenAttributes?: string[],
isEnabled?: boolean;
baseHref?: string;
textSanitizer?: boolean | string;
inputSanitizer?: boolean | string;
privateAttributeBlocklist?: string[];
privateClassNameBlocklist?: string[];
hiddenAttributes?: string[];
/**
* Prevents Web Animation API animations from being captured in a limited capacity.
* Defaults to false.
*/
disableWebAnimations?: boolean,
*/
disableWebAnimations?: boolean;
/** Prevents recording of document.title */
disablePageTitles?: boolean,
disablePageTitles?: boolean;
/** Prevents visibleElement filters from taking the viewport into consideration */
disableVisibleElement?: boolean,
},
disableVisibleElement?: boolean;
};
/** Controls collection of IP addresses and related features, such as GeoIP */
shouldCaptureIP?: boolean,
shouldCaptureIP?: boolean;
/**
* Enable sharing sessions across subdomains by setting this to the top-level hostname.
* */
rootHostname?: string,
* Enable sharing sessions across subdomains by setting this to the top-level hostname.
* */
rootHostname?: string;

@@ -85,12 +87,12 @@ /**

*/
serverURL?: string,
serverURL?: string;
uploadTimeInterval?: number,
uploadTimeInterval?: number;
/** a callback which determines whether to send data at a particular moment of time. * */
shouldSendData?(): boolean,
shouldSendData?(): boolean;
shouldDebugLog?: boolean,
shouldDebugLog?: boolean;
mergeIframes?: boolean,
mergeIframes?: boolean;

@@ -101,3 +103,3 @@ /**

* */
childDomains?: string[] | null,
childDomains?: string[] | null;

@@ -108,7 +110,7 @@ /**

* */
parentDomain?: string | null,
parentDomain?: string | null;
shouldAugmentNPS?: boolean,
shouldAugmentNPS?: boolean;
shouldParseXHRBlob?: boolean,
shouldParseXHRBlob?: boolean;

@@ -118,11 +120,17 @@ /** Controls automatic detection of JS errors using Raven.js

*/
shouldDetectExceptions?: boolean,
shouldDetectExceptions?: boolean;
/** Disables automatic busy frames tracking used for CPU Usage monitoring
*/
disableBusyFramesTracker?: boolean,
disableBusyFramesTracker?: boolean;
/**
* When true, indicates a brand new session should be started on this init call, and no other
* information, such as user identity, should be carried over from any previous session.
*/
forceCleanStart?: boolean;
}
interface IUserTraits {
[propName: string]: string | number | boolean,
[propName: string]: string | number | boolean;
}

@@ -135,5 +143,5 @@

/** Sanitizer function to scrub redux state */
stateSanitizer?(state: State): State,
stateSanitizer?(state: State): State;
/** Sanitizer function to scrub or ignore specific redux actions */
actionSanitizer?(action: Action): null | Action,
actionSanitizer?(action: Action): null | Action;
}

@@ -143,12 +151,12 @@

tags?: {
[tagName: string]: string | number | boolean,
},
[tagName: string]: string | number | boolean;
};
extra?: {
[tagName: string]: string | number | boolean,
},
[tagName: string]: string | number | boolean;
};
}
type TrackEventProperties = {
revenue?: number,
[key: string]: string | number | boolean | string[] | number[] | boolean[] | undefined | null
revenue?: number;
[key: string]: string | number | boolean | string[] | number[] | boolean[] | undefined | null;
};

@@ -155,0 +163,0 @@

{
"name": "logrocket",
"version": "10.1.0",
"version": "10.1.1-rc1",
"description": "JavaScript SDK for [LogRocket](https://logrocket.com/)",

@@ -32,2 +32,3 @@ "main": "dist/build.umd.js",

"@logrocket/redux": "^0.0.85",
"@logrocket/utils": "^0.0.85",
"@sdk/shopify-pixel": "^0.0.85",

@@ -34,0 +35,0 @@ "redux": "^3.7.2"

@@ -13,3 +13,3 @@ # LogRocket

* [Documentation](https://docs.logrocket.com/reference)
* [Acknowledgements](https://logrocket.com/open-source)
- [Documentation](https://docs.logrocket.com/reference)
- [Acknowledgements](https://logrocket.com/open-source)

@@ -8,3 +8,3 @@ import type LR from './dist/types';

*/
enterpriseServer?: string,
enterpriseServer?: string;

@@ -15,3 +15,3 @@ /**

*/
sdkServer?: string,
sdkServer?: string;

@@ -22,5 +22,5 @@ /**

*/
ingestServer?: string,
ingestServer?: string;
}): typeof LR;
export = setup;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display