Releases: blakeembrey/change-case
Releases · blakeembrey/change-case
[email protected]
Fixed
- Fix capitalization of words that start with a number #346
[email protected]
Fixed
- Fixed
change-case/keystypes by @marcingajda in #337
Full Changelog: https://github.com/blakeembrey/change-case/compare/[email protected]@5.4.4
Fix recursive options in keys change case
Fixed
- Fixes options used recursively in
change-case/keys- previously options were ignored after the first level #334 by @Quicksaver
Remove regex lookbehind
Fixed
- Remove lookbehind from regex for older browser support (6512635)
Add `sentenceCase` option
Added
- Allow
sentenceCaseintitle-casepackage 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`
Added
- Added a
splitoption to thechange-casetransform functions to allow for customization on how words are extracted from input
Changed
- The package exports are now
defaultinstead ofimportto fix some tooling that doesn't work properly withimport - The exported
splitutility no longer accepts a second options argument
Fix small words after sentences and between separators
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-oneshould beTwo-for-Oneat the end of a sentence, notTwo-For-One, even though the final word should be capitalized if it were to end in justFor)
Add `suffixCharacters` option
Added
- New
suffixCharactersoption to retain characters during case conversion. Useful for retaining something like the_intype_. Closes #322.
New `delimiter` and `mergeAmbiguousCharacters` options
Added
- Add
delimiteroption for customizing join character in any change case method - Add
mergeAmbiguousCharactersfor camel and pascal case to avoid prefixing_before numbers
Fix "a" lower case
Fixed
- Fixed an issue where "a" would be incorrectly capitalized (#307), fixed by @galenhuntington in #310