-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi there,
We're using Zod 4.0.17 and have started investigating this package (v0.4.2) for our purposes. However, TypeScript is reporting compatibility issues due to the version number differences in this project's dependencies.
Current error
error TS2742: The inferred type of '<variableName>' cannot be named without a reference to 'zod-from-json-schema/node_modules/zod/v4/core'. This is likely not portable. A type annotation is necessary.
Analysis
This repository's current Zod version is set to: ^3.25.25. Our library is using: ^4.0.17. Switching this package's Zod version to match that of our package's and running npm install in the root of node_modules/zod-from-json-schema resolves the error listed above.
Proposed solution
If you're following semver standards, I think the approach would be to create a 1.0.0 branch, bump this package's major version number from 0.4.2 to 1.0.0 and update the Zod dependency version to ^4.0.17.
Is this approach agreeable to you? If so, I'm happy to create a PR/test etc.
Thanks!
A