Update chalk to the latest version π
Version 2.0.0 of chalk just got published.
| Dependency | chalk |
|---|---|
| Current Version | 1.1.3 |
| Type | dependency |
The version 2.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of chalk. Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
2.0.0Chalk is a Node.js module for styling and colorizing terminal output.
Two 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
- Requires Node.js 4 or later.
- Removed
chalk.hasColor(). Use thehas-ansipackage directly instead. 04cae22 - Removed
chalk.stripColor(). Use thestrip-ansipackage directly instead. 04cae22 - Removed
chalk.styles. Use theansi-stylespackage directly instead. 8702496
256/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.
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.
const name = 'Sindre';
console.log(chalk`{bold Hello ${name}}`);Other
- Added bright color variants. chalk/ansi-styles@d1d855e
- Fixed a bleed issue on macOS. 05f87e2
All changes
Made with β₯ by Josh, Sindre, and all our wonderful contributors.
Commits
The new version differs by 53 commits ahead by 53, behind by 1.
3fca6152.0.0f66271eAdd tagged template literal (#163)23ef1c7fix linter errorsc015568add rainbow example09fb2d8Re-implementchalk.enabled(#160)608242aspoof supports-color18f2e7cadd host information output523b998Revert "TEMPORARY: emergency travis CI fix (see comments)"54975fbTEMPORARY: emergency travis CI fix (see comments)1d73b21Improve readme6f4d6b3Bump dependencies8702496Removechalk.styles0412cdfMinor code improvements249b9acES2015ify the codebasecb3f230Add RGB (256/Truecolor) support (#140)
There are 53 commits in total.
See the full diff
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot :palm_tree:
:tada: :tada: :balloon: Need a deeper review on how chalk 2 integrates to lme. Our tests can't say everything is okey.
Version 2.0.1 just got published.
Version 2.1.0 just got published.
Update to this version instead π
Commits
The new version differs by 16 commits.
38f641av2.1.069ac663Fix undefined and null interpolated expressions (fixes #194)106f086Rewrite templating system (closes #186, fixes #184)f0c0178Allow multiple arguments in base chalk object (fixes #187)0827d3bFix level when supportsColor returns falsey (fixes #176, #175)fbd17e7Escape backslashes in template arguments (fixes #177)7a75399Add failing template tests7dbd8c3Add related packages in the readme (#193)4c4ba2dFix template literal test4c4eb1fMove testing toava(#182)e8d28f3Return emptystringwhen there are no arguments (#183)5cdd9edDemonstrate crash when using Truecolor methods and color is unsupported (#174)23092eeadd note about brightBlack (ref chalk/ansi-styles#33)8d26c14Minor meta tweaks5ec90cbLink to v2 release notes
There are 16 commits in total.
See the full diff
Version 2.2.0 just got published.
Update to this version instead π
Release Notes
v2.2.0Chalk now comes with TypeScript type definitions built-in. f653b06
Commits
The new version differs by 7 commits.
d86db882.2.0f0533f6Bump dev dependenciesf653b06Add TypeScript definitions (#207)5e6d5fdAddstrip-ansi-streamto related modules7898edaUpdate chalk-pipe description37db75eAdd related package in the readmea9f0c77Use aMapand some minor regex tweaks
See the full diff
Version 2.2.2 just got published.
Update to this version instead π
Commits
The new version differs by 6 commits.
e1177ec2.2.2e2a4aa4fix .visible when called after .enable is set to falseede3103add failing test for .visible bug6adf5792.2.1dc092b4Add .visible for emitting text only when enabled (fixes #192)4372d27Add Awesome mentioned badge
See the full diff
Version 2.3.0 just got published.
Version 2.3.1 just got published.
Update to this version instead π
Commits
The new version differs by 8 commits.
ae8a03f2.3.1b55dd79Force bump dependencies678152cUpdate chalk to use the latest updates to supports-color (#247)011dd04Fix usage example in the readme (#251)6554030Use svg screenshotbc3dd75Update usage stats in the readme (#242)a8c60e3Fix spelling error in readme (#232)5392313Correct HSV and HWB examples
See the full diff
Version 2.3.2 just got published.
Update to this version instead π
Release Notes
v2.3.2- Fixed detection of color support for VSCode debug console. chalk/supports-color@b764af9
- Fixed detection of 24M colors in Konsole. chalk/supports-color@d6e08c8
- Fixed using
chalk.ansi256when in a terminal with 256-color level support. chalk/ansi-styles@1ac7472
Version 2.4.0 just got published.
- The
dependencychalk was updated from1.1.3to2.4.2.
Update to this version instead π
Release Notes for v2.4.2
This release is done from the v2-release branch, as master branch targets the work-in-progress v3 release.
- The
dependencychalk was updated from1.1.3to3.0.0.
Update to this version instead π
Commits
The new version differs by 52 commits ahead by 52, behind by 2.
20002d83.0.0b393018Meta tweaks18c280dAddansiandbgAnsito TypeScript declaration (#369)628b595Tidelift tasks4de18413.0.0-beta.2fb8e85aAddansi256andbgAnsi256to TypeScript declarations (#368)eef8c8cReplace level list with table in readme.md (#367)48905d03.0.0-beta.11953816Update dependencies61aca7cImprove require speed (#358)4e65299Fix const enum for TypeScript (#364)2a53389Addchalk.stderr(#359)6b4d206Export TypeScript types for colors and modifiers (#357)1f77953Remove the.enabledproperty in favor of.level(#356)87156ceFix support for nested styles (#335)
There are 52 commits in total.
See the full diff

