npm ajv 7.0.0-beta.1
v7.0.0-beta.1

latest releases: 8.13.0, 8.12.0, 8.11.2...
3 years ago

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.

Don't miss a new ajv release

NewReleases is sending notifications on new releases.