Skip to content

Releases: chalk/slice-ansi

v9.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 04 Apr 13:23

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

Choose a tag to compare

@sindresorhus sindresorhus released this 10 Feb 16:26

Breaking

Improvements

  • Support hyperlink-aware slicing 69df80a

v7.1.2...v8.0.0

v7.1.2

Choose a tag to compare

@sindresorhus sindresorhus released this 08 Sep 15:12

v7.1.0

Choose a tag to compare

@sindresorhus sindresorhus released this 29 Oct 19:46

v7.0.0...v7.1.0

v7.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 28 Oct 16:29

Breaking

v6.0.0...v7.0.0

v6.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 24 Mar 12:54

Breaking

Improvements

v5.0.0...v6.0.0

v5.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 16 Apr 06:35

Breaking

v4.0.0...v5.0.0

v4.0.0

Choose a tag to compare

@sindresorhus sindresorhus released this 16 Feb 17:06

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

Choose a tag to compare

@sindresorhus sindresorhus released this 17 Sep 17:52

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

Choose a tag to compare

@sindresorhus sindresorhus released this 25 Jan 21:17
  • Accept true color escape sequences (#18) f4f3cc3