Skip to content

Releases: blakeembrey/change-case

Add `prefixCharacters` option

18 Oct 22:42
d4c15f3
Compare
Choose a tag to compare

Added

  • New prefixCharacters option to retain characters during case conversion. Useful for something like _$ to keep "private".

Add small words option

03 Oct 15:51
32d22ff
Compare
Choose a tag to compare

Added

  • Add a smallWords to an optional config object provided to titleCase #282

Fixed

  • Fixes an issue where a word ending in . would be ignored inside quotes #266

ESM support

30 Sep 02:44
93908ce
Compare
Choose a tag to compare

Changed

  • Removes CommonJS support and adds ESM import support for node 16+
  • Adds an optional locale as the second argument (now defaults to host environment using toLocaleUpperCase)

ESM support

30 Sep 02:46
93908ce
Compare
Choose a tag to compare

Changed

  • Removes CommonJS support and adds ESM import support for node 16+
  • Adds an optional locale as the second argument (now defaults to host environment using toLocale{Lower,Upper}Case

ESM support

30 Sep 02:47
93908ce
Compare
Choose a tag to compare

Changed

  • Removes CommonJS support and adds ESM import support for node 16+
  • Adds an optional locale as the second argument (now defaults to host environment using toLocale{Lower,Upper}Case

Huge ESM rewrite

30 Sep 02:59
93908ce
Compare
Choose a tag to compare

Changed:

  • The package is now only supported using ESM imports in node.js
  • Merged all core case changing libraries into change-case
  • Added support for internationalization using unicode regex features
  • Renamed paramCase to kebabCase

Removed:

  • Removed ability to specify word split and strip regexes

Added:

  • Exposed a new split function for accessing behavior of word splitting before case change
  • Added locale and separateNumbers options
  • Added pascalSnakeCase support
  • Added change-case/keys for transforming objects into the requested case

Deprecated packages:

  • camel-case (use change-case)
  • capital-case (use change-case)
  • constant-case (use change-case)
  • dot-case (use change-case)
  • header-case (use change-case -> trainCase)
  • is-lower-case (prefer manual: input.toLocaleLowerCase(locale) === input)
  • is-upper-case (prefer manual: input.toLocaleUpperCase(locale) === input)
  • lower-case-first (prefer manual: input.charAt(0).toLowerCase() + input.slice(1))
  • lower-case (prefer manual: input.toLowerCase() or input.toLocaleLowerCase(locale))
  • no-case (use change-case`)
  • param-case (use change-case -> kebabCase)
  • pascal-case (use change-case)
  • path-case (use change-case)
  • sentence-case (use change-case)
  • snake-case (use change-case)
  • upper-case-first (prefer manual: input.charAt(0).toLowerCase() + input.slice(1))
  • upper-case (prefer manual: input.toUpperCase() or input.toLocaleUpperCase(locale))

Fix Overlapping RegExp Splits

19 Dec 02:10
Compare
Choose a tag to compare

Fixed

  • Fixes #76, e.g. IQueryAArgs broke because the first A was matched and didn't pick up the subsequent AA overlapping

Merge Transform

06 Dec 03:09
Compare
Choose a tag to compare

Added

  • Expose pascalCaseTransformMerge as a helper function

ES5 Support

06 Dec 03:10
Compare
Choose a tag to compare

Fixed

  • Add support for ES5 environments to all packages

Merge Transform

06 Dec 03:10
Compare
Choose a tag to compare

Added

  • Expose camelCaseTransformMerge as a transform option