Skip to content

refactor: replace colors with colorette#803

Closed
jorgebucaran wants to merge 32 commits into
nodeSolidServer:release/v5.0.0from
jorgebucaran:master
Closed

refactor: replace colors with colorette#803
jorgebucaran wants to merge 32 commits into
nodeSolidServer:release/v5.0.0from
jorgebucaran:master

Conversation

@jorgebucaran
Copy link
Copy Markdown
Contributor

👋 Hello maintainers.

Summary

This PR replaces colors with colorette. Disclaimer: I'm the author of colorette. This is a refactor change and does not intend to introduce breaking changes. Please let me know if this looks good or not and if you'd like me to make any changes.

Colorette is both lighter and faster than the colors packages. It's also "safe" by default, it doesn't mutate the string prototype. Terminal color support is autodetected, so our console output will not contain unreadable symbols if the target terminal does not support color.

Tests and coverage are at 100%.

Size Comparison

Package Size
colors install size
colorette install size

Runtime Performance

All tests run on a 2.4GHz Intel Core i7 CPU with 16 GB memory. Complete benchmark results here and implementation here.

# Using Styles
colors × 64,999 ops/sec
> colorette × 709,733 ops/sec

# Combining Styles
colors × 246,004 ops/sec
> colorette × 2,049,555 ops/sec

# Nesting Styles
colors × 144,403 ops/sec
> colorette × 389,825 ops/sec

RubenVerborgh and others added 23 commits September 14, 2018 16:33
Doesn't work with symlinks,
and excluding those symlinks doen't work either.
https://github.com/SonarSource/SonarJS/issues/1057
Ensure that tests use test config
Ensure all dependencies use oidc-rp 0.8.0
Otherwise, third-party origins cannot log the user out.
Do not block third-party cookies from reaching auth handlers
If an invalid setup with directory permissions happened, it doesn't mean an invalid port. It usually implies it is a setup error. Add the handling for the mkdir sys call.
@kjetilk
Copy link
Copy Markdown
Member

kjetilk commented Sep 30, 2018

Looks cool! Could you please make sure Travis passes by updating the locks?

@kjetilk kjetilk added this to the 5.0.0 milestone Sep 30, 2018
@jorgebucaran
Copy link
Copy Markdown
Contributor Author

@kjetilk Thank you. Yes, done.

@kjetilk
Copy link
Copy Markdown
Member

kjetilk commented Sep 30, 2018

OK, good! And, BTW, we had some questions about whether we should have a CLA, and we don't know, but we'd just figured we'd ask if you're OK with the MIT license?

@kjetilk kjetilk changed the base branch from master to release/v5.0.0 September 30, 2018 19:06
Copy link
Copy Markdown
Contributor

@RubenVerborgh RubenVerborgh left a comment

Choose a reason for hiding this comment

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

Needs rebase.

@jorgebucaran
Copy link
Copy Markdown
Contributor Author

@kjetilk And, BTW, we had some questions about whether we should have a CLA, and we don't know, but we'd just figured we'd ask if you're OK with the MIT license?

I'm perfectly OK with the MIT license.

@RubenVerborgh Sure. Rebase completed.

@RubenVerborgh
Copy link
Copy Markdown
Contributor

@jorgebucaran There still appear to be some conflicts though.

@jorgebucaran
Copy link
Copy Markdown
Contributor Author

jorgebucaran commented Oct 1, 2018

@RubenVerborgh You are right. Sorry, I don't know how to fix the conflict (I don't understand why other commits were added to this PR either), so I've created a new identical PR here. #812

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants