Skip to content

eslint-plugin-react-hooks needs dependency on zod ^3.25.0 or later #34366

@lachlanhunt

Description

@lachlanhunt

eslint-plugin-react-hooks currently has these dependencies:

  "dependencies": {
    ...
    "zod": "^3.22.4",
    "zod-validation-error": "^3.0.3"
  },

More recent versions of zod-validation-plugin since 3.5.3 (matched by "^3.0.3" above) have a peer-dependency requirement for "zod": "^3.25.0 || ^4.0.0", and they are internally using the zod/v3 import introduced by zod 3.25.0.

eslint-plugin-react-hooks should change its dependencies to:

    "zod": "^3.25.0",
    "zod-validation-error": "^3.5.3"

Or maybe go all the way to the latest versions of both packages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions