ansble / monument

event based http server for nodejs
http://monument.ansble.com
MIT License
34 stars 45 forks source link

Update chalk to the latest version 🚀 #660

Open greenkeeper[bot] opened 5 years ago

greenkeeper[bot] commented 5 years ago

The devDependency chalk was updated from 2.4.0 to 3.0.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: sindresorhus License: MIT

Release Notes for v3.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 (#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

  • 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

Commits

The new version differs by 55 commits.

  • 20002d8 3.0.0
  • b393018 Meta tweaks
  • 18c280d Add ansi and bgAnsi to TypeScript declaration (#369)
  • 628b595 Tidelift tasks
  • 4de1841 3.0.0-beta.2
  • fb8e85a Add ansi256 and bgAnsi256 to TypeScript declarations (#368)
  • eef8c8c Replace level list with table in readme.md (#367)
  • 48905d0 3.0.0-beta.1
  • 1953816 Update dependencies
  • 61aca7c Improve require speed (#358)
  • 4e65299 Fix const enum for TypeScript (#364)
  • 2a53389 Add chalk.stderr (#359)
  • 6b4d206 Export TypeScript types for colors and modifiers (#357)
  • 1f77953 Remove the .enabled property in favor of .level (#356)
  • 87156ce Fix support for nested styles (#335)

There are 55 commits in total.

See the full diff


FAQ and help There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).

Your Greenkeeper bot :palm_tree:

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 98.218% when pulling 0f1ffab7e3abf5c2625f382d07b90033df66fc37 on greenkeeper/chalk-3.0.0 into 9cc92f3589175e5329904d1a5743424ee3e278d7 on master.

greenkeeper[bot] commented 4 years ago

Update to this version instead 🚀

Commits

The new version differs by 7 commits.

  • 31fa942 4.0.0
  • 61999a4 Require Node.js 10
  • f0f4638 Change the TypeScript Level type to be a union instead of enum
  • 7f21f20 Properly check if level is an integer (#393)
  • 63469d3 Use Object.setPrototypeOf as __proto__ could potentially be disabled (#387)
  • 797461e Meta tweaks
  • 0e6fecc Add link to replit run (#379)

See the full diff