Skip to content

Releases: chalk/slice-ansi

v9.0.0

04 Apr 13:23

Choose a tag to compare

Breaking

  • Require Node.js 22 0a9ac73
  • Make endSlice exclude partial wide graphemes 0895c86
    • Previously, when slicing at a position that falls in the middle of a wide character (e.g., fullwidth/CJK), the wide character was included. Now it is excluded, making the behavior consistent with how startSlice already excluded partial wide graphemes at the beginning.

v8.0.0...v9.0.0

v8.0.0

10 Feb 16:26

Choose a tag to compare

Breaking

Improvements

  • Support hyperlink-aware slicing 69df80a

v7.1.2...v8.0.0

v7.1.2

08 Sep 15:12

Choose a tag to compare

v7.1.0

29 Oct 19:46

Choose a tag to compare

v7.0.0...v7.1.0

v7.0.0

28 Oct 16:29

Choose a tag to compare

Breaking

v6.0.0...v7.0.0

v6.0.0

24 Mar 12:54

Choose a tag to compare

Breaking

Improvements

v5.0.0...v6.0.0

v5.0.0

16 Apr 06:35

Choose a tag to compare

Breaking

v4.0.0...v5.0.0

v4.0.0

16 Feb 17:06

Choose a tag to compare

Breaking

Enhancements

  • Adjust string length for fullwidth characters when end is undefined (#27) 013d918
  • Don't normalize the input string (#28) 9df7d27

v3.0.0...v4.0.0

v3.0.0

17 Sep 17:52

Choose a tag to compare

Breaking

Fixes

  • Don't add extra escape when there's a space at the end 617d649
  • Correctly handle strings styled with background and foreground 617d649
  • Correctly handle the case where ANSI string and ordinary string are mixed 617d649

v2.1.0...v3.0.0

v2.1.0

25 Jan 21:17

Choose a tag to compare

  • Accept true color escape sequences (#18) f4f3cc3