Skip to content

Releases: arendjr/text-clipper

text-clipper v3.0.0

10 Jul 21:02
Compare
Choose a tag to compare

With version 3, text-clipper has become a Deno-first library and is now available on Jsr.io. Instructions for installation on Node.js/Bun are still included.

Other changes

  • Fix #18: Don't include spaces before the indicator.
  • Fix #19: Introduce a new option insertIndicatorAtLinebreak (default: true). If you want to
    keep the behavior of text-clipper v2, you should set this back to false.
  • Tweak in behavior: The indicator is never inserted if only whitespace remains after the
    clipping point.

text-clipper 2.2.0

27 Dec 22:13
Compare
Choose a tag to compare

text-clipper 2.2.0 introduces the stripTags option and treats <audio> and <video> elements as "unbreakable" elements, similar to <math> and <svg>. There's also a tiny Unicode fix, though this should not affect any properly encoded input.

Full Changelog: 2.1.0...2.2.0

text-clipper 2.1.0

27 May 19:57
Compare
Choose a tag to compare

Text-clipper 2.1.0 features no API changes, but improves the way whitespace is counted in HTML tags for tables and lists. This helps to prevent tables and lists from getting unexpectedly clipped in positions where no text should be.

text-clipper 2.0.0

14 May 11:32
Compare
Choose a tag to compare

Text-clipper 2.0.0 features no API changes, but is marked a breaking change because it now assumes Array.prototype.includes() is available. This means people requiring support for Internet Explorer should be careful they have the right polyfill available.

Internally, the library is now using TypeScript and tests have been moved to Jest. This is also the first release that will be published as a Deno module.