Packages

ansis

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

Upgrading ansis From 1.5.2 to 4.5.0

45 releases in betweenevery note read

Other targets from 1.5.2Newest 1.x1.5.6
  1. 1.5.2yours
  2. 4 releases
  3. 2.0.0major
  4. 6 releases
  5. 3.0.0major
  6. 11 releases
  7. 3.5.0breaking
  8. 14 releases
  9. 4.0.0major
  10. 5 releases
  11. 4.5.0target
  12. 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.

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