Skip to content

Commit 2bd3b18

Browse files
committed
chore: fully remove nodeHttpAdapter option instead of deprecating
1 parent 23d1a53 commit 2bd3b18

5 files changed

Lines changed: 1 addition & 18 deletions

File tree

graphql/codegen/src/core/codegen/cli/executor-generator.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@ function createImportDeclaration(
3030
return decl;
3131
}
3232

33-
export interface ExecutorOptions {
34-
/** @deprecated NodeHttpAdapter has been removed; createClient uses @constructive-io/fetch automatically */
35-
nodeHttpAdapter?: boolean;
36-
}
37-
38-
export function generateExecutorFile(toolName: string, _options?: ExecutorOptions): GeneratedFile {
33+
export function generateExecutorFile(toolName: string): GeneratedFile {
3934
const statements: t.Statement[] = [];
4035

4136
statements.push(
@@ -243,7 +238,6 @@ export function generateExecutorFile(toolName: string, _options?: ExecutorOption
243238
export function generateMultiTargetExecutorFile(
244239
toolName: string,
245240
targets: MultiTargetExecutorInput[],
246-
_options?: ExecutorOptions,
247241
): GeneratedFile {
248242
const statements: t.Statement[] = [];
249243

graphql/codegen/src/core/codegen/cli/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ export interface GenerateMultiTargetCliOptions {
129129
toolName: string;
130130
builtinNames?: BuiltinNames;
131131
targets: MultiTargetCliTarget[];
132-
/** @deprecated NodeHttpAdapter removed; createClient uses @constructive-io/fetch */
133-
nodeHttpAdapter?: boolean;
134132
/** Generate a runnable index.ts entry point */
135133
entryPoint?: boolean;
136134
}

graphql/codegen/src/core/codegen/orm/client-generator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ export function generateCreateClientFile(
137137
tables: Table[],
138138
hasCustomQueries: boolean,
139139
hasCustomMutations: boolean,
140-
options?: { nodeHttpAdapter?: boolean },
141140
): GeneratedClientFile {
142141
const statements: t.Statement[] = [];
143142

graphql/codegen/src/core/codegen/orm/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ export function generateOrm(options: GenerateOrmOptions): GenerateOrmResult {
177177
tables,
178178
hasCustomQueries,
179179
hasCustomMutations,
180-
{ nodeHttpAdapter: !!options.config.nodeHttpAdapter },
181180
);
182181
files.push({ path: indexFile.fileName, content: indexFile.content });
183182

graphql/codegen/src/types/config.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,13 +365,6 @@ export interface GraphQLSDKConfigTarget {
365365
*/
366366
orm?: boolean;
367367

368-
/**
369-
* @deprecated NodeHttpAdapter has been removed. The ORM client now uses
370-
* @constructive-io/fetch automatically, which handles *.localhost subdomain
371-
* routing in Node.js without a separate adapter.
372-
*/
373-
nodeHttpAdapter?: boolean;
374-
375368
/**
376369
* Whether to generate React Query hooks
377370
* When enabled, generates React Query hooks to {output}/hooks

0 commit comments

Comments
 (0)