Skip to content

chore: Use class to declare NYC#1069

Merged
coreyfarrell merged 1 commit intoistanbuljs:masterfrom
coreyfarrell:nyc-class
Apr 17, 2019
Merged

chore: Use class to declare NYC#1069
coreyfarrell merged 1 commit intoistanbuljs:masterfrom
coreyfarrell:nyc-class

Conversation

@coreyfarrell
Copy link
Member

This PR intentionally avoids all auxiliary changes, this is a pure conversion from prototype based object to class based object. If you download and view with git diff HEAD~1 --ignore-all-space the patch is 90% smaller (only adds/deletes 45 lines).

One change of code nyc.generateUniqueID() no longer exists. This was only used by the constructor which now just calls uuid() directly. coverageFinder is moved from the middle of the file to the top but is otherwise unchanged. I did it this way as I didn't want to mix relevant changes with a formatting change effecting 90% of index.js.

@coreyfarrell coreyfarrell requested review from JaKXz and bcoe April 16, 2019 23:57
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 96.46% when pulling f478c25 on coreyfarrell:nyc-class into ca37ffa on istanbuljs:master.

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.

Looks great! 🔥

@coreyfarrell coreyfarrell merged commit 0f745ca into istanbuljs:master Apr 17, 2019
@coreyfarrell coreyfarrell deleted the nyc-class branch April 17, 2019 18:14
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.

3 participants