npm / chai-json-schema
chai-json-schema
What changed in chai-json-schema 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-27.
5 breaking
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initchai-json-schema 25 changes
Breaking changes 5
The plugin no longer sets tv4 on the chai object; migrate configuration calls to the plugin's tv4 instance.
The tv4 instance is exposed on the plugin, so configure schemas and tv4 options through chaiJsonSchema.tv4.
The peer dependency now requires chai >= 5; support for chai versions below 5 is dropped.
Node 18 support is dropped; the engines requirement is now >= 20.
The tv4 instance is exposed on the plugin instead of on the chai object, so configure it through the plugin.