unstale

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 init

@unstale/cli on npm

chai-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.

    2.0.1release notes

  • The tv4 instance is exposed on the plugin, so configure schemas and tv4 options through chaiJsonSchema.tv4.

    2.0.1release notes

  • The peer dependency now requires chai >= 5; support for chai versions below 5 is dropped.

    2.0.0release notesrelease notes

  • Node 18 support is dropped; the engines requirement is now >= 20.

    2.0.0release notesrelease notes

  • The tv4 instance is exposed on the plugin instead of on the chai object, so configure it through the plugin.

    2.0.0release notes