Skip to content

fix(inspect): drop @valibot/to-json-schema runtime dependency - #200

Merged
antfu merged 1 commit into
mainfrom
fix/inspect-valibot-peer-dep
Aug 13, 2026
Merged

fix(inspect): drop @valibot/to-json-schema runtime dependency#200
antfu merged 1 commit into
mainfrom
fix/inspect-valibot-peer-dep

Conversation

@antfubot

Copy link
Copy Markdown
Collaborator

Summary

@devframes/plugin-inspect depended on @valibot/to-json-schema, which
peer-depends on valibot — a dependency the plugin never declared. That
mismatch produces an unmet-peer warning under Yarn:

@devframes/plugin-inspect@npm:0.8.2 [b28ab] doesn't provide valibot to @valibot/to-json-schema@npm:1.7.1

Beyond the warning, shipping @valibot/to-json-schema also broke devframe's
stated validator-neutral policy: it gave the inspect plugin a preferred
schema library, when devframe/@devframes/* packages should stay neutral.

Fix

Schema introspection in the inspector now relies solely on each schema's own
Standard JSON Schema converter
(~standard.jsonSchema, implemented by e.g. zod 4) and degrades to a
permissive object schema for validators without one (e.g. valibot) — the
same vendor-neutral pattern devframe's own MCP adapter already uses
(packages/devframe/src/adapters/mcp/to-json-schema.ts). This drops the
@valibot/to-json-schema dependency (and its valibot peer requirement)
from plugins/inspect entirely, so no dependency avoids or replaces it —
it's simply no longer needed.

Fixes #188


Created with the help of an agent.

The inspect plugin depended on @valibot/to-json-schema, which peer-depends
on valibot without inspect declaring it — yielding an unmet-peer warning
under Yarn (and violating devframe's validator-neutral policy, since the
plugin shipped a preference for one schema library).

Schema introspection now relies solely on each schema's own Standard JSON
Schema converter (~standard.jsonSchema, e.g. zod 4) and degrades to a
permissive object schema otherwise, mirroring the pattern already used by
devframe's own MCP adapter (packages/devframe/src/adapters/mcp/to-json-schema.ts).

Fixes #188

Fixed with the help of an agent.
@netlify

netlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 56a8828
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a7d7c66e6ac970008a75114
😎 Deploy Preview https://deploy-preview-200--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@antfu
antfu merged commit 1112b4d into main Aug 13, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect peer dependencies for inspect plugin

2 participants