Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 8, 2025

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.

@webdiscus
Copy link

webdiscus commented May 9, 2025

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.

@renovate renovate bot force-pushed the renovate/ansis-4.x branch from c623737 to 13796fd Compare September 28, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant