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

fix: Directly export class, document API. #39

Merged
merged 1 commit into from Dec 7, 2019

Conversation

coreyfarrell
Copy link
Member

BREAKING CHANGE: test-exclude now exports a class so it is necessary
to use new TestExclude() when creating an instance.

Fixes #33


@bcoe @SimenB Sorry for the late change but I'm planning to do this mainly because I find it easier to document the API. I'm not opposed to suggestions for how to clearly document the existing API.

The plan is that I will publish updated betas of nyc and babel-plugin-istanbul which pin to test-exclude@=6.0.0-beta.1 before releasing this. Then I will release beta.2 of test-exclude, then update nyc and babel-plugin-istanbul to deal with the new API. According to some data I have @istanbuljs/schemas which is used by new betas only has been downloaded 6004 times in the past 30 days, from what I can tell about 1500 of those downloads are not from nyc 15. I think my plan will ensure those users do not see any breakage. I just double-checked, the jest repo will not require any code changes to deal with this change.

Thoughts / objections?

BREAKING CHANGE: `test-exclude` now exports a class so it is necessary
to use `new TestExclude()` when creating an instance.

Fixes istanbuljs#33
Copy link
Member

@JaKXz JaKXz left a comment

Choose a reason for hiding this comment

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

👍🏽 Your plan for versioning makes sense! :)

@coreyfarrell coreyfarrell merged commit 3acc196 into istanbuljs:master Dec 7, 2019
@coreyfarrell coreyfarrell deleted the export-class branch December 7, 2019 01:22
@SimenB
Copy link
Member

SimenB commented Dec 7, 2019

This makes sense to me 👍

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.

test-exclude: README issues
3 participants