anatine / zod-plugins

Plugins and utilities for Zod
640 stars 89 forks source link

[zod-mock] Incompatibility with faker-js 7.6.0 #164

Open tstackhouse opened 1 year ago

tstackhouse commented 1 year ago

In parseString here: https://github.com/anatine/zod-plugins/blob/main/packages/zod-mock/src/lib/zod-mock.ts#L135 A call is made to fakerInstance.number.int, which does not exist prior to FakerJS 8, however 7.0.0 is listed in the peer dependencies, so no errors are thrown when installing with FakerJS 7 as a peer.

Upgrading my project to use FakerJS 8 was easy, but I wanted to bring it to the maintainers attention to check the peerdeps comparability. :slightly_smiling_face: