Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-left-right→Changelog

Changelog

All notable changes to this project will be documented in this file.
See Conventional Commits opens in a new tab for commit guidelines.

6.2.0

19 Aug 2026

🔧 Fixed

  • resolve review findings REV-004 through REV-007 (b60e9ee)
  • retire direct publish aliases (f98e31e)
  • stop case-insensitive matching crashing on a null index (5682575)
  • validate chomp modes and avoid argument cloning (577224a)

✨ Features

  • add codsen-glob and migrate glob consumers (5595a2b)
  • refresh the tooling and generate with the latest dependencies (781f802)

⏪ Reverts

  • Revert “Merge pull request #128 from codsen/release/npm-32198404552–1″ (5baeeaa), closes #128
  • Revert “Merge pull request #127 from codsen/release/npm-32194020886–1″ (5f1e94d), closes #127

6.0.0

1 Dec 2022

💥 BREAKING CHANGES

  • Minimum supported Node version is v14.18; we’re dropping v12 support

5.1.0

12 Aug 2022

✨ Features

  • export types (9185b62)
  • export types (11b5fb9)

5.0.0

9 Sept 2021

✨ Features

  • migrate to ES Modules (8c9d95d)

💥 BREAKING CHANGES

  • programs now are in ES Modules and won’t work with Common JS require()

4.1.0

24 May 2021

✨ Features

  • config file based major bump blacklisting (e15f9bb)

4.0.15

11 Apr 2021

⏪ Reverts

  • Revert “chore: setup refresh” (23cf206)

4.0.1

28 Jan 2021

🔧 Fixed

  • add testStats to npmignore (f3c84e9)

4.0.0

23 Jan 2021

✨ Features

  • rewrite in TS (7de8464)

💥 BREAKING CHANGES

  • there should be no breaking changes but we’re bumping major just in case…

2.3.0

4 Sept 2019

✨ Features

  • two new methods: rightStopAtNewLines() and leftStopAtNewLines() (cfb7557)

2.2.0

6 Apr 2019

✨ Features

  • Case insensitive opts to seqLeft and seqRight (fafbf19)
  • Hungry chomp (fd07afd)

2.1.5

22 Mar 2019

🔧 Fixed

  • Tweak the algorithm and add more unit tests (1008482)
  • Tweak the chompRight algorithm to match two characters repeated vs more (8403566)

2.1.0

17 Mar 2019

✨ Features

  • API tweaks (2ce37c3)
  • chompLeft() (81e44f0)
  • chompRight() (e02a16f)
  • leftSeq and rightSeq (f5e075e)
  • Optional arguments via appended ? character (90efa04)

1.10.0

20 Jan 2019
  • Various documentation and setup tweaks after we migrated to monorepo
  • Setup refresh: updated dependencies and all config files using automated tools

1.6.0

26 Dec 2018
  • Added opts.addSingleSpaceToPreventAccidentalConcatenation (19b1390)

1.5.0

26 Oct 2018
  • Updated all dependencies
  • Restored coveralls.io reporting
  • Restored unit test linting

1.4.0

20 Sept 2018
  • Improvements to opts.addSingleSpaceToPreventAccidentalConcatenation, now it detects is there at least one digit or number around and if there’s none, it doesn’t add a space.

1.3.0

20 Sept 2018
  • Improvements to cases when opts.ifLeftSideIncludesThisThenCropTightly/opts.ifRightSideIncludesThisThenCropTightly is an array
  • Now we tend an edge case when opts.addSingleSpaceToPreventAccidentalConcatenation is surrounded by characters, whitelisted by opts.ifLeftSideIncludesThisThenCropTightly and opts.ifRightSideIncludesThisThenCropTightly (or just one of them, but then the other is a falsy empty string). In that case, the compensation space is not added.

1.2.0

18 Sept 2018
  • New feature — opts.addSingleSpaceToPreventAccidentalConcatenation. It’s off by default but if it’s on, it can prevent accidental concatenation of string when chunk is deleted. It checks the outer edges of the string range what is about to be deleted and if non-whitespace surrounds both sides it adds a single space (as range’s third argument).

1.0.0

11 Sept 2018
  • First public release
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab