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

feat(react-native): support react-native-file-access v1.x #488

Closed yousif-bugsnag closed 3 months ago

yousif-bugsnag commented 3 months ago

Goal

Adds support for older versions of react-native-file-access:

This builds on #480, exporting the vendored utility functions from the persistence module as they are also used in the retry queue module.

Testing

Relied on existing tests

github-actions[bot] commented 3 months ago

Browser bundle size

NPM build

Package
Before 191.20 kB
After 191.20 kB
± No change

CDN build

Unminified Minfied Minified + gzipped
Before 95.92 kB 35.88 kB 10.87 kB
After 95.92 kB 35.88 kB 10.87 kB
± No change No change No change

Code coverage

Ok File (✨=New File) Lines Branches Functions Statements
🔴 ✨ /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/react-native/lib/persistence/file-utils.ts 60%
(+60%)
28.57%
(+28.57%)
83.33%
(+83.33%)
60%
(+60%)
🔴 /home/runner/work/bugsnag-js-performance/bugsnag-js-performance/packages/platforms/react-native/lib/persistence/index.ts 92.3%
(+0.64%)
50%
(+0%)
100%
(+0%)
92.85%
(+1.19%)

Total:

Lines Branches Functions Statements
86.67%(-0.3%) 77.13%(-1%) 87.71%(-0.03%) 83.46%(-0.22%)

Generated against 33a3f9e14fdec053dfb0861057179e26073f64cd on 7 August 2024 at 11:33:07 UTC