chore(deps): update dependency ansis to v4
This PR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| ansis | ^3.17.0 -> ^4.2.0 |
Release Notes
webdiscus/ansis (ansis)
v4.2.0
- feat: add support named truecolor via
ansis.extend(). Foreground methods are created from the provided color names, and matching background methodsbg*are generated automatically. Example:
This release removes the last barrier for projects migrating from Chalk v4 that used named truecolor, e.g.import ansis from 'ansis'; import colorNames from 'css-color-names'; const color = ansis.extend(colorNames); console.log(color.orange('Orange foreground')); console.log(color.bgOrange('Orange background')); // auto-generated from "orange"chalk.keyword('orange')('text'). Ansis now provides this feature with a simpler, more intuitive API.
v4.1.0
- feat: add readonly
levelproperty to get the detected color support level:- 0 - no colors,
- 1 - 16 colors,
- 2 - 256 colors,
- 3 - truecolor.
v4.0.0
Release v4.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.
Warning: don't update only package.json to major v4, because the new version contains only gray color name.
The very rarely used alias grey was removed as duplicate to keep clean API w/o redundant aliases.
In the src/reporters/fancy.ts file must be changed:
- import { grey } from "ansis";
+ import { gray } from "ansis";
... // TODO: replace "grey" with "gray" in this file
Please, close this PR without merging. The corrected upgrade PR is #167.