Changelog History
Page 1
-
v7.0.0-rc.0 Changes
December 06, 2020๐ Support code generation options
code.es5
andcode.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, 2020Compatible with ajv-errors v2-beta.
Keywords for all data types that are executed after others (withpost: true
in keyword definition). -
v7.0.0-beta.6 Changes
November 16, 2020โ Add "latest" meta-schema URI "http://json-schema.org/schema" 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
andunevaluatedItems
(require optionunevaluated
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
anddependentSchemas
(require optionnext
to be supported). These keywords replaceddependencies
that is still supported though for draft-7 compatibility. - ๐
maxContains
andminContains
(require optionnext
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.