-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Explore deprecation of istanbul-api #321
Comments
@SimenB could I get your thoughts on this topic? |
Hey! 👋 |
@SimenB I could give it a shot. I've run
Obviously when I think I have a functional change I'll expand my testing to everything but I need to be able to run more focused tests initially. |
The
You should run If you've already built everything, you can also do
By doing |
@SimenB I just got around to looking at this again, I'm still getting the hg failures after updating:
My hg version is 4.4.2, not sure that matters. |
I'm using If yes, you can just ignore those failures, CI will catch them if an istanbul change, for whatever reason, breaks them 🙂 |
@SimenB I think I have the correct code in place for jest-reporters, having an issue with typescript checking.
It seems that |
The above happened when I ran |
@coreyfarrell I'd love to chat about these things. Do we have some Istanbul chat? Like slack, discord etc? If not, wanna join Jest's? It's part of Reactiflux |
@SimenB we have slack, you can join at http://devtoolscommunity.herokuapp.com/ (the actual slack is https://node-tooling.slack.com/ channel |
BREAKING CHANGE: The istanbul-api module is now deprecated. Any modules which use istanbul-api should migrate. Fixes #321
I'd like for us to consider deprecating
istanbul-api
in favor of consumers directly using the implementation modules (istanbul-lib-report
, etc). The motivation issource-map@0.7.3
- the async constructor requires breaking API changes toistanbul-lib-source-maps
and I'm not sure how to makeistanbul-api
work with it. One idea I have is to publishistanbul-api@3.0.0
and immediate deprecate that version only. This way we discourage new modules from using istanbul-api but we don't cause a deprecation warning for the existing major users. When we drop node.js 6 and upgradesource-map
we would not updateistanbul-api
to be compatible.According to npmjs.com
istanbul-api
was downloaded 5.1 million times last week.jest-cli
was downloaded 4.5 million times.jest-cli
is being split up so theistanbul-api
dependency is moving to@jest/reporters
.createReporter
is the only thing jest uses fromistanbul-api
so I'm hoping we can convince them to useistanbul-lib-report
directly.Another large user is
karma-coverage-istanbul-reporter
at 700k downloads last week.fusion-cli
had 15k last week, I'm not seeing any other dependents with a large number of downloads.About the missing 200k
istanbul-api
downloads, I'm guessingjest-cli@14
and below is still getting significant downloads, that version uses the originalistanbul
module.The text was updated successfully, but these errors were encountered: