From 9cd93a1bdbdefd5a7ba3db5e123d20c84d1d1d0e Mon Sep 17 00:00:00 2001
From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
Date: Wed, 23 Sep 2020 20:40:38 +0100
Subject: [PATCH] docs: note about v7 in readme
---
README.md | 38 +++++++++++++++++++++++++++++---------
1 file changed, 29 insertions(+), 9 deletions(-)
diff --git a/README.md b/README.md
index 3a88820d8..1944b851f 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,39 @@ The fastest JSON Schema validator for Node.js and browser. Supports draft-04/06/
[![Build Status](https://travis-ci.org/ajv-validator/ajv.svg?branch=master)](https://travis-ci.org/ajv-validator/ajv)
[![npm](https://img.shields.io/npm/v/ajv.svg)](https://www.npmjs.com/package/ajv)
+[![npm (beta)](https://img.shields.io/npm/v/ajv/beta)](https://www.npmjs.com/package/ajv/v/7.0.0-beta.0)
[![npm downloads](https://img.shields.io/npm/dm/ajv.svg)](https://www.npmjs.com/package/ajv)
[![Coverage Status](https://coveralls.io/repos/github/ajv-validator/ajv/badge.svg?branch=master)](https://coveralls.io/github/ajv-validator/ajv?branch=master)
[![Gitter](https://img.shields.io/gitter/room/ajv-validator/ajv.svg)](https://gitter.im/ajv-validator/ajv)
[![GitHub Sponsors](https://img.shields.io/badge/$-sponsors-brightgreen)](/~https://github.com/sponsors/epoberezkin)
+## Ajv v7 beta is released
+
+[Ajv version 7.0.0-beta.0](/~https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) is released with these changes:
+
+- to reduce the mistakes in JSON schemas and unexpected validation results, [strict mode](./docs/strict-mode.md) is added - it prohibits ignored or ambiguous JSON Schema elements.
+- to make code injection from untrusted schemas impossible, [code generation](./docs/codegen.md) is fully re-written to be safe.
+- to simplify Ajv extensions, the new keyword API that is used by pre-defined keywords is available to user-defined keywords - it is much easier to define any keywords now, especially with subschemas.
+- schemas are compiled to ES6 code (ES5 code generation is supported with an option).
+- to improve reliability and maintainability the code is migrated to TypeScript.
+
+**Please note**:
+
+- the support for JSON-Schema draft-04 is removed - if you have schemas using "id" attributes you have to replace them with "\$id" (or continue using version 6 that will be supported until 02/28/2021).
+- all formats are separated to ajv-formats package - they have to be explicitely added if you use them.
+
+See [release notes](/~https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0) for the details.
+
+To install the new version:
+
+```bash
+npm install ajv@beta
+```
+
+See [Getting started with v7](/~https://github.com/ajv-validator/ajv/tree/v7-beta#usage) for code example.
+
+
## Mozilla MOSS grant and OpenJS Foundation
[](https://www.mozilla.org/en-US/moss/) [](https://openjsf.org/blog/2020/08/14/ajv-joins-openjs-foundation-as-an-incubation-project/)
@@ -1449,16 +1476,9 @@ Please see [Contributing guidelines](/~https://github.com/ajv-validator/ajv/blob/m
See /~https://github.com/ajv-validator/ajv/releases
-__Please note__: [Changes in version 6.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/v6.0.0).
-
-[Version 5.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/5.0.0).
-
-[Version 4.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/4.0.0).
-
-[Version 3.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/3.0.0).
-
-[Version 2.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/2.0.0).
+__Please note__: [Changes in version 7.0.0-beta](/~https://github.com/ajv-validator/ajv/releases/tag/v7.0.0-beta.0)
+[Version 6.0.0](/~https://github.com/ajv-validator/ajv/releases/tag/v6.0.0).
## Code of conduct