Skip to content

Releases: bugsnag/bugsnag-js

v4.6.2

08 May 17:05
Compare
Choose a tag to compare

The previous version (v4.6.1) was removed from the npm registry and the CDN because of a critical issue surrounding history state methods. This release resolves that issue. The release notes for v4.6.1 are included here too for completeness.

Fixed

  • Fix history API url parameter logic (#347)
  • Only pass in url parameter to history methods when it is not undefined. Fixes a bug in IE11 where it converts undefined to a string, causing a redirect to /undefined. (#342)
  • Prevent a crash in IE10 when accessing history.state. (#345)

v4.6.1

03 May 13:13
Compare
Choose a tag to compare

A couple of fixes for IE10/11 relating to quirks in their implementation of the history APIs.

Fixed

  • Only pass in url parameter to history methods when it is not undefined. Fixes a bug in IE11 where it converts undefined to a string, causing a redirect to /undefined. (#342)
  • Prevent a crash in IE10 when accessing history.state. (#345)

v4.6.0

20 Apr 08:23
Compare
Choose a tag to compare

Added

  • It is now possible to customize the logger by setting the logger option of the configuration object. A custom logger must have the methods debug, info, warn and error. To completely disable logging, set logger: null. (#340)

Fixed

  • A custom version of safe-json-stringify now fully protects against circular structures returned from toJSON() and arbitrarily wide/deep structures (#338)

v4.5.0

06 Apr 09:45
Compare
Choose a tag to compare

Added

  • New breadcrumbs! Breadcrumbs are now left when requests are made using XMLHttpRequest (ajax) or fetch(). This works with all request libraries out of the box: jQuery, axios, superagent etc. Metadata includes HTTP method, request url and the status code (if available). By default network breadcrumbs are collected with all other autoBreadcrumb types. If you don't want to collect network breadcrumbs, set networkBreadcrumbsEnabled: false. (#334)

Changed

  • As part of #334 envify was added to compile out plugin "destroy" logic that was only required for tests.

v4.4.0

15 Mar 17:42
Compare
Choose a tag to compare

Changed

  • Switch from a protocol-relative default for endpoint and sessionEndpoint to "https://". IE8/9 will attempt to send via http if the protocol of the current page is http. Otherwise all requests will now go via https unless configured otherwise (#333).

Fixed

  • Fix rollup bundling issue (switching to a forked version of cuid) (#331)

v4.3.1

07 Mar 17:13
Compare
Choose a tag to compare

Changed

  • Perf improvements for breadcrumbs, most notably console log methods with lots of data (#329)

v4.3.0

23 Feb 15:38
Compare
Choose a tag to compare

Added

  • Stub exported types to appease Angular's JIT compiler in dev mode (#323)
  • Make hasStack(err) check more strict, making the unhandled rejection handler more robust and useful (#322)

Changed

  • Strip query strings and fragments from stackframe files (#328)
  • Switch to upstream version of fast-safe-stringify

v4.2.0

24 Jan 17:38
Compare
Choose a tag to compare

This release fixes a few issues with the fetching of inline script content, particularly after the location has changed due to window.history methods.

Unhandled promise rejection should also contain more actionable information (when the rejection reason is a DOMException, null, or undefined). Support for Bluebird promises was also added.

Added

  • Support for unhandled bluebird promise rejections (#317)
  • Option to prevent IP collection (#313)

Changed

  • Improved serialization of promise rejection reasons (#317)
  • If a string was thrown and not caught, use it as the error message (#319)

Fixed

  • Collection of inline script content improved (#320, #318)

v4.1.3

15 Jan 16:02
Compare
Choose a tag to compare

Fixed

v4.1.2

09 Jan 17:22
Compare
Choose a tag to compare

Added

  • Session sending now respects notifyReleaseStages option

Changed

  • Rename option enableSessionTracking -> autoCaptureSessions for consistency with other platforms