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

Add service worker support #1915

Merged
merged 52 commits into from
Jan 31, 2023
Merged

Conversation

gingerbenw
Copy link
Member

@gingerbenw gingerbenw commented Jan 31, 2023

Goal

To support the ability to use BugSnag within a web worker or service worker, including background scripts in chrome extensions

Design

The browser notifier is bundled with many plugins which are either unnecessary, or would need to be rewritten to support service workers, so a new simple worker notifier provides the opportunity to define worker related features off of a stable base

Changeset

  • New web-worker package
  • New delivery-fetch package
  • Refactored CDN upload script
  • Updated pipeline scripts to support new packages
  • Updated plugin-browser-device to support web workers
  • Updated plugin-window-onerror to support web workers

Testing

  • Unit tests added for new packages and changes to existing packages
  • End to end tests added for new packages
  • Manually tested CDN upload script changes with sandbox account
  • Dropped failing Android 6 browser tests

gingerbenw and others added 30 commits January 31, 2023 15:15
Co-authored-by: Joe Haines <hello@joehaines.co.uk>
Co-authored-by: Joe Haines <hello@joehaines.co.uk>
Co-authored-by: Joe Haines <hello@joehaines.co.uk>
Co-authored-by: Joe Haines <hello@joehaines.co.uk>
@github-actions
Copy link

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 43.43 kB 13.34 kB
After 43.45 kB 13.36 kB
± ⚠️ +17 bytes ⚠️ +19 bytes

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 2112ffa

@gingerbenw gingerbenw marked this pull request as ready for review January 31, 2023 15:55
@gingerbenw gingerbenw merged commit 04ada58 into next Jan 31, 2023
@gingerbenw gingerbenw mentioned this pull request Jan 31, 2023
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.

None yet

2 participants