Skip to content

v1.2.0 - A bunch of other native string methods πŸ“

Compare
Choose a tag to compare
@gustavoguichard gustavoguichard released this 06 Oct 15:58
· 125 commits to main since this release
4a89d8f

New features 🎁

More methods: as we approach 800⭐️ (!!!) we are actively developing strongly-typed counterparts of native string functions.

This versions adds padStart, padEnd, includes, startsWith, endsWith, and our own truncate method.
Is there any method you'd like to see added to this library? Check the section below.

Roadmap πŸ—ΊοΈ

We setup a list in our roadmap and that list is close to completion. Now there are other methods we might implement or not, so make sure you join the discussion if you want to see some of the ❓ methods implemented!

Fixes 🐞

  • The replace now will accept a Regex but if you do it, the resulting type is gonna be loosened to string as TS doesn't do Regex yet.
  • The casing methods, such as toCamelCase, toDelimiterCase, will strip out more separators. Even though it is breaking we consider it a bugfix as toCamelCase('hello [world]') would previously result in "hello[World]" and now it will be "helloWorld"
  • The slice method is not a partial implementation anymore! Now we support the whole native API so you can send positive and negative indexes to both startIndex and endIndex parameters.

PR list πŸ“ˆ

New contributor 🫢

@p9f had already contributed to the library but now he is an official contributor.

Full Changelog: v1.1.0...v1.2.0