Skip to content

Commit 91cceb7

Browse files
committed
inflection
1 parent c5a1d1d commit 91cceb7

3 files changed

Lines changed: 1 addition & 26 deletions

File tree

packages/inflection/README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,6 @@ import {
3636
ucFirst,
3737
camelize,
3838
underscore,
39-
toPascalCase,
40-
toCamelCase,
41-
toSnakeCase,
42-
toKebabCase,
43-
toConstantCase,
4439
toFieldName,
4540
toQueryName,
4641
} from 'inflekt';
@@ -67,13 +62,6 @@ camelize('user_profile'); // 'UserProfile'
6762
camelize('user_profile', true); // 'userProfile'
6863
underscore('UserProfile'); // 'user_profile'
6964

70-
// Full case transformations (re-exported from komoji)
71-
toPascalCase('hello-world'); // 'HelloWorld'
72-
toCamelCase('hello-world'); // 'helloWorld'
73-
toSnakeCase('helloWorld'); // 'hello_world'
74-
toKebabCase('HelloWorld'); // 'hello-world'
75-
toConstantCase('helloWorld'); // 'HELLO_WORLD'
76-
7765
// GraphQL naming helpers
7866
toFieldName('Users'); // 'user'
7967
toQueryName('User'); // 'users'
@@ -97,11 +85,6 @@ toQueryName('User'); // 'users'
9785
- `camelize(str, lowFirstLetter?)` - Convert snake_case to PascalCase (or camelCase if lowFirstLetter is true)
9886
- `underscore(str)` - Convert PascalCase/camelCase to snake_case
9987
- `fixCapitalisedPlural(str)` - Fix capitalized S after numbers (e.g., `Table1S` -> `Table1s`)
100-
- `toPascalCase(str)` - Convert to PascalCase (re-exported from komoji)
101-
- `toCamelCase(str)` - Convert to camelCase (re-exported from komoji)
102-
- `toSnakeCase(str)` - Convert to snake_case (re-exported from komoji)
103-
- `toKebabCase(str)` - Convert to kebab-case (re-exported from komoji)
104-
- `toConstantCase(str)` - Convert to CONSTANT_CASE (re-exported from komoji)
10588

10689
### Naming Helpers
10790

packages/inflection/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
"makage": "0.1.8"
4242
},
4343
"dependencies": {
44-
"inflection": "^3.0.0",
45-
"komoji": "workspace:^"
44+
"inflection": "^3.0.0"
4645
}
4746
}

packages/inflection/src/case.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
/**
22
* Case transformation utilities
33
*/
4-
export {
5-
toPascalCase,
6-
toCamelCase,
7-
toSnakeCase,
8-
toKebabCase,
9-
toConstantCase,
10-
} from 'komoji';
114

125
/**
136
* Convert PascalCase to camelCase (lowercase first character)

0 commit comments

Comments
 (0)