Packages

ansis

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

Upgrading ansis From 1.5.6 to 4.5.0

41 releases in betweenevery note read

  1. 1.5.6yours
  2. 2.0.0major
  3. 6 releases
  4. 3.0.0major
  5. 11 releases
  6. 3.5.0breaking
  7. 14 releases
  8. 4.0.0major
  9. 5 releases
  10. 4.5.0target
  11. 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.

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