Skip to content

DocSearch v4 - missing Zod peerDependency #2758

@slorber

Description

@slorber

Description

pnpm init
pnpm add @docsearch/react react search-insights

We get the following warnings:

Image

Zod v3/v4 is a peerDependency of Vercel AI SDK, but DocSearch doesn't depend on this lib. It's only a devDependency, and afaik the DocSearch v4 instructions do not say we should install Zod manually in our project.

Can also be seen with Yarn yarn explain peer-requirements:

p9cf0e → ✘ @docsearch/react@npm:4.0.0 [3d0d2] doesn't provide zod to @ai-sdk/react@npm:2.0.44 [7f775] and 3 other dependencies

Expected behavior

Either:

  • You depend on Zod as a regular dependency
  • You depend on Zod as a peerDependency, and document that users are responsible for installing it in their project

Environment

  • pnpm / yarn
  • DocSearch version: 4.0.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions