Commit graph

40 commits

Author SHA1 Message Date
Sindre Sorhus
625a285772 Add types field to package.json
Fixes #500
2021-07-30 17:35:30 +02:00
Richie Bendall
4cf2e40e07
Add overline style and remove keyword, hsl, hsv, hwb and ansi color spaces (#433) 2021-04-22 10:54:42 +07:00
Richie Bendall
0fba91b037
Keep function prototype methods (#434) 2021-04-20 13:48:30 +07:00
Richie Bendall
d798222a5a
Add named exports (#432) 2021-04-17 19:33:03 +07:00
Sindre Sorhus
fa16f4ec37 Require Node.js 12 and move to ESM 2021-04-16 16:22:53 +07:00
Richie Bendall
c0d8e7ed8a
Update test dependencies (#414) 2020-10-03 23:56:24 +02:00
Toon Baeyens
09ddbadcb5
Support template literals for nested calls (#392)
Co-authored-by: Sindre Sorhus <sindresorhus@gmail.com>
2020-06-09 15:36:34 +08:00
Sindre Sorhus
61999a4e77 Require Node.js 10 2020-04-02 16:10:07 +08:00
Sindre Sorhus
f0f4638a92 Change the TypeScript Level type to be a union instead of enum
Fixes #373
Fixes #382
2020-04-02 15:51:17 +08:00
Sindre Sorhus
1953816afd Update dependencies 2019-09-27 11:16:49 +07:00
Khải
4e65299e7b Fix const enum for TypeScript (#364) 2019-09-27 10:53:54 +07:00
Yanis Benson
2a53389d72 Add chalk.stderr (#359) 2019-09-22 16:07:33 +07:00
Qix
1f77953f1a Remove the .enabled property in favor of .level (#356) 2019-07-13 12:45:31 +07:00
Ahad Birang
87156ce8e2 Fix support for nested styles (#335) 2019-07-13 01:49:56 +07:00
Sindre Sorhus
c25c32a25f Update dependencies 2019-07-12 14:13:58 +07:00
Sindre Sorhus
655653bb0c Meta tweaks 2019-07-12 14:13:02 +07:00
Yanis Benson
c08417e88c Improve performance greatly (#337) 2019-07-12 13:40:23 +07:00
Qix
983094883c Fix support for bracketed Unicode escapes in template literals (#350) 2019-07-12 13:35:11 +07:00
Sindre Sorhus
d3be9c65b1 Drop built-in Flow type definition
I don't want to be responsible for maintaining it.

Submit it to https://github.com/flow-typed/flow-typed if you need it.
2019-05-03 15:03:53 +07:00
Sindre Sorhus
cd5de7a2f6
Remove dim style workaround for Windows (#331)
See: https://github.com/chalk/chalk/pull/330/#issuecomment-471977551

The issue seems to have been fixed in newer Windows 10 builds. We're not interested in adding a conditional for older Windows versions as the fix severely complicates the codebase, and it also creates problems for consumers as it makes the output unpredictable.
2019-03-13 00:24:34 +07:00
Sindre Sorhus
2ca015c4c5
Remove the blue color workaround for Windows (#330)
The illegible blue color has been fixed in Windows 10 build 16257: https://blogs.msdn.microsoft.com/commandline/2017/08/02/updating-the-windows-console-colors/

The workaround causes all kinds of problems, so better to remove it than adding conditionals for older Windows versions.

Fixes #329
2019-03-12 20:31:33 +07:00
Tom Sherman
de2f4cd606 Deprecate chalk.constructor() in favor of new chalk.Instance() (#322) 2019-03-12 19:53:03 +07:00
Jonathan Van Buren
7f6e5630b0 Change tagged template literal argument type to accept unknown instead of just string (#316) 2018-12-28 12:13:56 +01:00
Chris Harwood
6a14c58e54 Add failing test for #234 (#235) 2018-09-18 15:48:47 +07:00
Sindre Sorhus
2a678789b1 Validate the level option
Fixes #248
2018-09-18 15:33:20 +07:00
Sindre Sorhus
0307f263cb Require Node.js 6 2018-09-18 14:32:14 +07:00
Saad Quadri
7c6f83f719 Add Flow type definitions (#260) 2018-04-17 11:26:17 +07:00
Josh Junon
e80f02e2dd Disable unicorn/no-hex-escape for template tests 2018-02-14 18:30:52 -08:00
Josh Junon
52823001a5 Revert "Fix linting"
This reverts commit 12d1276b36.
2018-02-14 18:28:22 -08:00
Sindre Sorhus
12d1276b36 Fix linting 2018-02-15 00:41:45 +07:00
Kayla Washburn
678152cf19 Update chalk to use the latest updates to supports-color (#247) 2018-02-11 16:59:24 +07:00
Josh Junon
ede310303b add failing test for .visible bug 2017-10-23 20:12:16 -07:00
Danny Kirchmeier
dc092b4a5f Add .visible for emitting text only when enabled (fixes #192) 2017-10-23 19:44:46 -07:00
Josh Junon
69ac663f29 Fix undefined and null interpolated expressions (fixes #194) 2017-08-06 18:58:17 -07:00
Josh Junon
106f086aaf Rewrite templating system (closes #186, fixes #184) 2017-08-06 18:58:17 -07:00
Josh Junon
f0c0178d12 Allow multiple arguments in base chalk object (fixes #187) 2017-08-06 18:58:17 -07:00
Josh Junon
0827d3b632 Fix level when supportsColor returns falsey (fixes #176, #175) 2017-08-06 18:58:17 -07:00
Josh Junon
7a75399b72 Add failing template tests 2017-08-06 18:58:17 -07:00
Sindre Sorhus
4c4ba2df3d Fix template literal test 2017-07-23 22:24:56 +02:00
Kevin Mårtensson
4c4eb1fd0a Move testing to ava (#182) 2017-07-23 22:17:33 +02:00