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

[Snyk] Upgrade chalk from 1.1.3 to 3.0.0 #16

Merged
merged 1 commit into from Dec 7, 2019

Conversation

snyk-bot
Copy link
Contributor

@snyk-bot snyk-bot commented Dec 7, 2019

Snyk has created this PR to upgrade chalk from 1.1.3 to 3.0.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

Warning: This is a major version upgrade, and may be a breaking change.

  • The recommended version is 14 versions ahead of your current version.
  • The recommended version was released a month ago, on 2019-11-09.
Release notes
Package name: chalk
  • 3.0.0 - 2019-11-09

    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');

    Or if you have esModuleInterop enabled:

    -import chalk from 'chalk';
    +import * as chalk from '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

    • 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 the gray 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 and bgAnsi256 to TypeScript declaration (#368) fb8e85a
    • Add ansi and bgAnsi to TypeScript declaration (#369) 18c280d

    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

    v2.4.1...v3.0.0

  • 3.0.0-beta.2 - 2019-10-08

    While this is a beta release, the code is well-tested and fairly stable.
    We encourage you to test it out and report any issues.

    $ npm install chalk@3.0.0-beta.2
    

    See the beta 1 release notes for more.


    • Add ansi256 and bgAnsi256 to TypeScript declarations (#368) fb8e85a

    v3.0.0-beta.1...v3.0.0-beta.2

  • 3.0.0-beta.1 - 2019-09-27

    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.


    While this is a beta release, the code is well-tested and fairly stable.
    We encourage you to test it out and report any issues.

    $ npm install chalk@3.0.0-beta.1
    

    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 this.
      • 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).
    • 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

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

    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

    v2.4.1...v3.0.0-beta.1

  • 2.4.2 - 2019-01-05

    This release is done from the v2-release branch, as master branch targets the work-in-progress v3 release.

  • 2.4.1 - 2018-04-26
    • Improved Flow type definition for CommonJS interop.

    v2.4.0...v2.4.1

  • 2.4.0 - 2018-04-17
    • Added Flow type definitions. 7c6f83f

    v2.3.2...v2.4.0

  • 2.3.2 - 2018-03-02

    v2.3.1...v2.3.2

  • 2.3.1 - 2018-02-11

    v2.3.0...v2.3.1

  • 2.3.0 - 2017-10-24
    • Added a .visible() method for emitting text only when Chalk is enabled. This can be useful for purely cosmetic content that shouldn't be shown when there are no colors, like when piping the output. dc092b4
    • TypeScript type definitions improvements. 7be154c

    v2.2.0...v2.3.0

  • 2.2.2 - 2017-10-24

    v2.2.2

  • 2.2.0 - 2017-10-18
  • 2.1.0 - 2017-08-07
  • 2.0.1 - 2017-06-30
  • 2.0.0 - 2017-06-29
  • 1.1.3 - 2016-03-29
from chalk GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@lirantal lirantal merged commit d71cfb5 into master Dec 7, 2019
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.

None yet

2 participants