Releases: blakeembrey/change-case
Releases · blakeembrey/change-case
No Case: Reduce Package Size
Changed
- Function accepts two arguments:
string
(required) andOptions
(optional) - Default behavior of
RegExp
is to split on ASCII characters only (previously it used a Unicode RegExp, but this added 5 KB) - Function export is renamed to
noCase
Lower Case: Reduce Package Size
Changed
- Export
lowerCase
export which is an alias toString#toLowerCase
- Export
localeLowerCase
export which supports locale-specific lower case
Lower Case First: Simplify Package
Changed
- Renamed export to
lowerCaseFirst
- Uses
String#toLowerCase
internally to lower case the first character
Is Upper Case: Simplify Package
Changed
- Renamed export to
isUpperCase
- Avoids false positives on non-cased values (e.g. numbers could be considered both lower case or upper case, now it's considered neither)
Is Lower Case: Simplify Package
Changed
- Renamed export to
isLowerCase
- Avoids false positives on non-cased values (e.g. numbers could be considered both lower case or upper case, now it's considered neither)
Header Case: Reduce Bundle Size
Changed
- Based on https://github.com/blakeembrey/change-case/releases/tag/no-case%403.0.0
- Renamed export to
headerCase
- Second argument is an
Options
object
Dot Case: Reduce Package Size
Changed
- Based on https://github.com/blakeembrey/change-case/releases/tag/no-case%403.0.0
- Renamed export to
dotCase
- Second argument is an
Options
object
Constant Case: Reduce Package Size
Changed
- Based on https://github.com/blakeembrey/change-case/releases/tag/no-case%403.0.0
- Renamed export to
constantCase
- Second argument is an
Options
object
Change Case: Reduce Bundle Size
Changed
- Reduced exported functions to ten (10)
*-case
libraries that convert back and forth between cases- See release notes of
case
libraries for individual export changes
- See release notes of
- Directly
export * from
for all case libraries, no renames or aliases (e.g.camelCase
, notcamel
)
Capital Case: Rename From Title Case
Changed
- Based on latest https://github.com/blakeembrey/change-case/releases/tag/no-case%403.0.0
- Renamed main export to
capitalCase