fix(core): move @cfworker/json-schema out of main barrel into /validators/cf-worker subpath (#1897)
This commit is contained in:
parent
b256546750
commit
434b2f11ec
1 changed files with 38 additions and 12 deletions
6
.changeset/cfworker-out-of-barrel.md
Normal file
6
.changeset/cfworker-out-of-barrel.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/server': patch
|
||||
'@modelcontextprotocol/client': patch
|
||||
---
|
||||
|
||||
Stop bundling `@cfworker/json-schema` into the main package barrel. Previously `CfWorkerJsonSchemaValidator` was re-exported from the core internal barrel, so tsdown inlined the `@cfworker/json-schema` dev dependency into every consumer's bundle even when it was never used. The validator is now reachable only via the `_shims` conditional (workerd/browser) and the explicit `@modelcontextprotocol/{server,client}/validators/cf-worker` subpath, so consumers that don't opt into it no longer ship that code. No public API change.
|
||||
Loading…
Reference in a new issue