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

feat: use picocolors instead of chalk #2377

Merged
merged 7 commits into from
Dec 16, 2024

Conversation

Namchee
Copy link
Contributor

@Namchee Namchee commented Dec 1, 2024

Overview

This pull request replaces chalk with picocolors, a smaller alternative with the same API that will reduce install size from 97kB to 6.4kB

More benchmarks on picocolors

@kettanaito kettanaito changed the title chore: replace chalk with picocolors feat: use picocolors instead of chalk Dec 4, 2024
kettanaito
kettanaito previously approved these changes Dec 4, 2024
Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Hi, @Namchee. Thanks for proposing this! Looks good to me. Need to try this out locally to see that the colors function as expected. We don't have tests asserting colors of the output, afaik.

kettanaito
kettanaito previously approved these changes Dec 16, 2024
@kettanaito kettanaito force-pushed the chore/migrate-chalk-to-picocolors branch from 1577ebd to 4868fa9 Compare December 16, 2024 14:05
@kettanaito
Copy link
Member

Finally fixed the failing E2E test by stripping the color tokens from the stdout/stderr during the assertions. This is ready for merge! 🚀

@kettanaito kettanaito merged commit 85bdd82 into mswjs:main Dec 16, 2024
17 checks passed
@kettanaito
Copy link
Member

Welcome to contributors, @Namchee! Thanks for making MSW more lightweight.

@kettanaito
Copy link
Member

Released: v2.7.0 🎉

This has been released in v2.7.0!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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.

2 participants