perf: construct the default Ajv engine lazily on first validation (#2458)
This commit is contained in:
parent
e0a0ab74d9
commit
7c49b47fb3
1 changed files with 78 additions and 7 deletions
6
.changeset/lazy-ajv-engine.md
Normal file
6
.changeset/lazy-ajv-engine.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
'@modelcontextprotocol/client': patch
|
||||
'@modelcontextprotocol/server': patch
|
||||
---
|
||||
|
||||
Construct the default Ajv validation engine lazily on first validation. Creating a `Client` or `Server` no longer pays the ajv + ajv-formats instantiation cost at startup when no JSON Schema validation ever runs.
|
||||
Loading…
Reference in a new issue