Skip to content

Releases: mesqueeb/case-anything

v2.1.5

24 Jan 13:46

Choose a tag to compare

v2.1.4

24 Jan 13:36

Choose a tag to compare

"type": "module"

20 Jan 14:27

Choose a tag to compare

v2.1.2...v2.1.3

v2.1.2

05 Jan 00:51

Choose a tag to compare

  • chore: build bb57363
  • Merge pull request #22 from thim81/production a076773 (thanks @thim81) !!
  • Added Github action d2fbd7e
  • Fix "replaceAll" with regular "replace" for Node 12 & 14 support 663bd88
  • Added Github action f19a875

v2.1.1...v2.1.2

v2.1.1

04 Jan 11:20

Choose a tag to compare

keep specific special characters but strip away the rest with keep!

v2.0.0...v2.1.1

v2

31 Dec 08:23

Choose a tag to compare

v2

V2 released! Big improvements 🎉

Breaking Changes (only 2)

  • requires Node V12 or higher

  • pathCase, spaceCase, capitalCase, upperCase, lowerCase now keep special characters by default:

pathCase('$catDog')
// v1)        // v2)
'cat/Dog'     '$cat/Dog'

spaceCase('$catDog')
// v1)        // v2)
'cat Dog'     '$cat Dog'

capitalCase('$catDog')
// v1)        // v2)
'Cat Dog'     '$Cat Dog'

upperCase('$catDog')
// v1)        // v2)
'CAT DOG'     '$CAT DOG'

lowerCase('$catDog')
// v1)        // v2)
'cat dog'     '$cat dog'

New Features

  • you can now pass { keepSpecialCharacters: boolean } to any case function to decide wether or not to strip or keep the special characters.

  • new functions: adaCase, cobolCase, trainCase, dotNotation (see updated readme)

  • GREATLY improved JSDocs with emoji and examples

all changes

v1.1.5...v2.0.0

fix exports

28 Dec 13:23

Choose a tag to compare

v1.1.4...v1.1.5

maintenance 🏂

28 Dec 13:02

Choose a tag to compare

v1.1.3...v1.1.4

v1.1.3

09 Apr 03:46

Choose a tag to compare

v1.0.1...v1.1.3

Version 1.0! 🧬

27 Jan 01:26

Choose a tag to compare

Case anything has seen some great updates.

With version 1.0 I have changed how strings with spaces are handled.

Why? → When converting the casing of "sentences", it's much more logical to apply the casing logic on each part split per space, not split per each special character.

No changes for regular strings!

See the re-written readme for more details!!