Packages

ansis

4.5.0 · 1 Nov 2026ISC56.7M / weekRepositoryHomepagenpmAtom feed

Upgrading ansis From 3.8.1 to 4.5.0

15 releases in betweenevery note read

Other targets from 3.8.1Newest 3.x3.17.0
  1. 3.8.1yours
  2. 8 releases
  3. 4.0.0major
  4. 5 releases
  5. 4.5.0target
  6. 3 pre

Before you upgrade

Tick each one off as you go
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0
  • breaking4.0.0

Release by release

  1. 4.5.0

    1 Nov 20262 fixes
    • fixed

      color-support: prevent colors in piped or redirected output when COLORTERM is set, #54

    • fixed

      color-support: detect the color level for FORCE_COLOR=true and --color in non-TTY output

  2. 4.3.1 – 4.4.02 releases, nothing new or fixed in the notes

  3. 4.3.0

    11 May 20262 new
    • new

      Added link(url, text?) for OSC 8 hyperlinks, supported by many terminal emulators, #44

    • new

      Added constructor overload to pass a mock globalThis object for controlled color auto-detection, #47

  4. 4.2.0nothing new or fixed in the note

  5. 4.1.0

    28 May 20254 new
    • new

      0 - no colors,

    • new

      1 - 16 colors,

    • new

      2 - 256 colors,

    • new

      3 - truecolor.

  6. 4.0.0

    Migration needed8 May 20252 new · 2 fixes
    • breaking

      The strike style was rarely (if ever) used and added unnecessary redundancy.

    • breaking

      No usage of ansis.strike() was found in public GitHub repositories.

    • breaking

      Other ANSI libraries use the standard strikethrough name exclusively.

    • breaking

      90 - officially "bright black" foreground (i.e., gray) in terminal specs.

  7. 3.16.0 – 3.17.02 releases, nothing new or fixed in the notes

  8. 3.15.0

    16 Feb 20251 new
    • new

      Reduce the package size by ~200 bytes.

6 other lines we could not sort, mostly version bumps
  • False - Disables colors

    3.14.0
  • 0 - Disables colors

    3.14.0
  • True (or unset) - Auto detects the supported colors (if no color detected, enforce truecolor)

    3.14.0
  • 1 - Enables 16 colors

    3.14.0
  • 2 - Enables 256 colors

    3.14.0
  • 3 - Enables truecolor

    3.14.0

18 internal lines (docs, tests, tooling) left out.