bugsnag / bugsnag-js-performance

Monitor the performance of your JavaScript (web and React Native) and see the results in your BugSnag dashboard.
https://docs.bugsnag.com/performance/integration-guides
MIT License
5 stars 3 forks source link

[PLAT-11283] Add getPlugin method to core #379

Closed gingerbenw closed 10 months ago

gingerbenw commented 10 months ago

Goal

To add getPlugin functionality to the core client

Testing

Added unit test that a provided plugin is able to be retrieved and used

github-actions[bot] commented 10 months ago

Browser bundle size

NPM build

Package
Before 177.29 kB
After 177.95 kB
± +659 bytes ⚠️

CDN build

Unminified Minfied Minified + gzipped
Before 85.29 kB 32.19 kB 9.87 kB
After 85.60 kB 32.28 kB 9.89 kB
± +315 bytes ⚠️ +94 bytes ⚠️ +28 bytes ⚠️

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/core.ts 100%
(+0%)
80%
(+5%)
90.9%
(+0.9%)
97.82%
(+0.26%)
/home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/core/lib/validation.ts 100%
(+4%)
100%
(+5.56%)
100%
(+12.5%)
100%
(+5.13%)
/home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/react-native/lib/id-generator.ts 100%
(+10%)
100%
(+0%)
100%
(+0%)
100%
(+10%)

Total:

Lines Branches Functions Statements
92.25%(+0.17%) 80.37%(+0.41%) 93.31%(+0.53%) 90.35%(+0.22%)

Generated against 1f961ed3018e8fcf577b75e12186b27c56053371 on 6 December 2023 at 14:26:58 UTC