Skip to content

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 1, 2025

Bumps ansis from 4.1.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

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

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

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @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 4.1.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@v4.1.0...v4.2.0)

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

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 Oct 1, 2025
@coveralls
Copy link

Pull Request Test Coverage Report for Build 25cd7bea-8dba-43a7-b156-90479dd8bcef

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 88.687%

Totals Coverage Status
Change from base Build 8026c967-4d5f-4df2-829f-55427bc13a5c: 0.0%
Covered Lines: 7275
Relevant Lines: 8203

💛 - Coveralls

@kamilmysliwiec kamilmysliwiec merged commit 70fc76f into master Oct 1, 2025
4 checks passed
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ansis-4.2.0 branch October 1, 2025 09:35
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.

2 participants