Skip to content

Commit ecd9ddb

Browse files
committed
chore: bump inflekt to ^0.6.0, komoji to ^0.9.0; import toConstantCase/toSnakeCase from inflekt
Now that inflekt@0.6.0 re-exports toConstantCase and toSnakeCase from komoji, switch all imports to come from inflekt (single import source for case transforms). - Bump inflekt ^0.5.1 → ^0.6.0 in all 5 packages - Bump komoji ^0.8.1 → ^0.9.0 in graphql/codegen (still needs toKebabCase) - Remove komoji from pgpm/export, pgpm/core, graphql/query (no longer imported directly) - Move toConstantCase/toSnakeCase imports from komoji to inflekt - All 312 codegen tests pass, full monorepo build succeeds
1 parent 85c25d7 commit ecd9ddb

12 files changed

Lines changed: 51 additions & 245 deletions

File tree

graphile/graphile-settings/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"graphile-upload-plugin": "workspace:^",
5454
"graphile-utils": "5.0.0-rc.8",
5555
"graphql": "16.13.0",
56-
"inflekt": "^0.5.1",
56+
"inflekt": "^0.6.0",
5757
"lru-cache": "^11.2.7",
5858
"pg": "^8.20.0",
5959
"pg-query-context": "workspace:^",

graphql/codegen/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@
6666
"gql-ast": "workspace:^",
6767
"graphile-schema": "workspace:^",
6868
"graphql": "16.13.0",
69-
"inflekt": "^0.5.1",
69+
"inflekt": "^0.6.0",
7070
"inquirerer": "^4.7.0",
7171
"jiti": "^2.6.1",
72-
"komoji": "^0.8.1",
72+
"komoji": "^0.9.0",
7373
"oxfmt": "^0.40.0",
7474
"pg-cache": "workspace:^",
7575
"pg-env": "workspace:^",

graphql/codegen/src/core/codegen/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import {
55
lcFirst,
66
pluralize,
77
toCamelCase,
8+
toConstantCase,
89
toPascalCase,
910
ucFirst,
1011
} from 'inflekt';
11-
import { toConstantCase } from 'komoji';
1212

1313
import type {
1414
Field,

graphql/query/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
"graphile-settings": "workspace:^",
3838
"graphql": "16.13.0",
3939
"inflection": "^3.0.0",
40-
"inflekt": "^0.5.1",
41-
"komoji": "^0.8.1",
40+
"inflekt": "^0.6.0",
4241
"lru-cache": "^11.2.7",
4342
"postgraphile": "5.0.0-rc.10"
4443
},

graphql/query/src/generators/naming-helpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
*
88
* Back-ported from Dashboard's `packages/data/src/query-generator.ts`.
99
*/
10-
import { toCamelCase, pluralize } from 'inflekt';
11-
import { toConstantCase } from 'komoji';
10+
import { toCamelCase, toConstantCase, pluralize } from 'inflekt';
1211

1312
import type { Table } from '../types/schema';
1413

graphql/query/src/query-builder.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { DocumentNode, print as gqlPrint } from 'graphql';
2-
import { toCamelCase, toPascalCase, pluralize } from 'inflekt';
3-
import { toSnakeCase } from 'komoji';
2+
import { toCamelCase, toPascalCase, toSnakeCase, pluralize } from 'inflekt';
43

54
import {
65
createOne,

pgpm/core/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"csv-to-pg": "workspace:^",
5757
"genomic": "^5.3.8",
5858
"glob": "^13.0.6",
59-
"komoji": "^0.8.1",
6059
"minimatch": "^10.2.4",
6160
"parse-package-name": "^1.0.0",
6261
"pg": "^8.20.0",

pgpm/export/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@
4949
"@pgpmjs/types": "workspace:^",
5050
"csv-to-pg": "workspace:^",
5151
"glob": "^13.0.6",
52-
"inflekt": "^0.5.1",
52+
"inflekt": "^0.6.0",
5353
"inquirerer": "^4.7.0",
54-
"komoji": "^0.8.1",
5554
"pg": "^8.20.0",
5655
"pg-cache": "workspace:^",
5756
"pg-env": "workspace:^"

pgpm/export/src/export-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { mkdirSync, rmSync } from 'fs';
22
import { sync as glob } from 'glob';
33
import { Inquirerer } from 'inquirerer';
4-
import { toSnakeCase } from 'komoji';
4+
import { toSnakeCase } from 'inflekt';
55
import path from 'path';
66

77
import { PgpmPackage, getMissingInstallableModules, parseAuthor } from '@pgpmjs/core';

pgpm/export/src/graphql-naming.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
* db_migrate.sql_actions -> sqlActions
1414
* column database_id -> databaseId
1515
*/
16-
import { toCamelCase, toPascalCase, distinctPluralize, singularizeLast } from 'inflekt';
17-
import { toSnakeCase } from 'komoji';
16+
import { toCamelCase, toPascalCase, toSnakeCase, distinctPluralize, singularizeLast } from 'inflekt';
1817

1918
/**
2019
* Get the GraphQL query field name for a given Postgres table name.

0 commit comments

Comments
 (0)