All Versions
Latest Version
Avg Release Cycle
32 days
Latest Release
532 days ago

Changelog History
Page 1

  • v7.0.0-rc.0 Changes

    December 06, 2020

    👌 Support code generation options code.es5 and code.lines for standalone validation code.

  • v7.0.0-beta.9 Changes

    December 02, 2020

    📄 JSONSchemaType support for the new draft-2019-09 keywords.

  • v7.0.0-beta.8 Changes

    November 29, 2020

    👌 Support for generation of standalone validation code

  • v7.0.0-beta.7 Changes

    November 22, 2020

    Compatible with ajv-errors v2-beta.
    Keywords for all data types that are executed after others (with post: true in keyword definition).

  • v7.0.0-beta.6 Changes

    November 16, 2020

    ➕ Add "latest" meta-schema URI "" to draft-2019-09 class to reference default meta-schema (to support ajv-keywords)

  • v7.0.0-beta.5 Changes

    November 15, 2020

    👍 Separate Ajv class with JSON Schema draft-2019-09 support and Ajv class without any keywords/meta-schemas:

    import Ajv from "ajv" // draft-07 supportimport AjvCore from "ajv/dist/core" // no keywords includedimport Ajv2019 from "ajv/dist/2019" // draft-2019-09 support (option `draft2019: true` no longer used)

    0️⃣ Different default import using require (breaking change):

    const Ajv = require("ajv").default // draft-07 supportconst AjvCore = require("ajv/dist/core").default // no keywords includedconst Ajv2019 = require("ajv/dist/2019").default // draft-2019-09 support

    👌 Support for $data reference with in draft-2019-09

  • v7.0.0-beta.4 Changes

    November 10, 2020

    👍 JSON Schema draft-2019-09 support with option draft2019:

    • keyword unevaluatedProperties/unevaluatedItems
    • 👀 dynamic recursive references - see Extending recursive schemas
    • ➕ additional keywords: dependentRequired, dependentSchemas, maxContains/minContains
  • v7.0.0-beta.3 Changes

    November 05, 2020

    ➕ Added the new keywords from draft 2019-09:

    • 👍 unevaluatedProperties and unevaluatedItems (require option unevaluated to be supported). Please note that an additional generated code may be added to track evaluated properties, even if these keywords are not used).
    • 👍 dependentProperties and dependentSchemas (require option next to be supported). These keywords replaced dependencies that is still supported though for draft-7 compatibility.
    • 👀 maxContains and minContains (require option next to be supported). See docs and examples here
  • v7.0.0-beta.2 Changes

    October 24, 2020
    • Export additional types
    • Prevent optimiser from removing assignments with side effects when (for user keywords that modify data and have valid: true option)
    • This version is compatible with ajv-keywords v4.0.0-beta.0 and ajv-formats v0.4.0
  • v7.0.0-beta.1 Changes

    October 10, 2020

    🚀 See v7.0.0-beta.0 for changes from v6.

    Switched to syntax tree for code generation.

    ➕ Added code optimizations:

    • ✂ removes empty and unreachable branches.
    • ✂ removes unused variable declarations.
    • replaces variables that are used only once and assigned expressions that are explicitly marked as "constant" (i.e. having referential transparency) with the expressions themselves.

    ✅ These optimizations reduce the size of generated code by more than 10% (based on the tests), removing over 16% of statements in compiled code.

    ⚡️ Option code.optimize to control optimization - one optimization pass by default.

    👀 See Code optimization for more details.