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

Remove node-emoji dependency #902

Merged
merged 1 commit into from Nov 20, 2023
Merged

Remove node-emoji dependency #902

merged 1 commit into from Nov 20, 2023

Conversation

askoufis
Copy link
Contributor

Issues aside, I don't think there's enough value in having this dependency given that we only use a small subset of its API and we can just use the emoji characters directly.

@askoufis askoufis requested a review from a team as a code owner November 20, 2023 03:58
Copy link

changeset-bot bot commented Nov 20, 2023

🦋 Changeset detected

Latest commit: f7fd161

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
sku Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@@ -6,11 +6,9 @@ const didYouMean = require('didyoumean2').default;
const validator = new Validator();

const exitWithErrors = async (errors) => {
const { emojify } = await import('node-emoji');
Copy link
Contributor

Choose a reason for hiding this comment

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

The perf gains are going to be 🤯

Copy link
Contributor

@mrm007 mrm007 left a comment

Choose a reason for hiding this comment

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

Have you tested these changes in the terminal? Some emoji have a double width, so they need another space to preserve alignment e.g. this vs this.

@askoufis
Copy link
Contributor Author

LGTM
image

@askoufis askoufis merged commit 1946b74 into master Nov 20, 2023
4 checks passed
@askoufis askoufis deleted the remove-node-emoji branch November 20, 2023 04:21
@seek-oss-ci seek-oss-ci mentioned this pull request Nov 20, 2023
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.

None yet

2 participants