@nxgt/graphql-codegen-zod 0.3.0 → 0.3.1

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/README.md CHANGED
@@ -199,6 +199,8 @@ if (!result.success) {
199
199
  }
200
200
  ```
201
201
 
202
+ [`@nxgt/graphql-codegen-msw`](https://www.npmjs.com/package/@nxgt/graphql-codegen-msw) checks each mocked request's variables with these same `z<Operation>Variables` schemas.
203
+
202
204
  ### On the client: parse the response
203
205
 
204
206
  An operation's result is typed `z.output`: what the response holds, custom
package/docs/roadmap.md CHANGED
@@ -4,11 +4,7 @@ What `@nxgt/graphql-codegen-zod` is heading for, phrased as what you get.
4
4
 
5
5
  ## Now
6
6
 
7
- - **Your own formats** (in progress, not released yet). `formatSchemas:
8
- './formats'` reads the record `withValidation(schema, { formats })` takes,
9
- `zodFormats` one format; the generated schemas import your formats and
10
- chain the other rules on them, so the client refuses what the server
11
- refuses. Needs `@nxgt/graphql-validation` 0.3.
7
+ Nothing in progress.
12
8
 
13
9
  ## Next
14
10
 
@@ -31,6 +27,11 @@ Nothing yet.
31
27
 
32
28
  ## Shipped
33
29
 
30
+ - **Your own formats, 0.3.0.** `formatSchemas: './formats'` reads the record
31
+ `withValidation(schema, { formats })` takes, `zodFormats` one format; the
32
+ generated schemas import your formats and chain the other rules on them,
33
+ so the client refuses what the server refuses. Needs
34
+ `@nxgt/graphql-validation` 0.3.
34
35
  - **Declarations that resolve under `nodenext`, 0.2.1.** The generated
35
36
  file's `scalarSchemas` import typechecks with `moduleResolution`
36
37
  `nodenext` or `node16`, with `@nxgt/graphql-scalars` 0.4.1 or later.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxgt/graphql-codegen-zod",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A graphql-codegen plugin that writes Zod schemas from your SDL — inputs, enums, field arguments, operation variables, operation results and output types — with the @constraint rules of @nxgt/graphql-validation",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -46,12 +46,12 @@
46
46
  "generated:write": "bun run test/write-generated.ts"
47
47
  },
48
48
  "dependencies": {
49
- "@nxgt/graphql-validation": "^0.3.0",
49
+ "@nxgt/graphql-validation": "^0.4.0",
50
50
  "change-case": "^5.4.4"
51
51
  },
52
52
  "devDependencies": {
53
- "@nxgt/graphql-scalars": "^0.6.1",
54
- "@nxgt/zod": "^0.1.2",
53
+ "@nxgt/graphql-scalars": "^0.6.2",
54
+ "@nxgt/zod": "^0.1.3",
55
55
  "@types/bun": "^1.4.0",
56
56
  "graphql": "16.11.0",
57
57
  "zod": "4.6.5"