nitro-graphql 2.0.0-beta.10 → 2.0.0-beta.11

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.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { StandardSchemaV1 } from "./types/standard-schema.js";
2
2
  import { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions, PathsConfig, ScaffoldConfig, SdkConfig, TypesConfig } from "./types/index.js";
3
- import * as nitropack_types0 from "nitropack/types";
3
+ import * as nitro_types0 from "nitro/types";
4
4
 
5
5
  //#region src/index.d.ts
6
- declare const _default: nitropack_types0.NitroModule;
6
+ declare const _default: nitro_types0.NitroModule;
7
7
  //#endregion
8
8
  export { ClientUtilsConfig, CodegenClientConfig, CodegenServerConfig, ExternalGraphQLService, ExternalServicePaths, FederationConfig, FileGenerationConfig, GenImport, GenericSdkConfig, NitroGraphQLOptions, PathsConfig, ScaffoldConfig, SdkConfig, StandardSchemaV1, TypesConfig, _default as default };
package/dist/index.js CHANGED
@@ -215,6 +215,11 @@ var src_default = defineNitroModule({
215
215
  const manualChunks = rollupConfig$1.output?.manualChunks;
216
216
  const chunkFiles = rollupConfig$1.output?.chunkFileNames;
217
217
  if (!rollupConfig$1.output.inlineDynamicImports) {
218
+ rollupConfig$1.output.manualChunks = (id, meta) => {
219
+ if (id.endsWith(".graphql") || id.endsWith(".gql")) return "schemas";
220
+ if (id.endsWith(".resolver.ts")) return "resolvers";
221
+ if (typeof manualChunks === "function") return manualChunks(id, meta);
222
+ };
218
223
  rollupConfig$1.output.advancedChunks = { groups: [{
219
224
  name: "schemas",
220
225
  test: /\.(?:graphql|gql)$/
@@ -222,11 +227,6 @@ var src_default = defineNitroModule({
222
227
  name: "resolvers",
223
228
  test: /\.resolver\.ts$/
224
229
  }] };
225
- rollupConfig$1.output.manualChunks = (id, meta) => {
226
- if (id.endsWith(".graphql") || id.endsWith(".gql")) return "schemas";
227
- if (id.endsWith(".resolver.ts")) return "resolvers";
228
- if (typeof manualChunks === "function") return manualChunks(id, meta);
229
- };
230
230
  }
231
231
  rollupConfig$1.output.chunkFileNames = (chunkInfo) => {
232
232
  if (chunkInfo.moduleIds && chunkInfo.moduleIds.some((id) => id.endsWith(".graphql") || id.endsWith(".resolver.ts") || id.endsWith(".gql"))) return `chunks/graphql/[name].mjs`;
@@ -1,6 +1,6 @@
1
- import * as h35 from "h3";
1
+ import * as h31 from "h3";
2
2
 
3
3
  //#region src/routes/apollo-server.d.ts
4
- declare const _default: h35.EventHandlerWithFetch<h35.EventHandlerRequest, Promise<any>>;
4
+ declare const _default: h31.EventHandlerWithFetch<h31.EventHandlerRequest, Promise<any>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,4 +1,4 @@
1
- import * as h33 from "h3";
1
+ import * as h35 from "h3";
2
2
 
3
3
  //#region src/routes/debug.d.ts
4
4
 
@@ -10,7 +10,7 @@ import * as h33 from "h3";
10
10
  * - /_nitro/graphql/debug - HTML dashboard
11
11
  * - /_nitro/graphql/debug?format=json - JSON API
12
12
  */
13
- declare const _default: h33.EventHandlerWithFetch<h33.EventHandlerRequest, Promise<string | {
13
+ declare const _default: h35.EventHandlerWithFetch<h35.EventHandlerRequest, Promise<string | {
14
14
  timestamp: string;
15
15
  environment: {
16
16
  dev: any;
@@ -1,6 +1,6 @@
1
- import * as h30 from "h3";
1
+ import * as h33 from "h3";
2
2
 
3
3
  //#region src/routes/graphql-yoga.d.ts
4
- declare const _default: h30.EventHandlerWithFetch<h30.EventHandlerRequest, Promise<Response>>;
4
+ declare const _default: h33.EventHandlerWithFetch<h33.EventHandlerRequest, Promise<Response>>;
5
5
  //#endregion
6
6
  export { _default as default };
@@ -1,7 +1,7 @@
1
- import * as h31 from "h3";
1
+ import * as h30 from "h3";
2
2
 
3
3
  //#region src/routes/health.d.ts
4
- declare const _default: h31.EventHandlerWithFetch<h31.EventHandlerRequest, Promise<{
4
+ declare const _default: h30.EventHandlerWithFetch<h30.EventHandlerRequest, Promise<{
5
5
  status: string;
6
6
  message: string;
7
7
  timestamp: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nitro-graphql",
3
3
  "type": "module",
4
- "version": "2.0.0-beta.10",
4
+ "version": "2.0.0-beta.11",
5
5
  "description": "GraphQL integration for Nitro",
6
6
  "license": "MIT",
7
7
  "sideEffects": false,