nuxt-graphql-middleware 4.3.2 → 5.0.0-alpha.0

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/dist/module.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { Types } from '@graphql-codegen/plugin-helpers';
3
3
  import { SchemaASTConfig } from '@graphql-codegen/schema-ast';
4
- import { TypeScriptDocumentsPluginConfig } from '@graphql-codegen/typescript-operations';
4
+ import { GeneratorOptions } from 'graphql-typescript-deluxe';
5
5
  import { H3Event } from 'h3';
6
6
  import { FetchOptions, FetchResponse, FetchError } from 'ofetch';
7
7
  import { ContextType, GraphqlServerResponse } from '#graphql-middleware/types';
@@ -220,15 +220,6 @@ interface ModuleOptions {
220
220
  * ```
221
221
  */
222
222
  autoImportPatterns?: string[];
223
- /**
224
- * Automatically inline fragments.
225
- *
226
- * By default, fragments have to imported using the non-standard "#import"
227
- * syntax.
228
- *
229
- * When enabling this feature, the module will automatically inline fragments by name.
230
- */
231
- autoInlineFragments?: boolean;
232
223
  /**
233
224
  * Additional raw documents to include.
234
225
  *
@@ -305,26 +296,9 @@ interface ModuleOptions {
305
296
  */
306
297
  schemaPath?: string;
307
298
  /**
308
- * These options are passed to the graphql-codegen method when generating the
309
- * TypeScript operations types.
310
- *
311
- * {@link https://www.the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations}
312
- * @default
313
- * ```ts
314
- * const codegenConfig = {
315
- * exportFragmentSpreadSubTypes: true,
316
- * preResolveTypes: true,
317
- * skipTypeNameForRoot: true,
318
- * skipTypename: true,
319
- * useTypeImports: true,
320
- * onlyOperationTypes: true,
321
- * namingConvention: {
322
- * enumValues: 'change-case-all#upperCaseFirst',
323
- * },
324
- * }
325
- * ```
299
+ * Options for graphql-typescript-deluxe code generator.
326
300
  */
327
- codegenConfig?: TypeScriptDocumentsPluginConfig;
301
+ codegenConfig?: GeneratorOptions;
328
302
  /**
329
303
  * Configuration for graphql-codegen when downloading the schema.
330
304
  */
package/dist/module.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { Types } from '@graphql-codegen/plugin-helpers';
3
3
  import { SchemaASTConfig } from '@graphql-codegen/schema-ast';
4
- import { TypeScriptDocumentsPluginConfig } from '@graphql-codegen/typescript-operations';
4
+ import { GeneratorOptions } from 'graphql-typescript-deluxe';
5
5
  import { H3Event } from 'h3';
6
6
  import { FetchOptions, FetchResponse, FetchError } from 'ofetch';
7
7
  import { ContextType, GraphqlServerResponse } from '#graphql-middleware/types';
@@ -220,15 +220,6 @@ interface ModuleOptions {
220
220
  * ```
221
221
  */
222
222
  autoImportPatterns?: string[];
223
- /**
224
- * Automatically inline fragments.
225
- *
226
- * By default, fragments have to imported using the non-standard "#import"
227
- * syntax.
228
- *
229
- * When enabling this feature, the module will automatically inline fragments by name.
230
- */
231
- autoInlineFragments?: boolean;
232
223
  /**
233
224
  * Additional raw documents to include.
234
225
  *
@@ -305,26 +296,9 @@ interface ModuleOptions {
305
296
  */
306
297
  schemaPath?: string;
307
298
  /**
308
- * These options are passed to the graphql-codegen method when generating the
309
- * TypeScript operations types.
310
- *
311
- * {@link https://www.the-guild.dev/graphql/codegen/plugins/typescript/typescript-operations}
312
- * @default
313
- * ```ts
314
- * const codegenConfig = {
315
- * exportFragmentSpreadSubTypes: true,
316
- * preResolveTypes: true,
317
- * skipTypeNameForRoot: true,
318
- * skipTypename: true,
319
- * useTypeImports: true,
320
- * onlyOperationTypes: true,
321
- * namingConvention: {
322
- * enumValues: 'change-case-all#upperCaseFirst',
323
- * },
324
- * }
325
- * ```
299
+ * Options for graphql-typescript-deluxe code generator.
326
300
  */
327
- codegenConfig?: TypeScriptDocumentsPluginConfig;
301
+ codegenConfig?: GeneratorOptions;
328
302
  /**
329
303
  * Configuration for graphql-codegen when downloading the schema.
330
304
  */
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-graphql-middleware",
3
3
  "configKey": "graphqlMiddleware",
4
- "version": "4.3.2",
4
+ "version": "5.0.0-alpha.0",
5
5
  "compatibility": {
6
6
  "nuxt": ">=3.13.0"
7
7
  },