This repository was archived by the owner on Apr 20, 2018. It is now read-only.
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency chalk from
^1.1.3to^2.0.0Release Notes
v2.0.0Two years ago, @qix- asked me about adding 256/Truecolor support to Chalk. He soon after joined the Chalk team. And now we’re finally able to ship Truecolor support in Chalk!
Chalk has had an immense growth since the 1.0.0 release in 2015. It's now trusted by more than 17.000 packages, up from 3000, and it's the 5th most depended upon package on npm.
Highlights
Breaking changes
chalk.hasColor(). Use thehas-ansipackage directly instead. chalk/chalk@04cae22chalk.stripColor(). Use thestrip-ansipackage directly instead. chalk/chalk@04cae22chalk.styles. Use theansi-stylespackage directly instead. chalk/chalk@8702496256/Truecolor support
Chalk now supports 256 colors and Truecolor (16 million colors). Terminal apps like Hyper and iTerm supports Truecolor, enabling you to create really immersive CLI experiences. Chalk is smart enough to downsample the colors to whatever the terminal supports, so you can use any colors without having to think whether it's supported or not.
Read more in the docs.
chalk/chalk@cb3f230
Tagged template literal
Chalk now ships with a tagged template literal that makes it much nicer to create long strings with lots of different styling.
Read more in the docs.
chalk/chalk@f66271e
Other
All changes
Made with ♥ by Josh, [Sindre], and all our wonderful contributors.
v2.2.0Chalk now comes with TypeScript type definitions built-in. chalk/chalk@f653b06
Note: It's incompatible with
@types/chalkif you're currently using that:https://github.com/chalk/chalk/issues/215v2.3.0.visible()method for emitting text only when Chalk is enabled. This can be useful for purely cosmetic content that shouldn't be shown when there are no colors, like when piping the output. chalk/chalk@dc092b4v2.3.1levelwhen forcing color. chalk/supports-color@b16e9a4v2.3.2chalk.ansi256when in a terminal with 256-color level support. chalk/ansi-styles@1ac7472Commits
v2.0.0
2653218meta tweaksfe2e4b0update code of conduct6c3e573test on Node.js 6a125eb0OS X → macOSd939a3ffix XO lint issue74c087dminor doc improvements (#120)835ca3dYou've just reached 10,000 dependent modules. (#122)7c02cf4Add log statement to chalk examples (#129)4ce73b6make XO happy492f11fadd example file5a69476add XO badge0d21449check parent builder object for enabled status (#142)9b60021Drop support for Node.js 0.10 and 0.12dbae68dUpdate dependent package count in the readme (#154)cb3f230Add RGB (256/Truecolor) support (#140)249b9acES2015ify the codebase0412cdfMinor code improvements8702496Removechalk.styles6f4d6b3Bump dependencies1d73b21Improve readme54975fbTEMPORARY: emergency travis CI fix (see comments)523b998Revert "TEMPORARY: emergency travis CI fix (see comments)"18f2e7cadd host information output608242aspoof supports-color09fb2d8Re-implementchalk.enabled(#160)c015568add rainbow example23ef1c7fix linter errorsf66271eAdd tagged template literal (#163)3fca6152.0.0v2.0.1
caeb7d8fix missing TERM cases58270812.0.1v2.1.0
3d10f8fCode style tweaks5ec90cbLink to v2 release notes8d26c14Minor meta tweaks23092eeadd note about brightBlack (ref chalk/ansi-styles#33)5cdd9edDemonstrate crash when using Truecolor methods and color is unsupported (#174)e8d28f3Return emptystringwhen there are no arguments (#183)4c4eb1fMove testing toava(#182)4c4ba2dFix template literal test7dbd8c3Add related packages in the readme (#193)7a75399Add failing template testsfbd17e7Escape backslashes in template arguments (fixes #177)0827d3bFix level when supportsColor returns falsey (fixes #176, #175)f0c0178Allow multiple arguments in base chalk object (fixes #187)106f086Rewrite templating system (closes #186, fixes #184)69ac663Fix undefined and null interpolated expressions (fixes #194)38f641av2.1.0v2.2.0
a9f0c77Use aMapand some minor regex tweaks37db75eAdd related package in the readme7898edaUpdate chalk-pipe description5e6d5fdAddstrip-ansi-streamto related modulesf653b06Add TypeScript definitions (#207)f0533f6Bump dev dependenciesd86db882.2.0v2.2.2
4372d27Add Awesome mentioned badgedc092b4Add .visible for emitting text only when enabled (fixes #192)6adf5792.2.1ede3103add failing test for .visible buge2a4aa4fix .visible when called after .enable is set to falsee1177ec2.2.2v2.3.0
7be154cTypeScript fixes (#217)14e0aa92.3.0v2.3.1
5392313Correct HSV and HWB examplesa8c60e3Fix spelling error in readme (#232)bc3dd75Update usage stats in the readme (#242)6554030Use svg screenshot011dd04Fix usage example in the readme (#251)678152cUpdate chalk to use the latest updates to supports-color (#247)b55dd79Force bump dependenciesae8a03f2.3.1v2.3.2
576d8d2Update URL to XO12d1276Fix linting5282300Revert "Fix linting"925397aDisable unicorn/no-unsafe-regex for template parsere80f02eDisable unicorn/no-hex-escape for template tests245dfa5Bump dependencies84f27d42.3.2This PR has been generated by Renovate Bot.