Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V7 #678

Merged
merged 388 commits into from
Apr 14, 2020
Merged

V7 #678

merged 388 commits into from
Apr 14, 2020

Conversation

bengourley
Copy link
Contributor

@bengourley bengourley commented Dec 18, 2019

7.0.0 (2020-04-14)

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

@bugsnagbot
Copy link
Collaborator

bugsnagbot commented Dec 18, 2019

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 40.96 kB 12.27 kB
After 39.28 kB 12.12 kB
± -1,680 bytes -143 bytes

Generated by 🚫 dangerJS against 0b65c33

@bengourley bengourley added the wip There is work in progress label Dec 18, 2019
V7: Tweak maxBreadcrumbs default/limit
V7: Ensure config defaults match spec
bengourley and others added 26 commits March 31, 2020 11:06
Witnessed an unnecessary CI failure when the step was slow but progressing successfully.  Presumably due to busy CI infrastructure.
Now that leaveBreadcrumb() doesn't have the check of enabledBreadcrumbTypes, the notifier needs to
check if "error" breadcrumbs are desired before adding them. Additionally this commit forces Node
not to leave any breadcrumbs at all, until they are switched on.
fix: Ensure breadcrumbs behave correctly
fix(plugin-vue): fix type definition
Revert "refactor(types): Allow null section in event metadata"

This reverts commit 23e3a02.

Revert "refactor(types): Allow null metadata in types too"

This reverts commit 1e2d8d2.

Revert "docs: Update upgrading guide with top-level metadata"

This reverts commit d0f3bb8.

Revert "feat(core): Support adding top-level metadata"

This reverts commit 526c897.
Update expo CI entitlements for iOS
@bengourley bengourley removed the wip There is work in progress label Apr 14, 2020
@bengourley bengourley merged commit 0b65c33 into master Apr 14, 2020
@bengourley bengourley deleted the v7 branch August 12, 2020 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants