Changelog

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

5.0.0

1 Dec 2022

💥 BREAKING CHANGES

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

4.1.0

12 Aug 2022

Features

4.0.13

18 Apr 2022

🔧 Fixed

4.0.0

9 Sept 2021

Features

💥 BREAKING CHANGES

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

3.1.0

24 May 2021

Features

  • config file based major bump blacklisting (e15f9bb)

3.0.15

11 Apr 2021

Reverts

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

3.0.1

28 Jan 2021

🔧 Fixed

  • add testStats to npmignore (f3c84e9)

3.0.0

23 Jan 2021

Features

  • rewrite in TS, start using named exports (f1af4d2)

💥 BREAKING CHANGES

  • previously: import trimSpaces from … — now import { trimSpaces } from …

2.9.0

28 Nov 2020

Accidental version bump during migration to SourceHut. Sorry about that.

2.8.0

11 Sept 2019

Features

  • add granular options to trim (or not) each whitespace type (c12e5b3)

2.7.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

2.3.0

26 Dec 2018
  • Add opts.classicTrim

2.2.0

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

2.1.0

15 Oct 2018
  • Updated all dependencies and restored unit test coverage tracking: reporting in terminal and coveralls.io

2.0.0

26 Jul 2018
  • 📦 API change: now the result is not a string but a plain object, for example:
{
  res: “",
  ranges: [[0, 1]]
}

The trimmed string that was previously returned is now returned under key res. Additionally, we also supply ranges of what was deleted under key ranges.

Additionally, now only string input is allowed. Non-string input will cause error throws. We need to make API stricter because output type is different from the input type (string vs plain object) and if an accidentally wrong type, a plain object was given, if we returned it without causing an error, it could be interpreted as a valid output type and cause errors when keys res or ranges would not be found (or worse, found and consumed from a wrong place)!

  • PLUS, added opts.classicTrim. It’s the same as String.trim() except you get both string and corresponding ranges. Native String.trim() does not give the latter.

1.2.0

16 Jun 2018

GitHub sold us out. In the meantime, we:

  • Migrated to BitBucket (to host repo + perform CI) and Codacy (for code quality audit)
  • Dropped BitHound (RIP) and Travis

1.1.0

25 May 2018
  • Set up Prettier on a custom ESLint rule set.
  • Removed package.lock and .editorconfig
  • Wired Rollup to remove comments from non-dev builds. This means we can now leave the console.logs in the source code — there’s no need to comment-out console.log statements or care about them not spilling into production. Now it’s done automatically.
  • Unit tests are pointing at ES modules build, which means that code coverage is correct now, without Babel functions being missed. It is important because now code coverage is real again and now there are no excuses not to perfect it.

1.0.0

13 Feb 2018
  • First public release