Skip to content

chore(deps): bump ansis from 3.17.0 to 4.2.0#29

Merged
ReenigneArcher merged 1 commit intomasterfrom
dependabot/npm_and_yarn/ansis-4.2.0
Feb 14, 2026
Merged

chore(deps): bump ansis from 3.17.0 to 4.2.0#29
ReenigneArcher merged 1 commit intomasterfrom
dependabot/npm_and_yarn/ansis-4.2.0

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Feb 14, 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 compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

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 added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 14, 2026
@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Feb 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 0.00%. Comparing base (828eb83) to head (6a509b1).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@     Coverage Diff      @@
##   master   #29   +/-   ##
============================
============================

@ReenigneArcher ReenigneArcher merged commit fc154ae into master Feb 14, 2026
13 checks passed
@ReenigneArcher ReenigneArcher deleted the dependabot/npm_and_yarn/ansis-4.2.0 branch February 14, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant