Skip to content

chore(deps): Bump ansis from 3.17.0 to 4.2.0#5

Closed
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/ansis-4.2.0
Closed

chore(deps): Bump ansis from 3.17.0 to 4.2.0#5
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/ansis-4.2.0

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Apr 23, 2026

Bumps ansis from 3.17.0 to 4.2.0.

Release notes

Sourced from ansis's releases.

v4.2.0

Feature

Added support named truecolors via ansis.extend() for both foreground and background.

Foreground methods are created from the provided color names, and matching background methods bg* are generated automatically.

output

Open in StackBlitz

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"

[!NOTE] The css-color-names (~6 kB) package exports CSS color names with their hex values.

This release removes the last barrier for projects migrating from Chalk v4 that used named truecolors:

- chalk.keyword('orange')('text');
+ color.orange('text');

chalk.bgKeyword('orange')('text');


color.bgOrange('text');

Ansis provides this feature with a simpler, more intuitive API.

[!IMPORTANT]

Fallback for named truecolors

Ansis automatically interpolates named truecolors to the highest available color level supported by the current environment. So you can safely use named truecolors anywhere without worrying about compatibility.

v4.1.0

Features

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

... (truncated)

Changelog

Sourced from ansis's changelog.

4.2.0 (2025-09-20)

  • 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.

4.1.0 (2025-05-28)

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

4.0.0 (2025-05-08)

Release v4.

Pre release note: ✨ Ansis v4 - Smaller package, and cleaner API

Ansis v4 drops legacy baggage and unused artifacts. This release brings a stable and more compact ANSI library. v4.0.0 is 12.4% smaller than v3.17.0.

4.0.0-beta.21 (2025-04-24)

⚠️ BREAKING CHANGE

  • feat: drop support for Deno 1.x (EOL - 9 Oct 2024) and add support for Deno 2.0+, #37 Backported from 3.18.0-beta.0

4.0.0-beta.20 (2025-04-21)

⚠️ BREAKING CHANGE

Removed unused and rarely used aliases for gray and bgGray:

  • grey, bgGrey - British spelling, uncommon, redundant aliases for gray and bgGray
  • blackBright, bgBlackBright - Spec-style names for "bright black", less intuitive, rarely used, and awkward in practice

... (truncated)

Commits
  • 21ae59d Merge pull request #43 from webdiscus/next
  • 613ddcb test: add original orange color for fallback tests
  • f1eef73 test: add fallback for named colors tests
  • 4033615 docs: update readme for named truecolor
  • b69e965 chore: update comments, add optional libs to bench
  • c643ecb feat: add support extending with named truecolor HEX values
  • e729bab test: fix tests for Node.js 14-16
  • da5f573 test: increase timeout limits for CI
  • 54ca331 docs: update info how to use named truecolor and add tests as examples
  • f844049 docs: update readme
  • Additional commits viewable in compare view

@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Apr 23, 2026

Labels

The following labels could not be found: area/ci, type/refactor. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot requested a review from akaieuan as a code owner April 23, 2026 18:05
Bumps [ansis](https://github.com/webdiscus/ansis) from 3.17.0 to 4.2.0.
- [Release notes](https://github.com/webdiscus/ansis/releases)
- [Changelog](https://github.com/webdiscus/ansis/blob/master/CHANGELOG.md)
- [Commits](webdiscus/ansis@v3.17.0...v4.2.0)

---
updated-dependencies:
- dependency-name: ansis
  dependency-version: 4.2.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/ansis-4.2.0 branch from 84e9fd3 to 928d63f Compare April 23, 2026 18:41
@akaieuan
Copy link
Copy Markdown
Owner

Closing — Dependabot disabled in 83481b1. Will revisit targeted upgrades manually.

@akaieuan akaieuan closed this Apr 23, 2026
@dependabot @github
Copy link
Copy Markdown
Author

dependabot Bot commented on behalf of github Apr 23, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/ansis-4.2.0 branch April 23, 2026 19:40
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