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

Replace strip-ansi with native module #1366

Closed
wants to merge 1 commit into from

Conversation

stianjensen
Copy link
Contributor

stripVTControlCharacters from Node core utilities provide the same functionality, and is available since Node 16.11. This project currently requires minimum Node 18.18.

See es-tooling/ecosystem-cleanup#122 for similar efforts to replace this dependency in other projects.

stripVTControlCharacters from Node core utilities provide the same
functionality, and is available since Node 16.11. This project currently
requires minimum Node 18.18.

See es-tooling/ecosystem-cleanup#122 for
similar efforts to replace this dependency in other projects.
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Oct 6, 2024
@facebook-github-bot
Copy link
Contributor

@robhogan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@robhogan
Copy link
Contributor

robhogan commented Oct 6, 2024

Thanks for this @stianjensen! Always nice to remove a dependency.

@stianjensen
Copy link
Contributor Author

I'm not so familiar with flow, so I'm not quite sure where the typings for util that are failing now come from.

@robhogan
Copy link
Contributor

robhogan commented Oct 6, 2024

They're mostly compiled in to Flow, and can fall behind for newer APIs.

You can locally suppress with // $FlowIssue, but I'm happy to take care of that when I import.

@stianjensen
Copy link
Contributor Author

I also managed to get type support merged into flow, but ignoring the types for now probably also works:
facebook/flow@19ca1f2

I'll leave it up to you!

@facebook-github-bot
Copy link
Contributor

@robhogan merged this pull request in 0f8cabd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants