Skip to content

Releases: blakeembrey/change-case

No Case: Reduce Package Size

01 Dec 20:20
Compare
Choose a tag to compare

Changed

  • Function accepts two arguments: string (required) and Options (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

01 Dec 20:27
Compare
Choose a tag to compare

Changed

  • Export lowerCase export which is an alias to String#toLowerCase
  • Export localeLowerCase export which supports locale-specific lower case

Lower Case First: Simplify Package

01 Dec 20:36
Compare
Choose a tag to compare

Changed

  • Renamed export to lowerCaseFirst
  • Uses String#toLowerCase internally to lower case the first character

Is Upper Case: Simplify Package

01 Dec 20:38
Compare
Choose a tag to compare

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

01 Dec 20:38
Compare
Choose a tag to compare

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

01 Dec 20:35
Compare
Choose a tag to compare

Changed

Dot Case: Reduce Package Size

01 Dec 20:35
Compare
Choose a tag to compare

Changed

Constant Case: Reduce Package Size

01 Dec 20:35
Compare
Choose a tag to compare

Changed

Change Case: Reduce Bundle Size

01 Dec 20:26
Compare
Choose a tag to compare

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
  • Directly export * from for all case libraries, no renames or aliases (e.g. camelCase, not camel)

Capital Case: Rename From Title Case

01 Dec 20:21
Compare
Choose a tag to compare