# What changed in chai-json-schema

> 5 changes in chai-json-schema 2 from its official release notes, upgrade guides and advisories: 5 breaking. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/chai-json-schema/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## chai-json-schema 2

### Breaking changes

- The plugin no longer sets tv4 on the chai object; migrate configuration calls to the plugin's tv4 instance. (2.0.1) — [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.1)
- The tv4 instance is exposed on the plugin, so configure schemas and tv4 options through chaiJsonSchema.tv4. (2.0.1) — [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.1)
- The peer dependency now requires chai >= 5; support for chai versions below 5 is dropped. (2.0.0) — [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.1), [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.0)
- Node 18 support is dropped; the engines requirement is now >= 20. (2.0.0) — [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.1), [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.0)
- The tv4 instance is exposed on the plugin instead of on the chai object, so configure it through the plugin. (2.0.0) — [release notes](https://github.com/chaijs/chai-json-schema/releases/tag/2.0.0)
