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

👷 Replace istanbul-instrumenter-loader with coverage-istanbul-loader #1020

Closed
wants to merge 4 commits into from

Conversation

bpinto
Copy link
Contributor

@bpinto bpinto commented Aug 30, 2021

Motivation

To keep up to date with latest versions of all libraries which include bug fixes and improvements.

Changes

This change removes a no longer supported library by replacing it with another.

Testing

I ran both yarn test:unit and yarn test:e2e.


I have gone over the contributing documentation.

bpinto added 2 commits August 30, 2021 19:26
`istanbul-instrumenter-loader` library has been deprecated and its
repository is now archived. It has been superseded by
`coverage-istanbul-loader`.

Additionally, it removes a warning that was more visible if one tried to
use `npm` instead of `yarn`:

```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: browser-sdk@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/webpack
npm ERR!   dev webpack@"5.28.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer webpack@"^2.0.0 || ^3.0.0 || ^4.0.0" from [email protected]
npm ERR! node_modules/istanbul-instrumenter-loader
npm ERR!   dev istanbul-instrumenter-loader@"3.0.1" from the root project
```
@bpinto bpinto requested a review from a team as a code owner August 30, 2021 18:30
@bits-bot
Copy link

bits-bot commented Aug 30, 2021

CLA assistant check
All committers have signed the CLA.

@BenoitZugmeyer
Copy link
Member

Thanks for reporting this. It looks like coverage-istanbul-loader is not really maintained either... but still it may be better than the old one? At least it will fix the yarn warning

warning " > [email protected]" has incorrect peer dependency "webpack@^2.0.0 || ^3.0.0 || ^4.0.0".

since it doesn't specify a webpack version. We'll take a look.

@bpinto
Copy link
Contributor Author

bpinto commented Sep 1, 2021

I agree it's not a perfect replacement but I could not find anything newer. I might look into opening a PR that bumps webpack to v5 later.

But as you said, it does help with some existing warnings.

This commit fixes `yarn audit` warnings by bumping some subdependencies
minor versions. For some reason, yarn downgraded the versions while
replacing the package.
@codecov-commenter
Copy link

Codecov Report

Merging #1020 (9338973) into main (e50faf3) will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1020   +/-   ##
=======================================
  Coverage   88.98%   88.98%           
=======================================
  Files          88       88           
  Lines        4122     4123    +1     
  Branches      946      946           
=======================================
+ Hits         3668     3669    +1     
  Misses        454      454           
Impacted Files Coverage Δ
.../src/domain/rumEventsCollection/view/trackViews.ts 97.91% <0.00%> (+0.02%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e50faf3...9338973. Read the comment docs.

@BenoitZugmeyer
Copy link
Member

This PR is superseded by #1023 (branches need to be on our own repository so the CI can be executed)

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.

4 participants