Claude Code v2.1.223 ·
Ajv is loaded lazily for JSON-schema validation
Startup is slightly faster because the schema validation library loads only when first used.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.223,
ImprovementsSection of the release
What
The JSON-schema validator no longer pulls in Ajv when it is constructed, moving that load cost off the startup path.
Details
- The validator destructures
{ Ajv: t } from a lazy require inside the function body. - Ajv is now loaded on first schema validation instead of at module construction.
Evidence
let { Ajv: t } = dQn(),
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.223 →