inflekt 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,11 +36,6 @@ import {
36
36
  ucFirst,
37
37
  camelize,
38
38
  underscore,
39
- toPascalCase,
40
- toCamelCase,
41
- toSnakeCase,
42
- toKebabCase,
43
- toConstantCase,
44
39
  toFieldName,
45
40
  toQueryName,
46
41
  } from 'inflekt';
@@ -67,13 +62,6 @@ camelize('user_profile'); // 'UserProfile'
67
62
  camelize('user_profile', true); // 'userProfile'
68
63
  underscore('UserProfile'); // 'user_profile'
69
64
 
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
-
77
65
  // GraphQL naming helpers
78
66
  toFieldName('Users'); // 'user'
79
67
  toQueryName('User'); // 'users'
@@ -97,11 +85,6 @@ toQueryName('User'); // 'users'
97
85
  - `camelize(str, lowFirstLetter?)` - Convert snake_case to PascalCase (or camelCase if lowFirstLetter is true)
98
86
  - `underscore(str)` - Convert PascalCase/camelCase to snake_case
99
87
  - `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)
105
88
 
106
89
  ### Naming Helpers
107
90
 
package/case.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Case transformation utilities
3
3
  */
4
- export { toPascalCase, toCamelCase, toSnakeCase, toKebabCase, toConstantCase, } from 'komoji';
5
4
  /**
6
5
  * Convert PascalCase to camelCase (lowercase first character)
7
6
  * @example "UserProfile" -> "userProfile"
package/case.js CHANGED
@@ -1,20 +1,13 @@
1
1
  "use strict";
2
+ /**
3
+ * Case transformation utilities
4
+ */
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.toConstantCase = exports.toKebabCase = exports.toSnakeCase = exports.toCamelCase = exports.toPascalCase = void 0;
4
6
  exports.lcFirst = lcFirst;
5
7
  exports.ucFirst = ucFirst;
6
8
  exports.fixCapitalisedPlural = fixCapitalisedPlural;
7
9
  exports.camelize = camelize;
8
10
  exports.underscore = underscore;
9
- /**
10
- * Case transformation utilities
11
- */
12
- var komoji_1 = require("komoji");
13
- Object.defineProperty(exports, "toPascalCase", { enumerable: true, get: function () { return komoji_1.toPascalCase; } });
14
- Object.defineProperty(exports, "toCamelCase", { enumerable: true, get: function () { return komoji_1.toCamelCase; } });
15
- Object.defineProperty(exports, "toSnakeCase", { enumerable: true, get: function () { return komoji_1.toSnakeCase; } });
16
- Object.defineProperty(exports, "toKebabCase", { enumerable: true, get: function () { return komoji_1.toKebabCase; } });
17
- Object.defineProperty(exports, "toConstantCase", { enumerable: true, get: function () { return komoji_1.toConstantCase; } });
18
11
  /**
19
12
  * Convert PascalCase to camelCase (lowercase first character)
20
13
  * @example "UserProfile" -> "userProfile"
package/esm/case.js CHANGED
@@ -1,7 +1,6 @@
1
1
  /**
2
2
  * Case transformation utilities
3
3
  */
4
- export { toPascalCase, toCamelCase, toSnakeCase, toKebabCase, toConstantCase, } from 'komoji';
5
4
  /**
6
5
  * Convert PascalCase to camelCase (lowercase first character)
7
6
  * @example "UserProfile" -> "userProfile"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inflekt",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Inflection utilities for pluralization and singularization with PostGraphile-compatible Latin suffix handling",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "homepage": "https://github.com/constructive-io/dev-utils",
@@ -41,8 +41,7 @@
41
41
  "makage": "0.1.8"
42
42
  },
43
43
  "dependencies": {
44
- "inflection": "^3.0.0",
45
- "komoji": "^0.7.14"
44
+ "inflection": "^3.0.0"
46
45
  },
47
- "gitHead": "c5a1d1d1440805103acfb584c4c97c78eeaa50e9"
46
+ "gitHead": "77d1256501a1a088a25702fdd19630370225aaea"
48
47
  }