This repository was archived by the owner on Nov 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Colorette Changes
Andrey Sitnik edited this page Sep 25, 2021
·
12 revisions
This project was started as fork of colorette 2.0.2 because of API changes in 2.x branch.
- Colors support detection for top-level color functions (
colorettelater do the same). - Color functions was rewritten for better performance.
colorette 19,712,884 ops/sec nanocolors 47,256,069 ops/sec - Project loading was changed for better
require()performance.colorette 1.034 ms nanocolors 0.486 ms - Color support detections added
--colorand--no-colorarguments support forchalkcompatibility. - Type safety fixes for disabled colors.
-
*Brightcolors was removed for smaller package size. They have inconsistent support and rarely used. - Universal browser/Node.js project support.
-
createColorsAPI changes.
- Test project for old Node.js versions to be able to replace
chalkin big projects. - Tests for compatibility between ESM and CJS versions and various tests for color support detection.
- Build scripts was replaced to manually created ESM/CJS dual package for smaller package size.
- Project is promoting as a replacement for chalk. In contrast,
colorettedoes not promote itself as achalkreplacement.