Skip to content

Explore deprecation of istanbul-api #321

@coreyfarrell

Description

@coreyfarrell

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 is [email protected] - the async constructor requires breaking API changes to istanbul-lib-source-maps and I'm not sure how to make istanbul-api work with it. One idea I have is to publish [email protected] 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 upgrade source-map we would not update istanbul-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 the istanbul-api dependency is moving to @jest/reporters. createReporter is the only thing jest uses from istanbul-api so I'm hoping we can convince them to use istanbul-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 guessing jest-cli@14 and below is still getting significant downloads, that version uses the original istanbul module.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions