Skip to content

v3.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Oct 08:31
154ad82

3.0.0 (2026-10-16)

⚠ BREAKING CHANGES

  • @peculiar/json-schema is ESM-only and requires Node.js ^20.19.0 || >=22.12.0. The CommonJS build is removed: build/index.js (CommonJS), build/index.mjs and build/index.d.mts are replaced by unbundled ES modules with build/index.js and build/index.d.ts as the entry point; the exports map still blocks deep imports into build/. The internal types IJsonSchema, IJsonSchemaItem, IJsonNamedSchema and JsonTransform, which the 2.0.0 declarations exposed by accident, are no longer exported. CommonJS code can still require("@peculiar/json-schema") on supported Node.js versions through require(esm), and require() and import now share one schema storage. TypeScript projects that compile to CommonJS need "module": "node20" or "nodenext". See "Breaking Changes In v3" in the README.

Build System

  • ship ESM-only output for Node.js ^20.19.0 || >=22.12.0 (#26) (1c9476c)