Merged
Conversation
Closed
Contributor
Author
|
Support for Zod v4 is included in Install using the # Using npm
npm install zod@next @gqloom/zod@next
# Using yarn
yarn add zod@next @gqloom/zod@next
# Using pnpm
pnpm add zod@next @gqloom/zod@next |
Contributor
Author
|
This PR is planned to be merged after Zod v4 is released as the main version. |
|
This looks great! |
|
Update: the Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors
|
- Bumped version of @gqloom/core from 0.9.0 to 0.9.1 and @gqloom/drizzle from 0.9.1 to 0.9.3 in pnpm-lock.yaml. - Updated zod dependency to version 3.25.17 in package.json and adjusted peer dependencies accordingly. - Changed module resolution strategy in tsconfig.json from "node" to "bundler". - Refactored imports in zod package files to use the new zod version structure.
- Introduced ZodWeaver class to facilitate the conversion of Zod schemas into GraphQL types. - Added utility functions for handling object, field, enum, and union types in GraphQL. - Implemented metadata registration functions for GraphQL object types and fields. - Enhanced type safety and integration with GraphQL by defining various configuration interfaces. - Added comprehensive tests to validate the functionality of the ZodWeaver and its utilities.
- Updated getGraphQLType method to handle both v4 and v3 Zod schemas. - Added a test case to validate the integration of v3 schema handling. - Refactored printZodSilk function to improve type safety with updated parameter types.
- Introduced separate entry points for v3 schemas in package.json to support v3 module imports. - Updated tsup configuration to include v3 source file for building, enhancing modularity and compatibility.
- Changed zod dependency version from 4.0.0-beta to 3.25.17 in package.json and pnpm-lock.yaml. - Updated installation instructions in both English and Chinese documentation to reflect the new zod version. - Removed references to the beta version and adjusted related code snippets for consistency with the stable version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.