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/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 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": [