UNPKG

logrocket

Version:

JavaScript SDK for [LogRocket](https://logrocket.com/)

165 lines (102 loc) 3.94 kB
### 1.0.6 * Fixed Typescript types for request/response sanitizer and state/action sanitizer options ### 1.0.5 * More improvements to fetch handling in Safari. ### 1.0.4 * 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. ### 1.0.2 * Updated TypeScript definition file ### 1.0.1 * 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 available at https://docs.logrocket.com/docs/troubleshooting-sessions#section-due-to-content-security-policy ### 0.6.21 * Additional error handling when recording network. ### 0.6.20 * Updated TypeScript definition file. ### 0.6.19 * 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. // 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. ### 0.6.16 * Added anonymous use of `identify` to the TypeScript definition file. ### 0.6.15 * Fixed a build issue resulting in a potential reference error. ### 0.6.14 * Fixed minification bug ### 0.6.13 * Updated TypeScript definition file. ### 0.6.12 * Fixed a memory leak when recording XMLHttpRequests. ### 0.6.11 * Fixed a bug where recording some fetch requests in Safari 11.1 would fail. ### 0.6.10 * Fixed `captureException` type definition. ### 0.6.9 * 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`. ### 0.6.7 * Fixed module export in definition file ### 0.6.6 * Typescript definition file now works with `noImplicitAny` and `strictLibCheck`. ### 0.6.5 * Fixed Typescript definition file ### 0.6.4 * Stability improvements ### 0.6.3 * Fix an edge case where network logging would fail on old iOS Safari. ### 0.6.2 * Stability improvements ### 0.6.1 * Remove some cruft from the SDK ### 0.6.0 * Expose additional methods for logging ### 0.5.5 ##### Changes * Fix a case where MutationObserver was overwritten by user-land code. ### 0.5.4 ##### Changes * Make sure LogRocket doesn't fail to load in NodeJS environment * Improve timekeeping in browsers with incorrect clocks ### 0.5.3 ##### Changes * Add sessionURL to types. * Fixed reduxMiddleware type * Fixed Typescript module definition ### 0.5.2 ##### Changes * Fix `instanceof` checks on `XMLHttpRequest`. * Added TypeScript definition file. ### 0.5.1 ##### Changes * Switch to an unminified bundle to fix builds for old Webpack versions. ### 0.5.0 ##### Features * Add `LogRocket.track()` for custom analytics events: https://docs.logrocket.com/v1.0/reference#track ### 0.4.3 ##### Bugfixes * Correctly truncate network data for large XHR requests. ### 0.4.2 ##### Bugfixes * Correctly forward XMLHttpRequest.UNSENT, XMLHttpRequest.OPENED, XMLHttpRequest.HEADERS_RECEIVED, XMLHttpRequest.LOADING, and XMLHttpRequest.DONE. ### 0.4.1 ##### Changes * 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!