From 10c24ad7dcf7f1c2973f8d14df3c07c9d5c25f68 Mon Sep 17 00:00:00 2001 From: Tommy Brunn Date: Wed, 3 Nov 2021 15:12:16 +0100 Subject: [PATCH 1/2] Document new Ajv options introduced in #133 --- docs/usage.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/usage.md b/docs/usage.md index c2829a6..bb7e758 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -284,4 +284,15 @@ const options = { strict: true } } +``` + +Alternatively, you can provide a custom Ajv instance using the `ajvInstance` option. This can be useful if you +need to configure Ajv outside of what the constructor parameters allow. + +```ts +const options = { + [SchemaType.JSON]: { + ajvInstance: new Ajv() + } +} ``` \ No newline at end of file From 980050650bc434d37a56c9dee4cbfd78f84701be Mon Sep 17 00:00:00 2001 From: Tommy Brunn Date: Wed, 3 Nov 2021 15:14:49 +0100 Subject: [PATCH 2/2] v3.1.0 --- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ae76399..54a693c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,20 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [3.1.0] - 2021-11-03 + +### Added + +- Allow passing in Ajv instance in JSON Schema options [#133](https://github.com/kafkajs/confluent-schema-registry/pull/133) + +### Fixed + +- Fix backwards compatibility with older Schema Registry versions [#158](https://github.com/kafkajs/confluent-schema-registry/pull/158) + +### Fixed + +- Fix gateway config for when setting HTTP agent [#127](https://github.com/kafkajs/confluent-schema-registry/pull/127) + ## [3.0.1] - 2021-06-11 ### Fixed diff --git a/package.json b/package.json index 61d571a..cbf8802 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kafkajs/confluent-schema-registry", - "version": "3.0.1", + "version": "3.1.0", "main": "dist/index.js", "description": "ConfluentSchemaRegistry is a library that makes it easier to interact with the Confluent schema registry, it provides convenient methods to encode, decode and register new schemas using the Apache Avro serialization format.", "keywords": [