Jakob Hain
31d4d5e3cf
round r,g,b values in 16-million color support
...
Currently if you pass decimal values to rgb or bgRgb, it will generate output with those decimals, which iTerm silently ignores.
Not sure if this is the ideal fix, since when rgb values are from 0-255 it's *commonly* assumed that they're integers. Maybe chalk should just throw an error instead. But this is a bug I came across when converting from 0-1 r,g,b, which is common, so there should be at least some indication.
2022-03-17 17:06:52 -04:00
Sindre Sorhus
bccde97f8a
5.0.1
2022-03-09 01:43:33 +07:00
Sindre Sorhus
85f7e96f75
Add main field to package.json for backwards compatibiltiy
...
Fixes #536
2022-03-09 01:42:04 +07:00
Sindre Sorhus
4d5c4795ad
5.0.0
2021-11-26 16:57:26 +07:00
Sindre Sorhus
7a6893551d
Fix code coverage
2021-11-26 16:55:15 +07:00
Sindre Sorhus
04fdbd6d8d
Bundle dependencies
2021-11-26 16:34:27 +07:00
Sindre Sorhus
d7c4aac07e
Upgrade dependencies
2021-11-26 16:00:01 +07:00
Richie Bendall
09fd5c4ba8
Re-export types from supports-color ( #526 )
2021-11-21 13:51:24 +07:00
Richie Bendall
c987c61486
Remove support for tagged template literals ( #524 )
2021-11-10 16:12:33 +07:00
LightnerDev
f478655c3c
Update dependents number in readme ( #521 )
2021-10-27 01:22:37 +07:00
Richie Bendall
3761e455a1
Meta tweak ( #520 )
2021-10-25 02:07:02 +07:00
Sindre Sorhus
95217429be
Minor tweaks
2021-10-02 00:02:38 +07:00
Sindre Sorhus
625a285772
Add types field to package.json
...
Fixes #500
2021-07-30 17:35:30 +02:00
Sindre Sorhus
48d25d156a
Meta tweaks
2021-07-30 13:58:57 +02:00
Sindre Sorhus
b68c8b5102
Meta tweaks
2021-05-05 21:40:56 +07:00
Richie Bendall
f8a3642a81
Minor tweaks ( #437 )
...
Co-authored-by: Qix <Qix-@users.noreply.github.com>
2021-04-22 15:03:48 +07: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
Sindre Sorhus
4dab5e1fb6
Meta tweaks
2021-03-13 00:51:42 +07:00
Sindre Sorhus
9bf298571e
Meta tweaks
2021-01-30 16:59:16 +07:00
Sindre Sorhus
2a9abb18f4
Rename master branch to main
2021-01-24 14:27:41 +07:00
Sindre Sorhus
97a0861848
Update badge
2021-01-21 10:19:50 +07:00
Sindre Sorhus
0433fcff2a
Update a link
2021-01-20 14:45:02 +07:00
Richie Bendall
d5fb377019
Move to GitHub Actions ( #426 )
...
* Move to GitHub Actions
* Update readme.md
2021-01-02 20:38:53 +07:00
Sindre Sorhus
ca330532ec
Add @Qix- to funding.yml
2020-12-16 10:09:08 +07:00
Sindre Sorhus
e304e8c230
Add Dev badge
2020-12-08 21:45:51 +07:00
Richie Bendall
02abeebac3
Only iterate through models once ( #421 )
2020-11-21 20:07:13 +07:00
Toon Baeyens
72299f99a0
remove fixed number of iterations ( #406 )
2020-11-20 15:26:28 +01:00
Richie Bendall
c0d8e7ed8a
Update test dependencies ( #414 )
2020-10-03 23:56:24 +02:00
Richie Bendall
b31d6fb48a
Add browser support information ( #415 )
2020-10-03 23:55:17 +02:00
Sindre Sorhus
445092f9af
Update readme.md
2020-09-09 17:48:28 +02:00
Sindre Sorhus
4c3df88472
4.1.0
2020-06-09 15:43:27 +08: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
Steven
55816cdd4d
Update readme links to use https ( #396 )
2020-04-16 05:56:23 +02:00
Sindre Sorhus
31fa942080
4.0.0
2020-04-02 16:17:06 +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
Richie Bendall
7f21f209da
Properly check if level is an integer ( #393 )
2020-04-02 15:49:20 +08:00
Bradley Farias
63469d30e4
Use Object.setPrototypeOf as __proto__ could potentially be disabled ( #387 )
2020-04-02 15:47:12 +08:00
Sindre Sorhus
797461ee32
Meta tweaks
2020-01-01 19:40:12 +01:00
Edwin Kofler
0e6fecc7f7
Add link to replit run ( #379 )
2019-12-12 21:12:22 +01:00
Sindre Sorhus
20002d8bd1
3.0.0
2019-11-09 13:58:44 +07:00
Sindre Sorhus
b3930189a5
Meta tweaks
2019-11-09 13:57:31 +07:00
Mark Pedrotti
18c280da2e
Add ansi and bgAnsi to TypeScript declaration ( #369 )
2019-11-09 11:22:55 +05:00
Sindre Sorhus
628b5954cf
Tidelift tasks
2019-10-30 19:38:56 +07:00
Sindre Sorhus
4de1841129
3.0.0-beta.2
2019-10-08 16:21:40 +07:00
Mark Pedrotti
fb8e85ab87
Add ansi256 and bgAnsi256 to TypeScript declarations ( #368 )
2019-10-08 16:02:34 +07:00
Mark Pedrotti
eef8c8c191
Replace level list with table in readme.md ( #367 )
...
* Replace level list with table in readme.md
* Capitalize table headings and center level numbers
2019-10-01 03:13:15 +02:00