Skip to content

Commit e91a23a

Browse files
authored
Merge pull request #29 from benjGam/develop
Release v2.3.1
2 parents 444dc49 + 555142c commit e91a23a

File tree

8 files changed

+23
-13
lines changed

8 files changed

+23
-13
lines changed

CHANGELOG.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
# Version 2.3.1
2+
3+
- `Fixes`:
4+
- Export for cases component are now availables.
5+
16
# Version 2.3.0
27

38
- `Enhancement`:
4-
- `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.
9+
- `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.
510
- `Added`:
611
- `Case` abstract class is now used to reliably create case objects.
712
- `CamelCase` class implement logic of previous correspondant object.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "string-utils-ts",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "Provide some useful functions for strings",
55
"main": "./lib",
66
"scripts": {

src/case/camel-case.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Case from './Case';
2-
import StringUtilsCase from '../case';
2+
import StringUtilsCase from './utils';
33
import StringUtilsWord from '../word';
44
import { StringUtils } from '../main';
55

src/case/index.ts

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export * from './camel-case';
2+
export * from './snake-case';
3+
export * from './pascal-case';
4+
export * from './lower-case';
5+
export * from './upper-case';
6+
export * from './utils';

src/case/snake-case.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Case from './Case';
2-
import StringUtilsCase from '../case';
2+
import StringUtilsCase from './utils';
33
import StringUtilsWord from '../word';
44

55
export default class SnakeCase extends Case {

src/case.ts renamed to src/case/utils.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import CamelCase from './case/camel-case';
2-
import Case from './case/Case';
3-
import LowerCase from './case/lower-case';
4-
import PascalCase from './case/pascal-case';
5-
import SnakeCase from './case/snake-case';
6-
import UpperCase from './case/upper-case';
7-
import { StringUtils } from './main';
1+
import CamelCase from './camel-case';
2+
import Case from './Case';
3+
import LowerCase from './lower-case';
4+
import PascalCase from './pascal-case';
5+
import SnakeCase from './snake-case';
6+
import UpperCase from './upper-case';
7+
import { StringUtils } from '../main';
88

99
/**
1010
* This type is used to ensure case selection is reliable

src/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
export * from './main';
2-
export * from './case';
32
export * from './word';

test/case.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import StringUtilsCase, { CaseName } from '../src/case';
1+
import StringUtilsCase, { CaseName } from '../src/case/utils';
22
import JestRunner from './test.utils';
33

44
const runner = new JestRunner(StringUtilsCase);

0 commit comments

Comments
 (0)