@lewebsimple/nuxt-graphql 0.7.1 → 0.7.2

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.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-graphql",
3
3
  "configKey": "graphql",
4
- "version": "0.7.1",
4
+ "version": "0.7.2",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -1,6 +1,7 @@
1
1
  import { mkdir, writeFile } from 'node:fs/promises';
2
2
  import { relative, resolve, parse, dirname } from 'node:path';
3
3
  import { stitchSchemas } from '@graphql-tools/stitch';
4
+ import { extendSchemaWithZodDirectives } from '@lewebsimple/graphql-codegen-zod/extend-schema';
4
5
  import { createResolver, addTemplate, addTypeTemplate, defineNuxtModule, useLogger, addServerImports, updateTemplates, addServerHandler, addPlugin, addImportsDir, addServerImportsDir } from '@nuxt/kit';
5
6
  import { defu } from 'defu';
6
7
  import { parse as parse$1, printSchema, lexicographicSortSchema, getIntrospectionQuery, buildClientSchema, GraphQLSchema, buildSchema } from 'graphql';
@@ -15,7 +16,7 @@ import zodPreset from '@lewebsimple/graphql-codegen-zod';
15
16
  import { createRequire } from 'node:module';
16
17
  import { resolveCacheConfig } from '../dist/runtime/app/lib/cache-config.js';
17
18
 
18
- const version = "0.7.1";
19
+ const version = "0.7.2";
19
20
 
20
21
  const buildCache = /* @__PURE__ */ new Map();
21
22
  function getCachedLoader(baseKey, loader) {
@@ -501,6 +502,7 @@ const module$1 = defineNuxtModule({
501
502
  throw new Error("Failed to load GraphQL schema");
502
503
  }
503
504
  }
505
+ schema = extendSchemaWithZodDirectives(schema);
504
506
  if (nuxt.options.dev) {
505
507
  const sdl = getSchemaSDL(schema);
506
508
  await writeFile(sdlPath, sdl);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lewebsimple/nuxt-graphql",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Opinionated Nuxt module for using GraphQL",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": "lewebsimple/nuxt-graphql",