Skip to content

Bump ansis from 4.4.0 to 4.5.0 - #80

Merged
github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/ansis-4.5.0
Nov 5, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
dependabot/npm_and_yarn/ansis-4.5.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 5, 2026

Copy link
Copy Markdown
Contributor

Bumps ansis from 4.4.0 to 4.5.0.

Release notes

Sourced from ansis's releases.

v4.5.0

Bug Fixes

  • color-support: prevent colors in piped or redirected output when COLORTERM is set, #54
  • color-support: detect the color level for FORCE_COLOR=true and --color in non-TTY output

Behavior

Colors are enabled only for a TTY, CI, and the PM2 and Next.js runtimes. Output to a pipe or a file has no colors, even when COLORTERM is set. COLORTERM sets only the color level.

FORCE_COLOR=true, FORCE_COLOR= and --color in non-TTY output now detect the level from the environment (COLORTERM, TERM, Windows) instead of always using 16 colors.

Upgrade note

If your tests relied on COLORTERM to get colors, set FORCE_COLOR instead, for example FORCE_COLOR=3 npm test. See Testing.

Full Changelog: webdiscus/ansis@v4.4.0...v4.5.0

Changelog

Sourced from ansis's changelog.

4.5.0 (2026-11-01)

  • fix(color-support): prevent colors in piped or redirected output when COLORTERM is set, #54.

    Before: Ansis used to check COLORTERM before checking stdout. Apps can inherit COLORTERM from the parent terminal even when stdout goes to a pipe or file. This could add ANSI codes to that output.

    After: Ansis now checks the output environment first. COLORTERM only helps choose the color level when color output is enabled.

    Color output in supported non-TTY environments such as CI, PM2, and Next.js edge still works.

    Auto-detection behavior changes after the fix

    Environment Before After
    stdout is a TTY, COLORTERM=truecolor ✅ Level 3 ✅ Level 3
    stdout to a pipe or file, COLORTERM=truecolor ✅ Level 3 ❌ Level 0
    PM2 or Next.js edge, COLORTERM=truecolor ✅ Level 3 ✅ Level 3

    To explicitly enable colors in non-TTY environments, use FORCE_COLOR.

  • fix(color-support): detect the color level for FORCE_COLOR=true and --color in non-TTY output.

    Before: With FORCE_COLOR=true or --color, Ansis ignored Windows and TERM for a pipe or file. Without COLORTERM, it used 16 colors, even on Windows or with TERM=xterm-256color.

    After: Ansis uses Windows and TERM for any output when colors are enabled this way.

    Environment Before After
    FORCE_COLOR=true or --color, pipe or file, Windows ✅ Level 1 ✅ Level 3
    FORCE_COLOR=true or --color, pipe or file, TERM=xterm-256color ✅ Level 1 ✅ Level 2
    FORCE_COLOR=true or --color, pipe or file, COLORTERM=truecolor ✅ Level 3 ✅ Level 3

    FORCE_COLOR=1, 2 and 3 set the level directly. They work as before.

Commits
  • 86cef44 fix(color-support): no colors in piped output when COLORTERM is set, #54
  • See full diff 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 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.4.0 to 4.5.0.
- [Release notes](https://github.com/webdiscus/ansis/releases)
- [Changelog](https://github.com/webdiscus/ansis/blob/master/CHANGELOG.md)
- [Commits](webdiscus/ansis@v4.4.0...v4.5.0)

---
updated-dependencies:
- dependency-name: ansis
  dependency-version: 4.5.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 Nov 5, 2026
@github-actions
github-actions Bot enabled auto-merge November 5, 2026 00:14
@github-actions
github-actions Bot merged commit 4ca4093 into main Nov 5, 2026
3 checks passed
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.

0 participants