@revojs/graphql 0.1.39 → 0.1.40

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/index.d.mts CHANGED
@@ -1,25 +1,7 @@
1
1
  import { Mergeable, Module } from "revojs";
2
2
  import { BuildSchemaOptions, DocumentNode, GraphQLSchema } from "graphql";
3
3
 
4
- //#region ../../node_modules/@graphql-tools/utils/typings/loaders.d.cts
5
- interface Source {
6
- document?: DocumentNode;
7
- schema?: GraphQLSchema;
8
- rawSDL?: string;
9
- location?: string;
10
- }
11
- //#endregion
12
- //#region ../../node_modules/@graphql-tools/utils/typings/errors.d.cts
13
- declare module 'graphql' {
14
- interface GraphQLError {
15
- /**
16
- * An optional schema coordinate (e.g. "MyType.myField") associated with this error.
17
- */
18
- readonly coordinate?: string;
19
- }
20
- }
21
- //#endregion
22
- //#region ../../node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils/typings/Interfaces.d.cts
4
+ //#region ../../node_modules/@graphql-tools/utils/typings/Interfaces.d.cts
23
5
  interface GraphQLParseOptions {
24
6
  noLocation?: boolean;
25
7
  allowLegacySDLEmptyFields?: boolean;
@@ -33,14 +15,20 @@ interface GraphQLParseOptions {
33
15
  commentDescriptions?: boolean;
34
16
  }
35
17
  //#endregion
36
- //#region ../../node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils/typings/loaders.d.cts
18
+ //#region ../../node_modules/@graphql-tools/utils/typings/loaders.d.cts
19
+ interface Source {
20
+ document?: DocumentNode;
21
+ schema?: GraphQLSchema;
22
+ rawSDL?: string;
23
+ location?: string;
24
+ }
37
25
  type BaseLoaderOptions = GraphQLParseOptions & BuildSchemaOptions & {
38
26
  cwd?: string;
39
27
  ignore?: string | string[];
40
28
  includeSources?: boolean;
41
29
  };
42
30
  //#endregion
43
- //#region ../../node_modules/@graphql-tools/apollo-engine-loader/node_modules/@graphql-tools/utils/typings/errors.d.cts
31
+ //#region ../../node_modules/@graphql-tools/utils/typings/errors.d.cts
44
32
  declare module 'graphql' {
45
33
  interface GraphQLError {
46
34
  /**
@@ -282,7 +270,7 @@ declare namespace Types {
282
270
  /**
283
271
  * @description A URL to your GraphQL endpoint, a local path to `.graphql` file, a glob pattern to your GraphQL schema files, or a JavaScript file that exports the schema to generate code from. This can also be an array which specifies multiple schemas to generate code from. You can read more about the supported formats [here](schema-field#available-formats).
284
272
  */
285
- type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile;
273
+ type Schema = string | UrlSchemaWithOptions | ApolloEngineSchemaOptions | GitHubSchemaOptions | LocalSchemaPathWithOptions | SchemaGlobPath | SchemaWithLoader | SchemaFromCodeFile | GraphQLSchema;
286
274
  type OperationDocumentGlobPath = string;
287
275
  /**
288
276
  * @additionalProperties false
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
1
  import { generate } from "@graphql-codegen/cli";
2
2
  import { mergeObjects } from "revojs";
3
3
  import { addTypes, addVirtual } from "revojs/kit";
4
-
5
4
  //#region src/index.ts
6
5
  function graphql(config) {
7
6
  return { async setup(app) {
@@ -37,6 +36,5 @@ function graphql(config) {
37
36
  addVirtual(app, "graphql", () => output.at(1)?.content ?? "");
38
37
  } };
39
38
  }
40
-
41
39
  //#endregion
42
- export { graphql };
40
+ export { graphql };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revojs/graphql",
3
- "version": "0.1.39",
3
+ "version": "0.1.40",
4
4
  "license": "MIT",
5
5
  "repository": "tellua/revojs",
6
6
  "files": [
@@ -21,14 +21,14 @@
21
21
  "watch": "tsdown -w"
22
22
  },
23
23
  "dependencies": {
24
- "@graphql-codegen/cli": "^6.1.1",
25
- "@graphql-codegen/typescript": "^5.0.7",
26
- "@graphql-codegen/typescript-operations": "^5.0.7",
27
- "graphql": "^16.12.0",
24
+ "@graphql-codegen/cli": "^6.2.1",
25
+ "@graphql-codegen/typescript": "^5.0.9",
26
+ "@graphql-codegen/typescript-operations": "^5.0.9",
27
+ "graphql": "^16.13.1",
28
28
  "revojs": "*"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@revojs/tsconfig": "*",
32
- "tsdown": "^0.20.3"
32
+ "tsdown": "^0.21.2"
33
33
  }
34
34
  }