Something went wrong on our end. Please try again.
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
chalk | devDependencies | major | ^3.0.0 | source |
v3.0.0
This release has been in development for more than a year and massively improves performance and the time it takes to import Chalk.
Thanks to @stroncium for his hard work on this.
3ef170b
.enabled
property in favor of .level
(#356) 1f77953
- Why: It was confusing to users to have two properties for detecting color support.
- Migrate:-if (chalk.enabled) {}
+if (chalk.level > 0) {}
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
98628d9
- Why: Faking default export for TypeScript broke IntelliSense for JavaScript.
- Migrate:-import chalk from 'chalk';
+import chalk = require('chalk');
Or if you have esModuleInterop
enabled:
-import chalk from 'chalk';
+import * as chalk from 'chalk';
d3be9c6
- Why: None of us use Flow and we were not good at maintaining the type definition. You can get the types at flow-typed (needs to be updated to Chalk v3, open an issue on flow-typed
).ChalkOptions
TypeScript type to Options
cf66156
dim
style workaround for Windows (#331) cd5de7a
- Why: The issue was fixed in newer Windows 10 builds.blue
color workaround for Windows (#330) 2ca015c
- Why: The issue was fixed in newer Windows 10 builds.c08417e
61aca7c
chalk.stderr
for printing to stderr (#359) 2a53389
blackBright
color. It's the same as the gray
color, but added for consistency. c25c32a
9830948
6b4d206
ansi256
and bgAnsi256
to TypeScript declaration (#368) fb8e85a
ansi
and bgAnsi
to TypeScript declaration (#369) 18c280d
FORCE_COLOR
environment variable can now be used to force a certain color level (#315) af4a078
79d1303
TERM=dumb
higher priority in the color detection chalk/supports-color@8d6a7b5
ed0fe39
87156ce
4e65299
supportsColor
which is top‑level only (#342) b3e9b91
chalk.supportsColor
(#347) d82b2a6
unknown
instead of just string
(#316) 7f6e563
rebase!
".
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.