Changelog
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
5.0.0
💥 BREAKING CHANGES
- Minimum supported Node version is v14.18; we’re dropping v12 support
4.1.0
✨ Features
- export types (11b5fb9)
4.0.13
🔧 Fixed
- tweak types (e1e4166)
4.0.0
✨ Features
- migrate to ES Modules (8c9d95d)
💥 BREAKING CHANGES
- programs now are in ES Modules and won’t work with Common JS
require()
3.1.0
✨ Features
- config file based major bump blacklisting (e15f9bb)
3.0.15
⏪ Reverts
- Revert “chore: setup refresh” (23cf206)
3.0.1
🔧 Fixed
- add
testStats
to npmignore (f3c84e9)
3.0.0
✨ Features
- rewrite in TS, start using named exports (f1af4d2)
💥 BREAKING CHANGES
- previously:
import trimSpaces from …
— nowimport { trimSpaces } from …
2.9.0
Accidental version bump during migration to SourceHut. Sorry about that.
2.8.0
✨ Features
- add granular options to trim (or not) each whitespace type (c12e5b3)
2.7.0
- Various documentation and setup tweaks after we migrated to monorepo
- Setup refresh: updated dependencies and all config files using automated tools
2.3.0
- Add
opts.classicTrim
2.2.0
- Updated all dependencies
- Restored coveralls.io reporting
- Restored unit test linting
2.1.0
- Updated all dependencies and restored unit test coverage tracking: reporting in terminal and coveralls.io
2.0.0
- 📦 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 throw
s. 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 asString.trim()
except you get both string and corresponding ranges. NativeString.trim()
does not give the latter.
1.2.0
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
- 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.log
s in the source code — there’s no need to comment-outconsole.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
- First public release