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

chore(deps) Update dependency chalk to v3 #201

Merged
merged 1 commit into from
Sep 20, 2022
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 20, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
chalk ^2.4.1 -> ^3.0.0 age adoption passing confidence

Release Notes

chalk/chalk

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 - 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 is behind base branch, 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, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added maintenance dependency updates, etc. renovate Renovate-generated PRs labels Sep 20, 2022
@dmwelch dmwelch merged commit 988c16e into master Sep 20, 2022
@dmwelch dmwelch deleted the renovate/chalk-3.x branch September 20, 2022 16:01
@nschonni

This comment was marked as outdated.

@dmwelch
Copy link
Contributor

dmwelch commented Sep 27, 2022

@nschonni Sorry, I got pulled away again. Let me take a look at it this week and get back to you

@nschonni
Copy link
Contributor

No worries, I think I'm wrong here. It's the v5 that went ESM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance dependency updates, etc. renovate Renovate-generated PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants