Skip to content

feat: add istanbul-lib-coverage to preferred replacements - #1028

Open
ChrisJr404 wants to merge 1 commit into
e18e:mainfrom
ChrisJr404:istanbul-lib-coverage-replacement
Open

feat: add istanbul-lib-coverage to preferred replacements#1028
ChrisJr404 wants to merge 1 commit into
e18e:mainfrom
ChrisJr404:istanbul-lib-coverage-replacement

Conversation

@ChrisJr404

Copy link
Copy Markdown

Adds istanbul-lib-coverage to the preferred manifest, pointing at the maintained @vitest/istanbul-lib-coverage fork, since the original is no longer maintained.

The fork keeps the same API so migrating is mostly just swapping the import, and it ships as ESM with its own types. I added a docs page covering that.

Closes #993

@gameroman

Copy link
Copy Markdown
Contributor

Should we also add other istanbul-* packages in the same PR?

@dreyfus92 dreyfus92 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @ChrisJr404 for putting this together, and @AriPerkkio for the quick review.

one thing I was wondering about while reading the docs page: the fork has engines: node >=22 and ships ESM-only, which is a bigger jump than "just swap the import" for some projects. would it be worth a line or two mentioning that, so people on older Node or CJS aren't caught off guard?

@gameroman good call on the other istanbul-* packages, but i'd rather keep this PR scoped to istanbul-lib-coverage since the linked issue covers just this one and it's already approved. would you mind opening a tracking issue for the rest?

@@ -0,0 +1,31 @@
---
description: Replace the unmaintained istanbul-lib-coverage package with the maintained @vitest/istanbul-lib-coverage fork

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should probably be worded similar to the others, "Modern alternatives to ..."


# Replacements for `istanbul-lib-coverage`

`istanbul-lib-coverage` is no longer maintained. The Vitest team publishes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the context around the vitest fork should be in the vitest section, leaving only the "no longer maintained" message here i think

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.

[Replacement]: istanbul-lib-coverage

5 participants