Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency chalk to v5 #105

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update dependency chalk to v5 #105

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 26, 2021

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
chalk 2.4.2 -> 5.4.1 age adoption passing confidence

Release Notes

chalk/chalk (chalk)

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.InstanceChalk
    • chalk.supportsColorsupportsColor
    • chalk.stderrchalkStderr
    • chalk.stderr.supportsColorsupportsColorStderr
  • 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';

-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: Branch creation - "* * * * 1-5" (UTC), 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/chalk-5.x branch from e2dcd8e to 66f32c8 Compare December 3, 2021 09:26
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 66f32c8 to db6386e Compare March 8, 2022 20:41
@renovate renovate bot force-pushed the renovate/chalk-5.x branch 2 times, most recently from 3963ec3 to 5de3c7d Compare October 12, 2022 11:16
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 5de3c7d to cff3648 Compare October 12, 2022 18:06
@renovate renovate bot force-pushed the renovate/chalk-5.x branch 5 times, most recently from b6cc3f2 to 67431c5 Compare December 5, 2022 03:51
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 67431c5 to 6c2b75b Compare December 8, 2022 19:02
@renovate renovate bot force-pushed the renovate/chalk-5.x branch 2 times, most recently from aa25f92 to 1acb941 Compare December 19, 2022 06:29
@renovate renovate bot force-pushed the renovate/chalk-5.x branch 2 times, most recently from 982505f to 4ae6723 Compare January 3, 2023 13:34
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 4ae6723 to 9101be8 Compare January 16, 2023 06:39
@renovate renovate bot force-pushed the renovate/chalk-5.x branch 2 times, most recently from c292de2 to 56806ce Compare February 23, 2023 19:35
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 56806ce to ce2f23d Compare March 13, 2023 11:06
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from ce2f23d to 001befd Compare May 31, 2023 02:42
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 001befd to a05b6eb Compare June 29, 2023 11:38
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from a05b6eb to a0a2619 Compare August 15, 2023 06:20
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from a0a2619 to 013b25a Compare December 18, 2024 19:15
@renovate renovate bot force-pushed the renovate/chalk-5.x branch from 013b25a to 0c2cc58 Compare December 21, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants