create-react-microservice
create-react-microservice copied to clipboard
TASK: Update dependency chalk to v5
This PR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
chalk | 2.4.2 -> 5.3.0 |
Release Notes
chalk/chalk (chalk)
v5.3.0
v5.2.0
- Improve Deno compatibility (#β579)
7443e9f
- Detect true-color support for GitHub Actions (#β579)
7443e9f
- Detect true-color support for Kitty terminal (#β579)
7443e9f
- Fix test for Azure DevOps environment (#β579)
7443e9f
v5.1.2
v5.1.1
- Improved the names of exports introduced in 5.1.0 (#β567)
6e0df05
- We of course preserved the old names.
v5.1.0
v5.0.1
- Add
main
field to package.json for backwards compatibility with some developer tools85f7e96
v5.0.0
Breaking
-
This package is now pure ESM. Please read this.
- If you use TypeScript, you need to use TypeScript 4.7 or later. 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.
- These were not commonly used and added a lot of bloat to Chalk. You can achieve the same by using the
- The tagged template literal support moved into a separate package:
chalk-template
(#β524)c987c61
-import chalk from 'chalk';
+import chalkTemplate from 'chalk-template';
-chalk`2 + 3 = {bold ${2 + 3}}`;
+chalkTemplate`2 + 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
v4.1.2
- Readme updates
v4.1.1
- Readme updates https://github.com/chalk/chalk/commit/89e9e3a5b0601f4eda4c3a92acd887ec836d0175
v4.1.0
v4.0.0
Breaking
-if (chalk.level > Level.None) {}
+if (chalk.level > 0) {}
Improvements
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. π
Breaking
- Require Node.js 8
3ef170b
- Remove the
.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})
Minor breaking
- Use CommonJS-compatible export in TypeScript definition (#β344)
98628d9
- Why: Faking default export for TypeScript broke IntelliSense for JavaScript.
- Migrate:
-import chalk from 'chalk';
+import chalk = require('chalk');
- Drop built-in Flow type definition
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
).
- 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
- Rename the
ChalkOptions
TypeScript type toOptions
cf66156
- Remove
dim
style workaround for Windows (#β331)cd5de7a
- Why: The issue was fixed in newer Windows 10 builds.
- Remove the
blue
color workaround for Windows (#β330)2ca015c
- Why: The issue was fixed in newer Windows 10 builds.
Enhancements
- Massively improve performance! (#β337)
c08417e
- Improve require speed (#β358)
61aca7c
- Add
chalk.stderr
for printing to stderr (#β359)2a53389
- Add
blackBright
color. It's the same as thegray
color, but added for consistency.c25c32a
- Fix support for bracketed Unicode escapes in template literals (#β350)
9830948
- Export TypeScript types for colors and modifiers (#β357)
6b4d206
- Add
ansi256
andbgAnsi256
to TypeScript declaration (#β368)fb8e85a
- Add
ansi
andbgAnsi
to TypeScript declaration (#β369)18c280d
Color detection
- The
FORCE_COLOR
environment variable can now be used to force a certain color level (#β315)af4a078
- Add support for GitHub Actions in the color detection https://github.com/chalk/supports-color/commit/79d13032e2aa7a011f1c8badc866bcf4bc500f7a
- Give
TERM=dumb
higher priority in the color detection https://github.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837 - Add support for VT220 in the color detection https://github.com/chalk/supports-color/commit/ed0fe39d600ff1c286b3948abbef88eaef4f8f27
Fixes
- Fix support for nested styles (#β335)
87156ce
- Fix const enum for TypeScript (#β364)
4e65299
- Fix TypeScript type for
supportsColor
which isΒ topβlevel only (#β342)b3e9b91
- Fix TypeScript type for
chalk.supportsColor
(#β347)d82b2a6
- Fix TypeScript type for tagged template literal argument to accept
unknown
instead of juststring
(#β316)7f6e563
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Disabled by config. Please merge this manually once you are satisfied.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.