nitro-graphql 1.5.11 → 1.6.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/ecosystem/{nuxt.js → nuxt.mjs} +1 -1
- package/dist/{index.d.ts → index.d.mts} +2 -2
- package/dist/{index.js → index.mjs} +7 -6
- package/dist/{rollup.js → rollup.mjs} +2 -2
- package/dist/routes/{graphql-yoga.d.ts → apollo-server.d.mts} +2 -2
- package/dist/routes/{debug.d.ts → debug.d.mts} +2 -2
- package/dist/routes/graphql-yoga.d.mts +6 -0
- package/dist/routes/{health.d.ts → health.d.mts} +2 -2
- package/dist/types/{index.d.ts → index.d.mts} +1 -1
- package/dist/types/{standard-schema.d.ts → standard-schema.d.mts} +2 -2
- package/dist/utils/{client-codegen.d.ts → client-codegen.d.mts} +1 -1
- package/dist/utils/{define.d.ts → define.d.mts} +5 -1
- package/dist/utils/{define.js → define.mjs} +7 -1
- package/dist/utils/{index.d.ts → index.d.mts} +2 -2
- package/dist/utils/{index.js → index.mjs} +10 -4
- package/dist/utils/{path-resolver.d.ts → path-resolver.d.mts} +1 -1
- package/dist/utils/{server-codegen.d.ts → server-codegen.d.mts} +1 -1
- package/dist/utils/{type-generation.js → type-generation.mjs} +4 -4
- package/package.json +85 -79
- package/dist/routes/apollo-server.d.ts +0 -6
- /package/dist/ecosystem/{nuxt.d.ts → nuxt.d.mts} +0 -0
- /package/dist/graphql/{index.d.ts → index.d.mts} +0 -0
- /package/dist/graphql/{index.js → index.mjs} +0 -0
- /package/dist/graphql/{server.d.ts → server.d.mts} +0 -0
- /package/dist/graphql/{server.js → server.mjs} +0 -0
- /package/dist/routes/{apollo-server.js → apollo-server.mjs} +0 -0
- /package/dist/routes/{debug.js → debug.mjs} +0 -0
- /package/dist/routes/{graphql-yoga.js → graphql-yoga.mjs} +0 -0
- /package/dist/routes/{health.js → health.mjs} +0 -0
- /package/dist/utils/{apollo.d.ts → apollo.d.mts} +0 -0
- /package/dist/utils/{apollo.js → apollo.mjs} +0 -0
- /package/dist/utils/{client-codegen.js → client-codegen.mjs} +0 -0
- /package/dist/utils/{directive-parser.d.ts → directive-parser.d.mts} +0 -0
- /package/dist/utils/{directive-parser.js → directive-parser.mjs} +0 -0
- /package/dist/utils/{file-generator.d.ts → file-generator.d.mts} +0 -0
- /package/dist/utils/{file-generator.js → file-generator.mjs} +0 -0
- /package/dist/utils/{path-resolver.js → path-resolver.mjs} +0 -0
- /package/dist/utils/{server-codegen.js → server-codegen.mjs} +0 -0
- /package/dist/utils/{type-generation.d.ts → type-generation.d.mts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getDefaultPaths, getTypesConfig, resolveFilePath } from "../utils/path-resolver.
|
|
1
|
+
import { getDefaultPaths, getTypesConfig, resolveFilePath } from "../utils/path-resolver.mjs";
|
|
2
2
|
import { existsSync, mkdirSync, writeFileSync } from "node:fs";
|
|
3
3
|
import { dirname, join, relative, resolve } from "pathe";
|
|
4
4
|
import { defineNuxtModule, getLayerDirectories } from "@nuxt/kit";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { StandardSchemaV1 } from "./types/standard-schema.
|
|
2
|
-
import { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions, PathsConfig, ScaffoldConfig, SdkConfig, TypesConfig } from "./types/index.
|
|
1
|
+
import { StandardSchemaV1 } from "./types/standard-schema.mjs";
|
|
2
|
+
import { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions, PathsConfig, ScaffoldConfig, SdkConfig, TypesConfig } from "./types/index.mjs";
|
|
3
3
|
import * as nitropack0 from "nitropack";
|
|
4
4
|
|
|
5
5
|
//#region src/index.d.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { generateDirectiveSchemas } from "./utils/directive-parser.
|
|
2
|
-
import { generateLayerIgnorePatterns, getLayerAppDirectories, getLayerServerDirectories, relativeWithDot, scanDirectives, scanDocs, scanResolvers, scanSchemas, validateExternalServices } from "./utils/index.
|
|
3
|
-
import { writeFileIfNotExists } from "./utils/file-generator.
|
|
4
|
-
import { getDefaultPaths, getScaffoldConfig, getTypesConfig, resolveFilePath, shouldGenerateScaffold } from "./utils/path-resolver.
|
|
5
|
-
import { clientTypeGeneration, serverTypeGeneration } from "./utils/type-generation.
|
|
6
|
-
import { rollupConfig } from "./rollup.
|
|
1
|
+
import { generateDirectiveSchemas } from "./utils/directive-parser.mjs";
|
|
2
|
+
import { generateLayerIgnorePatterns, getLayerAppDirectories, getLayerServerDirectories, relativeWithDot, scanDirectives, scanDocs, scanResolvers, scanSchemas, validateExternalServices } from "./utils/index.mjs";
|
|
3
|
+
import { writeFileIfNotExists } from "./utils/file-generator.mjs";
|
|
4
|
+
import { getDefaultPaths, getScaffoldConfig, getTypesConfig, resolveFilePath, shouldGenerateScaffold } from "./utils/path-resolver.mjs";
|
|
5
|
+
import { clientTypeGeneration, serverTypeGeneration } from "./utils/type-generation.mjs";
|
|
6
|
+
import { rollupConfig } from "./rollup.mjs";
|
|
7
7
|
import { existsSync, mkdirSync } from "node:fs";
|
|
8
8
|
import { fileURLToPath } from "node:url";
|
|
9
9
|
import { watch } from "chokidar";
|
|
@@ -200,6 +200,7 @@ var src_default = defineNitroModule({
|
|
|
200
200
|
"defineQuery",
|
|
201
201
|
"defineSubscription",
|
|
202
202
|
"defineType",
|
|
203
|
+
"defineField",
|
|
203
204
|
"defineGraphQLConfig",
|
|
204
205
|
"defineSchema",
|
|
205
206
|
"defineDirective"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getImportId, scanGraphql } from "./utils/index.
|
|
2
|
-
import { clientTypeGeneration, serverTypeGeneration } from "./utils/type-generation.
|
|
1
|
+
import { getImportId, scanGraphql } from "./utils/index.mjs";
|
|
2
|
+
import { clientTypeGeneration, serverTypeGeneration } from "./utils/type-generation.mjs";
|
|
3
3
|
import { resolve } from "pathe";
|
|
4
4
|
import { readFile } from "node:fs/promises";
|
|
5
5
|
import { parse } from "graphql";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as h30 from "h3";
|
|
2
2
|
|
|
3
|
-
//#region src/routes/
|
|
4
|
-
declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<
|
|
3
|
+
//#region src/routes/apollo-server.d.ts
|
|
4
|
+
declare const _default: h30.EventHandler<h30.EventHandlerRequest, Promise<any>>;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h33 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/debug.d.ts
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ import * as h31 from "h3";
|
|
|
10
10
|
* - /_nitro/graphql/debug - HTML dashboard
|
|
11
11
|
* - /_nitro/graphql/debug?format=json - JSON API
|
|
12
12
|
*/
|
|
13
|
-
declare const _default:
|
|
13
|
+
declare const _default: h33.EventHandler<h33.EventHandlerRequest, Promise<string | {
|
|
14
14
|
timestamp: string;
|
|
15
15
|
environment: {
|
|
16
16
|
dev: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as h35 from "h3";
|
|
2
2
|
|
|
3
3
|
//#region src/routes/health.d.ts
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: h35.EventHandler<h35.EventHandlerRequest, Promise<{
|
|
5
5
|
status: string;
|
|
6
6
|
message: string;
|
|
7
7
|
timestamp: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { StandardSchemaV1 } from "./standard-schema.
|
|
1
|
+
import { StandardSchemaV1 } from "./standard-schema.mjs";
|
|
2
2
|
import { ESMCodeGenOptions } from "knitwork";
|
|
3
3
|
import { IResolvers } from "@graphql-tools/utils";
|
|
4
4
|
import { TypeScriptPluginConfig } from "@graphql-codegen/typescript";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/types/standard-schema.d.ts
|
|
2
2
|
/** The Standard Schema interface. */
|
|
3
|
-
interface StandardSchemaV1<Input
|
|
3
|
+
interface StandardSchemaV1<Input = unknown, Output = Input> {
|
|
4
4
|
/** The Standard Schema properties. */
|
|
5
|
-
readonly '~standard': StandardSchemaV1.Props<Input
|
|
5
|
+
readonly '~standard': StandardSchemaV1.Props<Input, Output>;
|
|
6
6
|
}
|
|
7
7
|
declare namespace StandardSchemaV1 {
|
|
8
8
|
/** The Standard Schema properties interface. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CodegenClientConfig, ExternalGraphQLService, GenericSdkConfig } from "../types/index.
|
|
1
|
+
import { CodegenClientConfig, ExternalGraphQLService, GenericSdkConfig } from "../types/index.mjs";
|
|
2
2
|
import { GraphQLSchema } from "graphql";
|
|
3
3
|
import { Source } from "@graphql-tools/utils";
|
|
4
4
|
import { LoadSchemaOptions, UnnormalizedTypeDefPointer } from "@graphql-tools/load";
|
|
@@ -15,7 +15,11 @@ type ResolverQuery = Resolvers extends {
|
|
|
15
15
|
declare function defineQuery(resolvers?: Resolvers['Query']): Resolvers;
|
|
16
16
|
declare function defineMutation(resolvers?: Resolvers['Mutation']): Resolvers;
|
|
17
17
|
declare function defineSubscription(resolvers?: Resolvers['Subscription']): Resolvers;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Use `defineField` instead. This function will be removed in a future version.
|
|
20
|
+
*/
|
|
18
21
|
declare function defineType(resolvers: Resolvers): Resolvers;
|
|
22
|
+
declare function defineField(resolvers: Resolvers): Resolvers;
|
|
19
23
|
type DefineServerConfig<T extends NPMConfig = NPMConfig> = T['framework'] extends 'graphql-yoga' ? Partial<YogaServerOptions<H3Event, Partial<H3Event>>> : T['framework'] extends 'apollo-server' ? Partial<ApolloServerOptions<H3Event>> : Partial<YogaServerOptions<H3Event, Partial<H3Event>>> | Partial<ApolloServerOptions<H3Event>>;
|
|
20
24
|
declare function defineGraphQLConfig<T extends NPMConfig = NPMConfig>(config: Partial<DefineServerConfig<T>>): Partial<DefineServerConfig<T>>;
|
|
21
25
|
type DirectiveLocationName = 'QUERY' | 'MUTATION' | 'SUBSCRIPTION' | 'FIELD' | 'FRAGMENT_DEFINITION' | 'FRAGMENT_SPREAD' | 'INLINE_FRAGMENT' | 'VARIABLE_DEFINITION' | 'SCHEMA' | 'SCALAR' | 'OBJECT' | 'FIELD_DEFINITION' | 'ARGUMENT_DEFINITION' | 'INTERFACE' | 'UNION' | 'ENUM' | 'ENUM_VALUE' | 'INPUT_OBJECT' | 'INPUT_FIELD_DEFINITION';
|
|
@@ -69,4 +73,4 @@ declare function arg<T extends GraphQLArgumentType>(type: T, options?: {
|
|
|
69
73
|
}): DirectiveArgument<T>;
|
|
70
74
|
declare function defineDirective(config: DefineDirectiveConfig): DirectiveDefinition;
|
|
71
75
|
//#endregion
|
|
72
|
-
export { DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, ResolverQuery, arg, defineDirective, defineGraphQLConfig, defineMutation, defineQuery, defineResolver, defineSchema, defineSubscription, defineType };
|
|
76
|
+
export { DefineDirectiveConfig, DefineServerConfig, DirectiveArgument, DirectiveDefinition, GraphQLArgumentType, GraphQLBaseType, GraphQLScalarType, ResolverQuery, arg, defineDirective, defineField, defineGraphQLConfig, defineMutation, defineQuery, defineResolver, defineSchema, defineSubscription, defineType };
|
|
@@ -14,9 +14,15 @@ function defineMutation(resolvers = {}) {
|
|
|
14
14
|
function defineSubscription(resolvers = {}) {
|
|
15
15
|
return { Subscription: { ...resolvers } };
|
|
16
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Use `defineField` instead. This function will be removed in a future version.
|
|
19
|
+
*/
|
|
17
20
|
function defineType(resolvers) {
|
|
18
21
|
return resolvers;
|
|
19
22
|
}
|
|
23
|
+
function defineField(resolvers) {
|
|
24
|
+
return resolvers;
|
|
25
|
+
}
|
|
20
26
|
function defineGraphQLConfig(config) {
|
|
21
27
|
return config;
|
|
22
28
|
}
|
|
@@ -54,4 +60,4 @@ function defineDirective(config) {
|
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
//#endregion
|
|
57
|
-
export { arg, defineDirective, defineGraphQLConfig, defineMutation, defineQuery, defineResolver, defineSchema, defineSubscription, defineType };
|
|
63
|
+
export { arg, defineDirective, defineField, defineGraphQLConfig, defineMutation, defineQuery, defineResolver, defineSchema, defineSubscription, defineType };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GenImport } from "../types/index.
|
|
2
|
-
import { directiveParser, generateDirectiveSchema, generateDirectiveSchemas } from "./directive-parser.
|
|
1
|
+
import { GenImport } from "../types/index.mjs";
|
|
2
|
+
import { directiveParser, generateDirectiveSchema, generateDirectiveSchemas } from "./directive-parser.mjs";
|
|
3
3
|
import { Nitro } from "nitropack";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/index.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { directiveParser, generateDirectiveSchema, generateDirectiveSchemas } from "./directive-parser.
|
|
1
|
+
import { directiveParser, generateDirectiveSchema, generateDirectiveSchemas } from "./directive-parser.mjs";
|
|
2
2
|
import { join, relative } from "pathe";
|
|
3
3
|
import { readFile } from "node:fs/promises";
|
|
4
4
|
import { hash } from "ohash";
|
|
5
|
-
import {
|
|
5
|
+
import { parseSync } from "oxc-parser";
|
|
6
6
|
import { glob } from "tinyglobby";
|
|
7
7
|
|
|
8
8
|
//#region src/utils/index.ts
|
|
@@ -54,12 +54,13 @@ async function scanResolvers(nitro) {
|
|
|
54
54
|
"defineQuery",
|
|
55
55
|
"defineMutation",
|
|
56
56
|
"defineType",
|
|
57
|
+
"defineField",
|
|
57
58
|
"defineSubscription",
|
|
58
59
|
"defineDirective"
|
|
59
60
|
];
|
|
60
61
|
for (const file of files) try {
|
|
61
62
|
const fileContent = await readFile(file.fullPath, "utf-8");
|
|
62
|
-
const parsed =
|
|
63
|
+
const parsed = parseSync(file.fullPath, fileContent);
|
|
63
64
|
const exports = {
|
|
64
65
|
imports: [],
|
|
65
66
|
specifier: file.fullPath
|
|
@@ -94,6 +95,11 @@ async function scanResolvers(nitro) {
|
|
|
94
95
|
type: "type",
|
|
95
96
|
as: `_${hash(decl.id.name + file.fullPath).replace(/-/g, "").slice(0, 6)}`
|
|
96
97
|
});
|
|
98
|
+
if (decl.init.callee.type === "Identifier" && decl.init.callee.name === "defineField") exports.imports.push({
|
|
99
|
+
name: decl.id.name,
|
|
100
|
+
type: "type",
|
|
101
|
+
as: `_${hash(decl.id.name + file.fullPath).replace(/-/g, "").slice(0, 6)}`
|
|
102
|
+
});
|
|
97
103
|
if (decl.init.callee.type === "Identifier" && decl.init.callee.name === "defineSubscription") exports.imports.push({
|
|
98
104
|
name: decl.id.name,
|
|
99
105
|
type: "subscription",
|
|
@@ -129,7 +135,7 @@ async function scanDirectives(nitro) {
|
|
|
129
135
|
const exportName = [];
|
|
130
136
|
for (const file of files) {
|
|
131
137
|
const fileContent = await readFile(file.fullPath, "utf-8");
|
|
132
|
-
const parsed = await
|
|
138
|
+
const parsed = await parseSync(file.fullPath, fileContent);
|
|
133
139
|
const exports = {
|
|
134
140
|
imports: [],
|
|
135
141
|
specifier: file.fullPath
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ClientUtilsConfig, FileGenerationConfig, ScaffoldConfig, SdkConfig, TypesConfig } from "../types/index.
|
|
1
|
+
import { ClientUtilsConfig, FileGenerationConfig, ScaffoldConfig, SdkConfig, TypesConfig } from "../types/index.mjs";
|
|
2
2
|
import { Nitro } from "nitropack/types";
|
|
3
3
|
|
|
4
4
|
//#region src/utils/path-resolver.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { downloadAndSaveSchema, generateClientTypes, generateExternalClientTypes, loadExternalSchema, loadGraphQLDocuments } from "./client-codegen.
|
|
2
|
-
import { writeFileIfNotExists } from "./file-generator.
|
|
3
|
-
import { getClientUtilsConfig, getDefaultPaths, getSdkConfig, getTypesConfig, resolveFilePath, shouldGenerateClientUtils, shouldGenerateTypes } from "./path-resolver.
|
|
4
|
-
import { generateTypes } from "./server-codegen.
|
|
1
|
+
import { downloadAndSaveSchema, generateClientTypes, generateExternalClientTypes, loadExternalSchema, loadGraphQLDocuments } from "./client-codegen.mjs";
|
|
2
|
+
import { writeFileIfNotExists } from "./file-generator.mjs";
|
|
3
|
+
import { getClientUtilsConfig, getDefaultPaths, getSdkConfig, getTypesConfig, resolveFilePath, shouldGenerateClientUtils, shouldGenerateTypes } from "./path-resolver.mjs";
|
|
4
|
+
import { generateTypes } from "./server-codegen.mjs";
|
|
5
5
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
6
6
|
import consola from "consola";
|
|
7
7
|
import { basename, dirname, join, resolve } from "pathe";
|
package/package.json
CHANGED
|
@@ -1,63 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nitro-graphql",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.6.0",
|
|
5
|
+
"packageManager": "pnpm@10.24.0",
|
|
5
6
|
"description": "GraphQL integration for Nitro",
|
|
6
7
|
"license": "MIT",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/productdevbook/nitro-graphql"
|
|
11
|
+
},
|
|
7
12
|
"sideEffects": false,
|
|
8
13
|
"imports": {
|
|
9
14
|
"#graphql/server": {
|
|
10
|
-
"types": "./dist/graphql/server.d.
|
|
11
|
-
"import": "./dist/graphql/server.
|
|
15
|
+
"types": "./dist/graphql/server.d.mts",
|
|
16
|
+
"import": "./dist/graphql/server.mjs"
|
|
12
17
|
}
|
|
13
18
|
},
|
|
14
19
|
"exports": {
|
|
15
20
|
".": {
|
|
16
|
-
"types": "./dist/index.d.
|
|
17
|
-
"import": "./dist/index.
|
|
21
|
+
"types": "./dist/index.d.mts",
|
|
22
|
+
"import": "./dist/index.mjs"
|
|
18
23
|
},
|
|
19
24
|
"./codegen": {
|
|
20
|
-
"types": "./dist/codegen.d.
|
|
21
|
-
"import": "./dist/codegen.
|
|
25
|
+
"types": "./dist/codegen.d.mts",
|
|
26
|
+
"import": "./dist/codegen.mjs"
|
|
22
27
|
},
|
|
23
28
|
"./watcher": {
|
|
24
|
-
"types": "./dist/watcher.d.
|
|
25
|
-
"import": "./dist/watcher.
|
|
29
|
+
"types": "./dist/watcher.d.mts",
|
|
30
|
+
"import": "./dist/watcher.mjs"
|
|
26
31
|
},
|
|
27
32
|
"./client-watcher": {
|
|
28
|
-
"types": "./dist/client-watcher.d.
|
|
29
|
-
"import": "./dist/client-watcher.
|
|
33
|
+
"types": "./dist/client-watcher.d.mts",
|
|
34
|
+
"import": "./dist/client-watcher.mjs"
|
|
30
35
|
},
|
|
31
36
|
"./context": {
|
|
32
|
-
"types": "./dist/context.d.
|
|
33
|
-
"import": "./dist/context.
|
|
37
|
+
"types": "./dist/context.d.mts",
|
|
38
|
+
"import": "./dist/context.mjs"
|
|
34
39
|
},
|
|
35
40
|
"./utils": {
|
|
36
|
-
"types": "./dist/utils/index.d.
|
|
37
|
-
"import": "./dist/utils/index.
|
|
41
|
+
"types": "./dist/utils/index.d.mts",
|
|
42
|
+
"import": "./dist/utils/index.mjs"
|
|
38
43
|
},
|
|
39
44
|
"./utils/define": {
|
|
40
|
-
"types": "./dist/utils/define.d.
|
|
41
|
-
"import": "./dist/utils/define.
|
|
45
|
+
"types": "./dist/utils/define.d.mts",
|
|
46
|
+
"import": "./dist/utils/define.mjs"
|
|
42
47
|
},
|
|
43
48
|
"./utils/apollo": {
|
|
44
|
-
"types": "./dist/utils/apollo.d.
|
|
45
|
-
"import": "./dist/utils/apollo.
|
|
49
|
+
"types": "./dist/utils/apollo.d.mts",
|
|
50
|
+
"import": "./dist/utils/apollo.mjs"
|
|
46
51
|
},
|
|
47
52
|
"./internal": {
|
|
48
|
-
"types": "./dist/internal/index.d.
|
|
49
|
-
"import": "./dist/internal/index.
|
|
53
|
+
"types": "./dist/internal/index.d.mts",
|
|
54
|
+
"import": "./dist/internal/index.mjs"
|
|
50
55
|
},
|
|
51
56
|
"./nuxt": {
|
|
52
|
-
"types": "./dist/ecosystem/nuxt.d.
|
|
53
|
-
"import": "./dist/ecosystem/nuxt.
|
|
57
|
+
"types": "./dist/ecosystem/nuxt.d.mts",
|
|
58
|
+
"import": "./dist/ecosystem/nuxt.mjs"
|
|
54
59
|
}
|
|
55
60
|
},
|
|
56
|
-
"module": "./dist/index.
|
|
57
|
-
"types": "./dist/index.d.
|
|
61
|
+
"module": "./dist/index.mjs",
|
|
62
|
+
"types": "./dist/index.d.mts",
|
|
58
63
|
"files": [
|
|
59
64
|
"dist"
|
|
60
65
|
],
|
|
66
|
+
"scripts": {
|
|
67
|
+
"prepack": "pnpm build",
|
|
68
|
+
"build": "tsdown",
|
|
69
|
+
"dev": "tsdown --watch",
|
|
70
|
+
"bumpp": "bumpp package.json",
|
|
71
|
+
"release": "pnpm build && pnpm bumpp",
|
|
72
|
+
"playground:nitro": "cd playgrounds/nitro && pnpm install && pnpm dev",
|
|
73
|
+
"playground:nuxt": "cd playgrounds/nuxt && pnpm install && pnpm dev",
|
|
74
|
+
"playground:federation": "cd playgrounds/federation && pnpm install && pnpm dev",
|
|
75
|
+
"docs:dev": "cd .docs && pnpm install && pnpm dev",
|
|
76
|
+
"docs:build": "cd .docs && pnpm install && pnpm build",
|
|
77
|
+
"docs:preview": "cd .docs && pnpm preview",
|
|
78
|
+
"lint": "eslint .",
|
|
79
|
+
"lint:fix": "eslint . --fix"
|
|
80
|
+
},
|
|
61
81
|
"peerDependencies": {
|
|
62
82
|
"@apollo/server": "^5.0.0",
|
|
63
83
|
"@apollo/utils.withrequired": "^3.0.0",
|
|
@@ -78,63 +98,49 @@
|
|
|
78
98
|
}
|
|
79
99
|
},
|
|
80
100
|
"dependencies": {
|
|
81
|
-
"@apollo/subgraph": "
|
|
82
|
-
"@graphql-codegen/core": "
|
|
83
|
-
"@graphql-codegen/import-types-preset": "
|
|
84
|
-
"@graphql-codegen/typescript": "
|
|
85
|
-
"@graphql-codegen/typescript-generic-sdk": "
|
|
86
|
-
"@graphql-codegen/typescript-operations": "
|
|
87
|
-
"@graphql-codegen/typescript-resolvers": "
|
|
88
|
-
"@graphql-tools/graphql-file-loader": "
|
|
89
|
-
"@graphql-tools/load": "
|
|
90
|
-
"@graphql-tools/load-files": "
|
|
91
|
-
"@graphql-tools/merge": "
|
|
92
|
-
"@graphql-tools/schema": "
|
|
93
|
-
"@graphql-tools/url-loader": "
|
|
94
|
-
"@graphql-tools/utils": "
|
|
95
|
-
"chokidar": "
|
|
96
|
-
"consola": "
|
|
97
|
-
"defu": "
|
|
98
|
-
"graphql-config": "
|
|
99
|
-
"graphql-scalars": "
|
|
100
|
-
"knitwork": "
|
|
101
|
-
"ohash": "
|
|
102
|
-
"oxc-parser": "
|
|
103
|
-
"pathe": "
|
|
104
|
-
"tinyglobby": "
|
|
101
|
+
"@apollo/subgraph": "catalog:",
|
|
102
|
+
"@graphql-codegen/core": "catalog:",
|
|
103
|
+
"@graphql-codegen/import-types-preset": "catalog:",
|
|
104
|
+
"@graphql-codegen/typescript": "catalog:",
|
|
105
|
+
"@graphql-codegen/typescript-generic-sdk": "catalog:",
|
|
106
|
+
"@graphql-codegen/typescript-operations": "catalog:",
|
|
107
|
+
"@graphql-codegen/typescript-resolvers": "catalog:",
|
|
108
|
+
"@graphql-tools/graphql-file-loader": "catalog:",
|
|
109
|
+
"@graphql-tools/load": "catalog:",
|
|
110
|
+
"@graphql-tools/load-files": "catalog:",
|
|
111
|
+
"@graphql-tools/merge": "catalog:",
|
|
112
|
+
"@graphql-tools/schema": "catalog:",
|
|
113
|
+
"@graphql-tools/url-loader": "catalog:",
|
|
114
|
+
"@graphql-tools/utils": "catalog:",
|
|
115
|
+
"chokidar": "catalog:",
|
|
116
|
+
"consola": "catalog:",
|
|
117
|
+
"defu": "catalog:",
|
|
118
|
+
"graphql-config": "catalog:",
|
|
119
|
+
"graphql-scalars": "catalog:",
|
|
120
|
+
"knitwork": "catalog:",
|
|
121
|
+
"ohash": "catalog:",
|
|
122
|
+
"oxc-parser": "catalog:",
|
|
123
|
+
"pathe": "catalog:",
|
|
124
|
+
"tinyglobby": "catalog:"
|
|
105
125
|
},
|
|
106
126
|
"devDependencies": {
|
|
107
|
-
"@antfu/eslint-config": "
|
|
108
|
-
"@nuxt/kit": "
|
|
109
|
-
"@nuxt/schema": "
|
|
110
|
-
"@types/node": "
|
|
111
|
-
"bumpp": "
|
|
112
|
-
"changelogen": "
|
|
113
|
-
"crossws": "
|
|
114
|
-
"eslint": "
|
|
115
|
-
"graphql": "
|
|
116
|
-
"graphql-yoga": "
|
|
117
|
-
"h3": "
|
|
118
|
-
"nitropack": "
|
|
119
|
-
"tsdown": "
|
|
120
|
-
"typescript": "
|
|
121
|
-
"vitepress-plugin-llms": "^1.
|
|
127
|
+
"@antfu/eslint-config": "catalog:",
|
|
128
|
+
"@nuxt/kit": "catalog:",
|
|
129
|
+
"@nuxt/schema": "catalog:",
|
|
130
|
+
"@types/node": "catalog:",
|
|
131
|
+
"bumpp": "catalog:",
|
|
132
|
+
"changelogen": "catalog:",
|
|
133
|
+
"crossws": "catalog:",
|
|
134
|
+
"eslint": "catalog:",
|
|
135
|
+
"graphql": "catalog:",
|
|
136
|
+
"graphql-yoga": "catalog:",
|
|
137
|
+
"h3": "catalog:",
|
|
138
|
+
"nitropack": "catalog:",
|
|
139
|
+
"tsdown": "catalog:",
|
|
140
|
+
"typescript": "catalog:",
|
|
141
|
+
"vitepress-plugin-llms": "^1.9.3"
|
|
122
142
|
},
|
|
123
143
|
"resolutions": {
|
|
124
144
|
"nitro-graphql": "link:."
|
|
125
|
-
},
|
|
126
|
-
"scripts": {
|
|
127
|
-
"build": "tsdown",
|
|
128
|
-
"dev": "tsdown --watch",
|
|
129
|
-
"bumpp": "bumpp package.json",
|
|
130
|
-
"release": "pnpm build && pnpm bumpp && pnpm publish --no-git-checks --access public",
|
|
131
|
-
"playground:nitro": "cd playgrounds/nitro && pnpm install && pnpm dev",
|
|
132
|
-
"playground:nuxt": "cd playgrounds/nuxt && pnpm install && pnpm dev",
|
|
133
|
-
"playground:federation": "cd playgrounds/federation && pnpm install && pnpm dev",
|
|
134
|
-
"docs:dev": "cd .docs && pnpm install && pnpm dev",
|
|
135
|
-
"docs:build": "cd .docs && pnpm install && pnpm build",
|
|
136
|
-
"docs:preview": "cd .docs && pnpm preview",
|
|
137
|
-
"lint": "eslint .",
|
|
138
|
-
"lint:fix": "eslint . --fix"
|
|
139
145
|
}
|
|
140
|
-
}
|
|
146
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|