NPM (deps): Bump chalk from 4.1.2 to 5.0.1
Bumps chalk from 4.1.2 to 5.0.1.
Release notes
Sourced from chalk's releases.
v5.0.1
- Add
main
field to package.json for backwards compatibility with some developer tools 85f7e96https://github.com/chalk/chalk/compare/v5.0.0...v5.0.1
v5.0.0
Breaking
- This package is now pure ESM. Please read this.
- If you use TypeScript, you will want to stay on Chalk 4 until TypeScript 4.6 is out. Why.
- If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM.
- The Chalk issue tracker is not a support channel for your favorite build/bundler tool.
- It's totally fine to stay on Chalk v4. It's been stable for years.
- Require Node.js 12.20 fa16f4e
- Move some properties off the default export to individual named exports:
chalk.Instance
→Chalk
chalk.supportsColor
→supportsColor
chalk.stderr
→chalkStderr
chalk.stderr.supportsColor
→supportsColorStderr
- Remove
.keyword()
,.hsl()
,.hsv()
,.hwb()
, and.ansi()
coloring methods (#433) 4cf2e40
- These were not commonly used and added a lot of bloat to Chalk. You can achieve the same by using the
color-convert
package.- The tagged template literal support moved into a separate package:
chalk-template
(#524) c987c61-import chalk from 'chalk'; +import chalkTemplate from 'chalk-template'; -chalk2 + 3 = {bold ${2 + 3}}; +chalkTemplate2 + 3 = {bold ${2 + 3}};
Improvements
- Bundle dependencies 04fdbd6
- This means Chalk no longer has any dependencies
🎉 - The install size is less than half of v4.
- Add
overline
style (#433) 4cf2e40- Preserve function prototype methods (#434) 0fba91b
Commits
-
bccde97
5.0.1 -
85f7e96
Addmain
field to package.json for backwards compatibiltiy -
4d5c479
5.0.0 -
7a68935
Fix code coverage -
04fdbd6
Bundle dependencies -
d7c4aac
Upgrade dependencies -
09fd5c4
Re-export types fromsupports-color
(#526) -
c987c61
Remove support for tagged template literals (#524) -
f478655
Update dependents number in readme (#521) -
3761e45
Meta tweak (#520) - Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
$dependabot rebase
will rebase this MR -
$dependabot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts