-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: drop strip-ansi in favor of native stripVTControlCharacters #4095
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: drop strip-ansi in favor of native stripVTControlCharacters #4095
Conversation
- uninstall strip-ansi dependency from multiple package.json - replace strip-ansi import with util.stripVTControlCharacters in wide-truncate.ts - replace strip-ansi import with util.stripVTControlCharacters in index.spec.ts
…ipVTControlCharacters
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 1d45c76. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 8 targets
Sent with 💌 from NxCloud. |
Thank you @mcmxcdev! Looks like the snapshot change you made causes the tests to fail. Was that unintentional? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment
I have marked this as a fix because it affects the runtime, and even though it should be like for like I think it's good to call it out in the release notes (which will happen automatically for a fix) |
This was definitely unintenional and was caused by this setting in VSCode: Not gonna solve it for every dev, but it might be a good idea to introduce a I readded the trimmed whitespace in |
Thank you @mcmxcdev! |
Description
strip-ansi
dependency from multiplepackage.json
strip-ansi
import withutil.stripVTControlCharacters
inwide-truncate.ts
strip-ansi
import withutil.stripVTControlCharacters
inindex.spec.ts
Motivation and Context
References e18e/ecosystem-issues#122
How Has This Been Tested?
Types of changes
Checklist: