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/keys
types 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
sentenceCase
intitle-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`
Added
- Added a
split
option to thechange-case
transform functions to allow for customization on how words are extracted from input
Changed
- The package exports are now
default
instead ofimport
to fix some tooling that doesn't work properly withimport
- The exported
split
utility 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-one
should beTwo-for-One
at 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
suffixCharacters
option to retain characters during case conversion. Useful for retaining something like the_
intype_
. Closes #322.
New `delimiter` and `mergeAmbiguousCharacters` options
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
Fixed
- Fixed an issue where "a" would be incorrectly capitalized (#307), fixed by @galenhuntington in #310