yarn @bugsnag/js 7.0.0
v7.0.0

latest releases: 7.16.2, 7.16.1, 7.16.0...
4 years ago

This major version contains substantial changes. Please also refer to the upgrade guide.

Added

  • Add onBreadcrumb and onSession callbacks. #665
  • Add pauseSession() and resumeSession() methods to Client #666
  • Add static Bugsnag client interface #685
  • Add getUser() and setUser() methods to Session #692

Changed

  • Migrate lint tooling to ESLint for both .js and .ts source files #644
  • Rename autoNotify -> autoDetectErrors, and add enabledErrorTypes option for granularity #706
  • Rename autoCaptureSessions -> autoTrackSessions and simplify validation logic #647
  • Rename report to event #646
  • Rename notifyReleaseStages -> enabledReleaseStages #649
  • Rename beforeSend -> onError, remove event.ignore() and refactor callback logic #654
  • Update signature of notify(err, opts?, cb?) -> notify(err, onError?, cb?) for a canonical way to update events #655
  • Simplify client configuration, and store resulting config privately #656
  • User is now stored privately on client and event and updated via get/set methods #657
  • Remove individual breadcrumb flags in favour of enabledBreadcrumbTypes, rename breadcrumb.{ name -> message, metaData -> metadata }, and update leaveBreadcrumb() type signature to be more explicit #650
  • Rename metaData -> metadata and add consistent add/get/clearMetadata() methods to Client/Event for manipulating metadata explicitly, rather than mutating a property #658
  • Update leaveBreadcrumb() type signature to return void. #661
  • Refactor notify() to not accept events (they go via _notify() instead). Consolidate Event static methods into a single .create() utility, used by all automatic error detection components. #664
  • Stop applying default error class/message when none is supplied #676
  • Remove Bugsnag* prefix from internal class names #679
  • Rename and make private the Session method trackError() -> _track() #675
  • Update Event to support multiple errors #680
  • Move context to a private property on Client, and get/set via getContext()/setContext() #681
  • Update @bugsnag/safe-json-stringify to replace redacted values with [REDACTED] #683
  • Update collectUserIp option to use [REDACTED] instead of [NOT COLLECTED] for consistency #743
  • Refactor type definitions #682
  • Ensure automatic context is not used when setContext(null) has been called #694
  • Rename filters option to redactedKeys #704
  • Rename device.modelName to device.model #726
  • Rename client.refresh() to client.resetEventCount() #727
  • client.use(plugin) has been removed and plugins must now be passed in to configuration #759
  • Invalid configuration (except for apiKey) now falls back to default values rather than throwing an error #759

Removed

  • Remove non-public methods from Client interface: logger(), delivery() and sessionDelegate() #659
  • Remove client.request property #672
  • Remove client.device property #673
  • Remove client.app property #677
  • Move breadcrumbs to a private property on client._breadcrumbs #681

Don't miss a new js release

NewReleases is sending notifications on new releases.