Update dependency chalk to v6 #7

Open
renovate wants to merge 1 commit from renovate/chalk-6.x into master
Collaborator

This PR contains the following updates:

Package Change Age Confidence
chalk ^2.4.2 → ^6.0.0 age confidence

Release Notes

chalk/chalk (chalk)

v6.0.1

Compare Source

  • Fix inconsistent coercion of two arguments 9c93a04

v6.0.0

Compare Source

Breaking
Improvements
Fixes
  • Treat a numeric FORCE_COLOR as an exact level (#​688) e912931
  • Downsample ansi256() and bgAnsi256() to 16 colors at level 1 (#​687) ff549c5

v5.6.2

Compare Source

  • Fix vulnerability in 5.6.1, see: #​656

v5.6.0

Compare Source

  • Make WezTerm terminal use true color a8f5bf7

v5.5.0

Compare Source


v5.4.1

Compare Source

v5.4.0

Compare Source

  • Update CIRCLECI environments to return level 3 color support f838120

v5.3.0

Compare Source

v5.2.0

Compare Source

v5.1.2

Compare Source

v5.1.1

Compare Source

  • Improved the names of exports introduced in 5.1.0 (#​567) 6e0df05
    • We of course preserved the old names.

v5.1.0

Compare Source

v5.0.1

Compare Source

  • Add main field to package.json for backwards compatibility with some developer tools 85f7e96

v5.0.0

Compare Source

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
  • 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

v4.1.2

Compare Source

  • Readme updates

v4.1.1

Compare Source

v4.1.0

Compare Source

v4.0.0

Compare Source

Breaking
  • Require Node.js 10 61999a4
  • Change the Level TypeScript type to be a union instead of enum f0f4638
-if (chalk.level > Level.None) {}
+if (chalk.level > 0) {}
Improvements
  • Use Object.setPrototypeOf as __proto__ could potentially be disabled (#​387) 63469d3

v3.0.0

Compare Source

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) {}
  • Remove chalk.constructor() in favor of chalk.Instance() (#​322) de2f4cd
    • Migrate:
-new chalk.constructor({level: 1});
+new chalk.Instance({level: 1})
Minor breaking
-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).
  • Rename the ChalkOptions TypeScript type to Options 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
Color detection
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 just string (#​316) 7f6e563

Configuration

📅 Schedule: (UTC)

  • 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 CLI.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [chalk](https://github.com/chalk/chalk) | [`^2.4.2` → `^6.0.0`](https://renovatebot.com/diffs/npm/chalk/2.4.2/6.0.1) | ![age](https://developer.mend.io/api/mc/badges/age/npm/chalk/6.0.1?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/chalk/2.4.2/6.0.1?slim=true) | --- ### Release Notes <details> <summary>chalk/chalk (chalk)</summary> ### [`v6.0.1`](https://github.com/chalk/chalk/releases/tag/v6.0.1) [Compare Source](https://github.com/chalk/chalk/compare/v6.0.0...v6.0.1) - Fix inconsistent coercion of two arguments [`9c93a04`](https://github.com/chalk/chalk/commit/9c93a04) *** ### [`v6.0.0`](https://github.com/chalk/chalk/releases/tag/v6.0.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.6.2...v6.0.0) ##### Breaking - Require Node.js 22 [`8a94e0e`](https://github.com/chalk/chalk/commit/8a94e0e) ##### Improvements - Add underline styles and underline colors ([#&#8203;689](https://github.com/chalk/chalk/issues/689)) [`4c304dd`](https://github.com/chalk/chalk/commit/4c304dd) - Improve performance [`5729845`](https://github.com/chalk/chalk/commit/5729845) [`fa5cff2`](https://github.com/chalk/chalk/commit/fa5cff2) ##### Fixes - Treat a numeric `FORCE_COLOR` as an exact level ([#&#8203;688](https://github.com/chalk/chalk/issues/688)) [`e912931`](https://github.com/chalk/chalk/commit/e912931) - Downsample `ansi256()` and `bgAnsi256()` to 16 colors at level 1 ([#&#8203;687](https://github.com/chalk/chalk/issues/687)) [`ff549c5`](https://github.com/chalk/chalk/commit/ff549c5) *** ### [`v5.6.2`](https://github.com/chalk/chalk/releases/tag/v5.6.2) [Compare Source](https://github.com/chalk/chalk/compare/v5.6.0...v5.6.2) - Fix vulnerability in 5.6.1, see: [#&#8203;656](https://github.com/chalk/chalk/issues/656) ### [`v5.6.0`](https://github.com/chalk/chalk/releases/tag/v5.6.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.5.0...v5.6.0) - Make WezTerm terminal use true color [`a8f5bf7`](https://github.com/chalk/chalk/commit/a8f5bf7) *** ### [`v5.5.0`](https://github.com/chalk/chalk/releases/tag/v5.5.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.4.1...v5.5.0) - Make Ghostty terminal use true color ([#&#8203;653](https://github.com/chalk/chalk/issues/653)) [`79ee2d3`](https://github.com/chalk/chalk/commit/79ee2d3) *** ### [`v5.4.1`](https://github.com/chalk/chalk/releases/tag/v5.4.1) [Compare Source](https://github.com/chalk/chalk/compare/v5.4.0...v5.4.1) - Fix `navigator` not defined `ReferenceError` ([#&#8203;642](https://github.com/chalk/chalk/issues/642)) [`4ebb62d`](https://github.com/chalk/chalk/commit/4ebb62d) ### [`v5.4.0`](https://github.com/chalk/chalk/releases/tag/v5.4.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.3.0...v5.4.0) - Update `CIRCLECI` environments to return level 3 color support [`f838120`](https://github.com/chalk/chalk/commit/f838120) ### [`v5.3.0`](https://github.com/chalk/chalk/releases/tag/v5.3.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.2.0...v5.3.0) - Add `sideEffects` field to package.json [`5aafc0a`](https://github.com/chalk/chalk/commit/5aafc0a) - Add support for Gitea Actions ([#&#8203;603](https://github.com/chalk/chalk/issues/603)) [`29b8569`](https://github.com/chalk/chalk/commit/29b8569) ### [`v5.2.0`](https://github.com/chalk/chalk/releases/tag/v5.2.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.1.2...v5.2.0) - Improve Deno compatibility ([#&#8203;579](https://github.com/chalk/chalk/issues/579)) [`7443e9f`](https://github.com/chalk/chalk/commit/7443e9f) - Detect true-color support for GitHub Actions ([#&#8203;579](https://github.com/chalk/chalk/issues/579)) [`7443e9f`](https://github.com/chalk/chalk/commit/7443e9f) - Detect true-color support for Kitty terminal ([#&#8203;579](https://github.com/chalk/chalk/issues/579)) [`7443e9f`](https://github.com/chalk/chalk/commit/7443e9f) - Fix test for Azure DevOps environment ([#&#8203;579](https://github.com/chalk/chalk/issues/579)) [`7443e9f`](https://github.com/chalk/chalk/commit/7443e9f) ### [`v5.1.2`](https://github.com/chalk/chalk/releases/tag/v5.1.2) [Compare Source](https://github.com/chalk/chalk/compare/v5.1.1...v5.1.2) - Fix exported styles names ([#&#8203;569](https://github.com/chalk/chalk/issues/569)) [`a34bcf6`](https://github.com/chalk/chalk/commit/a34bcf6) ### [`v5.1.1`](https://github.com/chalk/chalk/releases/tag/v5.1.1) [Compare Source](https://github.com/chalk/chalk/compare/v5.1.0...v5.1.1) - Improved the names of exports introduced in 5.1.0 ([#&#8203;567](https://github.com/chalk/chalk/issues/567)) [`6e0df05`](https://github.com/chalk/chalk/commit/6e0df05) - We of course preserved the old names. ### [`v5.1.0`](https://github.com/chalk/chalk/releases/tag/v5.1.0) [Compare Source](https://github.com/chalk/chalk/compare/v5.0.1...v5.1.0) - Expose style names ([#&#8203;566](https://github.com/chalk/chalk/issues/566)) [`d7d7571`](https://github.com/chalk/chalk/commit/d7d7571) ### [`v5.0.1`](https://github.com/chalk/chalk/releases/tag/v5.0.1) [Compare Source](https://github.com/chalk/chalk/compare/v5.0.0...v5.0.1) - Add `main` field to package.json for backwards compatibility with some developer tools [`85f7e96`](https://github.com/chalk/chalk/commit/85f7e96) ### [`v5.0.0`](https://github.com/chalk/chalk/releases/tag/v5.0.0) [Compare Source](https://github.com/chalk/chalk/compare/v4.1.2...v5.0.0) ##### Breaking - **This package is now pure ESM. Please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).** - If you use TypeScript, you need to use TypeScript 4.7 or later. [Why.](https://github.com/microsoft/TypeScript/issues/46452) - 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`](https://github.com/chalk/chalk/commit/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 ([#&#8203;433](https://github.com/chalk/chalk/issues/433)) [`4cf2e40`](https://github.com/chalk/chalk/commit/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](https://github.com/Qix-/color-convert). - [How to migrate from `.keyword()`](https://github.com/chalk/chalk/issues/659) - The tagged template literal support moved into a separate package: [`chalk-template`](https://github.com/chalk/chalk-template) ([#&#8203;524](https://github.com/chalk/chalk/issues/524)) [`c987c61`](https://github.com/chalk/chalk/commit/c987c61) ```diff -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`](https://github.com/chalk/chalk/commit/04fdbd6) - This means Chalk no longer has any dependencies 🎉 - [The install size is less than half of v4.](https://packagephobia.com/result?p=chalk) - Add `overline` style ([#&#8203;433](https://github.com/chalk/chalk/issues/433)) [`4cf2e40`](https://github.com/chalk/chalk/commit/4cf2e40) - Preserve function prototype methods ([#&#8203;434](https://github.com/chalk/chalk/issues/434)) [`0fba91b`](https://github.com/chalk/chalk/commit/0fba91b) ### [`v4.1.2`](https://github.com/chalk/chalk/releases/tag/v4.1.2) [Compare Source](https://github.com/chalk/chalk/compare/v4.1.1...v4.1.2) - Readme updates ### [`v4.1.1`](https://github.com/chalk/chalk/releases/tag/v4.1.1) [Compare Source](https://github.com/chalk/chalk/compare/v4.1.0...v4.1.1) - Readme updates [`89e9e3a`](https://github.com/chalk/chalk/commit/89e9e3a5b0601f4eda4c3a92acd887ec836d0175) ### [`v4.1.0`](https://github.com/chalk/chalk/releases/tag/v4.1.0) [Compare Source](https://github.com/chalk/chalk/compare/v4.0.0...v4.1.0) - Support template literals for nested calls ([#&#8203;392](https://github.com/chalk/chalk/issues/392)) [`09ddbad`](https://github.com/chalk/chalk/commit/09ddbad) ### [`v4.0.0`](https://github.com/chalk/chalk/releases/tag/v4.0.0) [Compare Source](https://github.com/chalk/chalk/compare/v3.0.0...v4.0.0) ##### Breaking - Require Node.js 10 [`61999a4`](https://github.com/chalk/chalk/commit/61999a4) - Change the `Level` TypeScript type to be a union instead of enum [`f0f4638`](https://github.com/chalk/chalk/commit/f0f4638) ```diff -if (chalk.level > Level.None) {} +if (chalk.level > 0) {} ``` ##### Improvements - Use `Object.setPrototypeOf` as `__proto__` could potentially be disabled ([#&#8203;387](https://github.com/chalk/chalk/issues/387)) [`63469d3`](https://github.com/chalk/chalk/commit/63469d3) ### [`v3.0.0`](https://github.com/chalk/chalk/releases/tag/v3.0.0) [Compare Source](https://github.com/chalk/chalk/compare/v2.4.2...v3.0.0) <img src="https://user-images.githubusercontent.com/170270/68524554-0d375b80-02fb-11ea-97a9-27e15fc8ccc6.gif" width="250" height="250" align="right"> **This release has been in development for more than a year and [massively improves performance](https://github.com/chalk/chalk/pull/337) and [the time it takes to import Chalk](https://github.com/chalk/chalk/pull/358).** Thanks to [@&#8203;stroncium](https://github.com/stroncium) for his hard work on this. 🙌 ##### Breaking - Require Node.js 8 [`3ef170b`](https://github.com/chalk/chalk/commit/3ef170b) - Remove the `.enabled` property in favor of [`.level`](https://github.com/chalk/chalk#chalklevel) ([#&#8203;356](https://github.com/chalk/chalk/issues/356)) [`1f77953`](https://github.com/chalk/chalk/commit/1f77953) - Why: It was confusing to users to have two properties for detecting color support. - Migrate: ```diff -if (chalk.enabled) {} +if (chalk.level > 0) {} ``` - Remove `chalk.constructor()` in favor of `chalk.Instance()` ([#&#8203;322](https://github.com/chalk/chalk/issues/322)) [`de2f4cd`](https://github.com/chalk/chalk/commit/de2f4cd) - Migrate: ```diff -new chalk.constructor({level: 1}); +new chalk.Instance({level: 1}) ``` ##### Minor breaking - Use CommonJS-compatible export in TypeScript definition ([#&#8203;344](https://github.com/chalk/chalk/issues/344)) [`98628d9`](https://github.com/chalk/chalk/commit/98628d9) - Why: Faking default export for TypeScript [broke IntelliSense for JavaScript](https://github.com/sindresorhus/mem/issues/31). - Migrate: ```diff -import chalk from 'chalk'; +import chalk = require('chalk'); ``` - Drop built-in Flow type definition [`d3be9c6`](https://github.com/chalk/chalk/commit/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](https://github.com/flow-typed/flow-typed) *(needs to be updated to Chalk v3, open an issue on `flow-typed`)*. - Rename the `ChalkOptions` TypeScript type to `Options` [`cf66156`](https://github.com/chalk/chalk/commit/cf66156) - Remove `dim` style workaround for Windows ([#&#8203;331](https://github.com/chalk/chalk/issues/331)) [`cd5de7a`](https://github.com/chalk/chalk/commit/cd5de7a) - Why: The issue was fixed in newer Windows 10 builds. - Remove the `blue` color workaround for Windows ([#&#8203;330](https://github.com/chalk/chalk/issues/330)) [`2ca015c`](https://github.com/chalk/chalk/commit/2ca015c) - Why: The issue was fixed in newer Windows 10 builds. ##### Enhancements - Massively improve performance! ([#&#8203;337](https://github.com/chalk/chalk/issues/337)) [`c08417e`](https://github.com/chalk/chalk/commit/c08417e) - Improve require speed ([#&#8203;358](https://github.com/chalk/chalk/issues/358)) [`61aca7c`](https://github.com/chalk/chalk/commit/61aca7c) - Add [`chalk.stderr`](https://github.com/chalk/chalk#chalkstderr-and-chalkstderrsupportscolor) for printing to stderr ([#&#8203;359](https://github.com/chalk/chalk/issues/359)) [`2a53389`](https://github.com/chalk/chalk/commit/2a53389) - Add `blackBright` color. It's the same as the `gray` color, but added for consistency. [`c25c32a`](https://github.com/chalk/chalk/commit/c25c32a) - Fix support for bracketed Unicode escapes in template literals ([#&#8203;350](https://github.com/chalk/chalk/issues/350)) [`9830948`](https://github.com/chalk/chalk/commit/9830948) - Export TypeScript types for colors and modifiers ([#&#8203;357](https://github.com/chalk/chalk/issues/357)) [`6b4d206`](https://github.com/chalk/chalk/commit/6b4d206) - Add `ansi256` and `bgAnsi256` to TypeScript declaration ([#&#8203;368](https://github.com/chalk/chalk/issues/368)) [`fb8e85a`](https://github.com/chalk/chalk/commit/fb8e85a) - Add `ansi` and `bgAnsi` to TypeScript declaration ([#&#8203;369](https://github.com/chalk/chalk/issues/369)) [`18c280d`](https://github.com/chalk/chalk/commit/18c280d) ##### Color detection - The `FORCE_COLOR` environment variable can now be used to force a certain color level ([#&#8203;315](https://github.com/chalk/chalk/issues/315)) [`af4a078`](https://github.com/chalk/chalk/commit/af4a078) - Add support for GitHub Actions in the color detection [chalk/supports-color@`79d1303`](https://github.com/chalk/supports-color/commit/79d13032e2aa7a011f1c8badc866bcf4bc500f7a) - Give `TERM=dumb` higher priority in the color detection [chalk/supports-color@`8d6a7b5`](https://github.com/chalk/supports-color/commit/8d6a7b5830a96858a95ce9cfee1840dc30a3e837) - Add support for VT220 in the color detection [chalk/supports-color@`ed0fe39`](https://github.com/chalk/supports-color/commit/ed0fe39d600ff1c286b3948abbef88eaef4f8f27) ##### Fixes - Fix support for nested styles ([#&#8203;335](https://github.com/chalk/chalk/issues/335)) [`87156ce`](https://github.com/chalk/chalk/commit/87156ce) - Fix const enum for TypeScript ([#&#8203;364](https://github.com/chalk/chalk/issues/364)) [`4e65299`](https://github.com/chalk/chalk/commit/4e65299) - Fix TypeScript type for `supportsColor` which is top‑level only ([#&#8203;342](https://github.com/chalk/chalk/issues/342)) [`b3e9b91`](https://github.com/chalk/chalk/commit/b3e9b91) - Fix TypeScript type for `chalk.supportsColor` ([#&#8203;347](https://github.com/chalk/chalk/issues/347)) [`d82b2a6`](https://github.com/chalk/chalk/commit/d82b2a6) - Fix TypeScript type for tagged template literal argument to accept `unknown` instead of just `string` ([#&#8203;316](https://github.com/chalk/chalk/issues/316)) [`7f6e563`](https://github.com/chalk/chalk/commit/7f6e563) </details> --- ### Configuration 📅 **Schedule**: (UTC) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODguMCIsInVwZGF0ZWRJblZlciI6IjQ0LjE4OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbXX0=-->
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin "renovate/chalk-6.x:renovate/chalk-6.x"
git switch "renovate/chalk-6.x"

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch "master"
git merge --no-ff "renovate/chalk-6.x"
git switch "renovate/chalk-6.x"
git rebase "master"
git switch "master"
git merge --ff-only "renovate/chalk-6.x"
git switch "renovate/chalk-6.x"
git rebase "master"
git switch "master"
git merge --no-ff "renovate/chalk-6.x"
git switch "master"
git merge --squash "renovate/chalk-6.x"
git switch "master"
git merge --ff-only "renovate/chalk-6.x"
git switch "master"
git merge "renovate/chalk-6.x"
git push origin "master"
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
andylockran/aws-login-okta!7
No description provided.