Skip to content

Release v2.3.1 #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 26, 2024
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Version 2.3.1

- `Fixes`:
- Export for cases component are now availables.

# Version 2.3.0

- `Enhancement`:
- `Case convertion`: Previously algorithms responsible of converting a string to another case was obviously to light, so, the range of managed uses was too poor, i reworked those algorithms and they're now better from far that was they were. The new ones got tested and passes tests, it's more than sure that i didn't test all of cases, but an enhancement of this feature is truely brang to package.
- `Case conversion`: Previously algorithms responsible of converting a string to another case was obviously to light, so, the range of managed uses was too poor, i reworked those algorithms and they're now better from far that was they were. The new ones got tested and passes tests, it's more than sure that i didn't test all of cases, but an enhancement of this feature is truely brang to package.
- `Added`:
- `Case` abstract class is now used to reliably create case objects.
- `CamelCase` class implement logic of previous correspondant object.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-utils-ts",
"version": "2.3.0",
"version": "2.3.1",
"description": "Provide some useful functions for strings",
"main": "./lib",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/case/camel-case.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Case from './Case';
import StringUtilsCase from '../case';
import StringUtilsCase from './utils';
import StringUtilsWord from '../word';
import { StringUtils } from '../main';

Expand Down
6 changes: 6 additions & 0 deletions src/case/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from './camel-case';
export * from './snake-case';
export * from './pascal-case';
export * from './lower-case';
export * from './upper-case';
export * from './utils';
2 changes: 1 addition & 1 deletion src/case/snake-case.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Case from './Case';
import StringUtilsCase from '../case';
import StringUtilsCase from './utils';
import StringUtilsWord from '../word';

export default class SnakeCase extends Case {
Expand Down
14 changes: 7 additions & 7 deletions src/case.ts → src/case/utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import CamelCase from './case/camel-case';
import Case from './case/Case';
import LowerCase from './case/lower-case';
import PascalCase from './case/pascal-case';
import SnakeCase from './case/snake-case';
import UpperCase from './case/upper-case';
import { StringUtils } from './main';
import CamelCase from './camel-case';
import Case from './Case';
import LowerCase from './lower-case';
import PascalCase from './pascal-case';
import SnakeCase from './snake-case';
import UpperCase from './upper-case';
import { StringUtils } from '../main';

/**
* This type is used to ensure case selection is reliable
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './main';
export * from './case';
export * from './word';
2 changes: 1 addition & 1 deletion test/case.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import StringUtilsCase, { CaseName } from '../src/case';
import StringUtilsCase, { CaseName } from '../src/case/utils';
import JestRunner from './test.utils';

const runner = new JestRunner(StringUtilsCase);
Expand Down
Loading