Added a split option to the change-case transform functions to allow for customization on how words are extracted from input
Changed
The package exports are now default instead of import to fix some tooling that doesn't work properly with import
The exported split utility no longer accepts a second options argument
Add suffixCharacters option
Added
New suffixCharacters option to retain characters during case conversion. Useful for retaining something like the _ in type_. Closes blakeembrey/change-case#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
Add prefixCharacters option
Added
New prefixCharacters option to retain characters during case conversion. Useful for something like _$ to keep "private".
Huge ESM rewrite
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps change-case from 4.1.2 to 5.4.2.
Release notes
Sourced from change-case's releases.
... (truncated)
Commits
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show