nuxt-graphql-middleware 4.3.1 → 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 +3 -29
- package/dist/module.d.ts +3 -29
- package/dist/module.json +1 -1
- package/dist/module.mjs +463 -727
- package/dist/runtime/composables/useAsyncGraphqlQuery.d.ts +25 -9
- package/dist/runtime/serverHandler/debug.js +2 -2
- package/dist/runtime/serverHandler/helpers/index.d.ts +2 -2
- package/dist/runtime/serverHandler/index.js +3 -3
- package/dist/runtime/serverHandler/upload.js +3 -3
- package/dist/runtime/settings/index.d.ts +1 -1
- package/dist/runtime/settings/index.js +1 -1
- package/dist/runtime/types.d.ts +5 -0
- package/package.json +11 -8
- package/dist/client/200.html +0 -11
- package/dist/client/404.html +0 -11
- package/dist/client/_nuxt/B4FhP7a6.js +0 -1
- package/dist/client/_nuxt/CH4m2wxh.js +0 -25
- package/dist/client/_nuxt/CPd6XBwJ.js +0 -1
- package/dist/client/_nuxt/GKcsigNx.js +0 -1
- package/dist/client/_nuxt/VR7nYXIq.js +0 -2
- package/dist/client/_nuxt/builds/latest.json +0 -1
- package/dist/client/_nuxt/builds/meta/08eb555c-2460-4359-b00b-ff7301e8150d.json +0 -1
- package/dist/client/_nuxt/entry.D9ltLgme.css +0 -1
- package/dist/client/_nuxt/error-404.SWzu_puR.css +0 -1
- package/dist/client/_nuxt/error-500.Bkv_zTjr.css +0 -1
- package/dist/client/_nuxt/index.D19Q16VT.css +0 -1
- package/dist/client/index.html +0 -11
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 {
|
|
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
|
-
*
|
|
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?:
|
|
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 {
|
|
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
|
-
*
|
|
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?:
|
|
301
|
+
codegenConfig?: GeneratorOptions;
|
|
328
302
|
/**
|
|
329
303
|
* Configuration for graphql-codegen when downloading the schema.
|
|
330
304
|
*/
|