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 chalk in package.json from ^2.1.0 to 3.0.0 #1128

Closed
wants to merge 1 commit into from

Conversation

dependencies[bot]
Copy link

@dependencies dependencies bot commented Nov 9, 2019

Overview

The following dependencies have been updated by dependencies.io:

  • chalk in package.json from "^2.1.0" to "3.0.0"

Details

chalk

This dependency is located in package.json and was updated from "^2.1.0" to "3.0.0".

3.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 (Appveyor cleanup #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

-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 (Client fixes and some tests #331) cd5de7a
    • Why: The issue was fixed in newer Windows 10 builds.
  • Remove the blue color workaround for Windows (Open Components as standalone services? #330) 2ca015c
    • Why: The issue was fixed in newer Windows 10 builds.

Enhancements

Color detection

Fixes

chalk/chalk@v2.4.1...v3.0.0

@ricardo-devis-agullo ricardo-devis-agullo deleted the deps/update-15b976f2 branch September 3, 2021 19:57
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.

2 participants