Skip to content

Commit 0d4534c

Browse files
authored
feat(generator): allow controling case of generated client (#1229)
1 parent a301075 commit 0d4534c

File tree

137 files changed

+1837
-2866
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

137 files changed

+1837
-2866
lines changed

examples/10_transport-http/transport-http_method-get.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const graffle = Pokemon
1515
})
1616
.anyware(async ({ exchange }) => {
1717
show(exchange.input.request)
18-
return exchange()
18+
return await exchange()
1919
})
2020

2121
// The following request will use an HTTP POST method because it is

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
"dependencies": {
127127
"@graphql-typed-document-node/core": "^3.2.0",
128128
"@molt/command": "^0.9.0",
129+
"es-toolkit": "^1.26.1",
129130
"is-plain-obj": "^4.1.0"
130131
},
131132
"peerDependencies": {
@@ -171,7 +172,6 @@
171172
"doctoc": "^2.2.1",
172173
"dprint": "^0.47.4",
173174
"dripip": "^0.10.0",
174-
"es-toolkit": "^1.26.1",
175175
"eslint": "^9.13.0",
176176
"eslint-config-prisma": "^0.6.0",
177177
"eslint-plugin-deprecation": "^3.0.0",

pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/documentBuilder/InferResult/__.test-d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Date } from '../../../tests/_/fixtures/scalars.js'
22
import type { db } from '../../../tests/_/schemas/db.js'
3-
import type { Schema } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/Schema.js'
4-
import type * as SelectionSets from '../../../tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.js'
3+
import type { Schema } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/schema.js'
4+
import type * as SelectionSets from '../../../tests/_/schemas/kitchen-sink/graffle/modules/selection-sets.js'
55
import { assertEqual } from '../../lib/assert-equal.js'
66
import type { Registry } from '../../types/Schema/nodes/Scalar/helpers.js'
77
import type { InferResult } from './__.js'

src/documentBuilder/SelectGraphQLMapper/toGraphQL.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { expect, test } from 'vitest'
22
import { Date } from '../../../tests/_/fixtures/scalars.js'
33
import { db } from '../../../tests/_/schemas/db.js'
4-
import { schemaDrivenDataMap } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.js'
5-
import type * as SelectionSets from '../../../tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.js'
4+
import { schemaDrivenDataMap } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/schema-driven-data-map.js'
5+
import type * as SelectionSets from '../../../tests/_/schemas/kitchen-sink/graffle/modules/selection-sets.js'
66
import { Grafaid } from '../../lib/grafaid/__.js'
77
import type { Schema } from '../../types/Schema/__.js'
88
import { Select } from '../Select/__.js'

src/extensions/CustomScalars/encode.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Date } from '../../../tests/_/fixtures/scalars.js'
33
import { test } from '../../../tests/_/helpers.js'
44
import { db } from '../../../tests/_/schemas/db.js'
55
import type { Graffle } from '../../../tests/_/schemas/kitchen-sink/graffle/__.js'
6-
import { schemaDrivenDataMap } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.js'
6+
import { schemaDrivenDataMap } from '../../../tests/_/schemas/kitchen-sink/graffle/modules/schema-driven-data-map.js'
77
import { Spy } from '../../../tests/_/SpyExtension.js'
88
import { Select } from '../../documentBuilder/Select/__.js'
99
import { SelectionSetGraphqlMapper } from '../../documentBuilder/SelectGraphQLMapper/__.js'

src/extensions/SchemaErrors/tests/fixture/graffle/_.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
// It at least helps with Twoslash wherein without this import here Twoslash will not include the global module.
33
// In real TypeScript projects it seems the global module is included automatically. But there could be certain tsconfig
44
// setups where this still indeed does help.
5-
import './modules/Global.js'
5+
import './modules/global.js'
66

7-
export { create } from './modules/Client.js'
8-
export { schemaDrivenDataMap } from './modules/SchemaDrivenDataMap.js'
9-
export { Select } from './modules/Select.js'
10-
export * as SelectionSets from './modules/SelectionSets.js'
7+
export { create } from './modules/client.js'
8+
export { schemaDrivenDataMap } from './modules/schema-driven-data-map.js'
9+
export { Select } from './modules/select.js'
10+
export * as SelectionSets from './modules/selection-sets.js'

src/extensions/SchemaErrors/tests/fixture/graffle/modules/Client.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsDocument.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)