webpackbar icon indicating copy to clipboard operation
webpackbar copied to clipboard

chore(deps): update dependency ansis to v4

Open renovate[bot] opened this issue 8 months ago • 1 comments

This PR contains the following updates:

Package Change Age Confidence
ansis ^3.17.0 -> ^4.2.0 age confidence

Release Notes

webdiscus/ansis (ansis)

v4.2.0

Compare Source

  • feat: add support named truecolor via ansis.extend(). Foreground methods are created from the provided color names, and matching background methods bg* are generated automatically. Example:
    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"
    
    This release removes the last barrier for projects migrating from Chalk v4 that used named truecolor, e.g. chalk.keyword('orange')('text'). Ansis now provides this feature with a simpler, more intuitive API.

v4.1.0

Compare Source

  • feat: add readonly level property to get the detected color support level:
    • 0 - no colors,
    • 1 - 16 colors,
    • 2 - 256 colors,
    • 3 - truecolor.

v4.0.0

Compare Source

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.

renovate[bot] avatar May 08 '25 21:05 renovate[bot]

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.

webdiscus avatar May 09 '25 08:05 webdiscus