Skip to content

Releases: blakeembrey/change-case

title-case@4.3.2

15 Sep 20:39
38e6b4f
Compare
Choose a tag to compare

Fixed

  • Fix capitalization of words that start with a number #346

change-case@5.4.4

03 Apr 22:35
8aaff31
Compare
Choose a tag to compare

Fix recursive options in keys change case

14 Feb 00:06
531c83c
Compare
Choose a tag to compare

Fixed

  • Fixes options used recursively in change-case/keys - previously options were ignored after the first level #334 by @Quicksaver

Remove regex lookbehind

10 Jan 20:17
fad3b5d
Compare
Choose a tag to compare

Fixed

  • Remove lookbehind from regex for older browser support (6512635)

Add `sentenceCase` option

08 Jan 20:55
17a27ce
Compare
Choose a tag to compare

Added

  • Allow sentenceCase in title-case package to alter capitalization behavior to sentence case rules instead of title case rules
  • Improved acronym and hyphenated word handling when it comes to capitalization (or non-capitalization) of small words

Add `split` option to `change-case`

08 Jan 20:26
8db40c3
Compare
Choose a tag to compare

Added

  • Added a split option to the change-case transform functions to allow for customization on how words are extracted from input

Changed

  • The package exports are now default instead of import to fix some tooling that doesn't work properly with import
  • The exported split utility no longer accepts a second options argument

Fix small words after sentences and between separators

09 Dec 14:32
3d4faa6
Compare
Choose a tag to compare

Added

  • Added support for capitalizing words after "sentence termination" (currently things like ., !, ?, and :) (#323)

Fixed

  • Added support for keeping small words in dash separated words at the end of a sentence (e.g. two-for-one should be Two-for-One at the end of a sentence, not Two-For-One, even though the final word should be capitalized if it were to end in just For)

Add `suffixCharacters` option

06 Dec 05:58
f4f6a22
Compare
Choose a tag to compare

Added

  • New suffixCharacters option to retain characters during case conversion. Useful for retaining something like the _ in type_. Closes #322.

New `delimiter` and `mergeAmbiguousCharacters` options

17 Nov 03:03
db8690c
Compare
Choose a tag to compare

Added

  • Add delimiter option for customizing join character in any change case method
  • Add mergeAmbiguousCharacters for camel and pascal case to avoid prefixing _ before numbers

Fix "a" lower case

18 Oct 22:29
aed9a6c
Compare
Choose a tag to compare

Fixed