Skip to content

Commit

Permalink
Merge pull request #160 from kafkajs/v3.1.0
Browse files Browse the repository at this point in the history
v3.1.0
  • Loading branch information
Nevon authored Nov 3, 2021
2 parents 823ecec + 9800506 commit 407de7f
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
}
```
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 407de7f

Please sign in to comment.