Skip to content

v3.5.2

Latest
Compare
Choose a tag to compare
@webdiscus webdiscus released this 02 Jan 16:09
· 9 commits to master since this release
9c3555f

v3.5.2

Features

  • Optimised the npm package size from 10.3 kB to 7.0 kB.

    Now, Ansis is the smallest yet most powerful library with rich functionality.
    A slightly smaller is picocolors (6.4 kB), but it offers only basic functionality.

  • Added detection of the xterm-direct terminal as supportingtruecolor.
  • Added support for the COLORTERM environment variable with the following values: truecolor, 24bit, ansi256, ansi (16 colors).

Bug Fixes (TypeScript)

  • Fixed default import in TypeScript compiled with tsc:
    import ansis from 'ansis' now works so well as import * as ansis from 'ansis'.
  • Fixed the TS2339: Property 'strip' does not exist on type when the tsc option module is node16.