# Change Log

All notable changes to this project will be documented in this file
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
This project adheres to [Semantic Versioning](http://semver.org/).

# v6.0.6
## (2022-03-04)

* Properly combine anyOf on merge [Josh Bowling]

# v6.0.5
## (2022-03-04)

* Add type for SchemaMismatch error [Josh Bowling]

# v6.0.4
## (2022-03-04)

* Fix failing test [Josh Bowling]

# v6.0.3
## (2022-02-18)

* Do not fail to validate if `type` is not specified [Carol Schulze]

# v6.0.2
## (2022-01-14)

* build(deps): bump lodash.merge from 4.6.1 to 4.6.2 [dependabot[bot]]

# v6.0.1
## (2022-01-14)

* Bump path-parse from 1.0.5 to 1.0.7 [dependabot[bot]]

# v6.0.0
## (2022-01-13)

* Drop support for node versions prior to v12 [Lucian Buzzo]
* Upgrade to latest version of lru-cache module [Lucian Buzzo]

# v5.3.4
## (2021-04-27)

* Export scoreMatch function type definition [Josh Bowling]

# v5.3.3
## (2020-08-05)

* Optimize lodash dependencies [Pagan Gazzard]

# v5.3.2
## (2020-08-04)

* Switch to typed-error [Pagan Gazzard]

# v5.3.1
## (2020-08-04)

* Add .versionbot/CHANGELOG.yml for nested changelogs [Pagan Gazzard]

# v5.3.0
## (2020-05-05)

* filter: Throw a custom error if the schema is invalid [Juan Cruz Viotti]

# v5.2.10
## (2020-04-30)

* .filter(): Only match if the base schema matches [Lucian Buzzo]

## 5.2.9 - 2019-12-05

* When combining with baseSchema merge enum with AND operator [StefKors]
* Add test to show .filter() not working correctly [StefKors]

## 5.2.8 - 2019-11-27

* Ensure values in "enum" are unique [Juan Cruz Viotti]

## 5.2.7 - 2019-11-27

* Filter: Correctly handle "enum" inside "anyOf" [Juan Cruz Viotti]

## 5.2.6 - 2019-11-18

* Merge: Be explicit about additionalProperties [Juan Cruz Viotti]

## 5.2.5 - 2019-05-09

* Add a resolver for the const keyword [Lucian]

## 5.2.4 - 2019-04-15

* Configure AJV instances with an LRU cache [Juan Cruz Viotti]

## 5.2.3 - 2019-04-15

* Set addUsedSchema to false in all AJV instances [Juan Cruz Viotti]

## 5.2.2 - 2019-03-20

* Fix bug in scoreMatch when handling arrays [Lucian]

## 5.2.1 - 2019-03-19

* Fix bad require name and .only in tests [Lucian]

## 5.2.0 - 2019-03-19

* Add ability to provide custom resolvers to merge() [Lucian]

## 5.1.1 - 2019-01-18

* Split up and optimize lodash dependencies [Lucian]

## 5.1.0 - 2019-01-08

* Feature: Implement method for restricting a schema by another schema [Lucian Buzzo]

## 5.0.0 - 2018-12-31

* Remove ability to add custom keywords or formats [Lucian]

## 4.0.4 - 2018-12-24

* Improve performance of clone operations [Lucian]

## 4.0.3 - 2018-12-10

* Don't bust AJV cache [Lucian]

## 4.0.2 - 2018-12-10

* Add benchmark tests [Giovanni Garufi]

## 4.0.1 - 2018-12-03

* Recurse through nested `anyOf` statements when filtering [Lucian]

## 4.0.0 - 2018-11-30

* Treat undefined additionalProperties as true instead of false [Lucian]

## 3.0.1 - 2018-11-30

* Stryker: Increase test timeout [Juan Cruz Viotti]
* Test: Configure Stryker for mutative testing [Juan Cruz Viotti]

## 3.0.0 - 2018-11-29

* Formalising filtering logic [Lucian]
* Define additionalProperty inheritance in anyOf [Giovanni Garufi]

## 2.5.2 - 2018-11-07

* Hotfix: Make sure things that should be filtered are filtered [Juan Cruz Viotti]

## 2.5.1 - 2018-11-06

* Filter: Force additionalProperties: true on match schemas [Juan Cruz Viotti]

## v2.5.0 - 2018-10-11

* Validate against just the schema if `options.schemaOnly` is true [Lucian Buzzo]

## v2.4.1 - 2018-10-09

* Merge: When merging an empty array, return a wildcard schema [Lucian Buzzo]

## v2.4.0 - 2018-10-09

* Validate: Make object optional [Lucian Buzzo]

## v2.3.0 - 2018-09-05

* Feat: Add functionality for scoring a schema match by specificity [Lucian Buzzo]

## v2.2.0 - 2018-08-30

* Index: Add Jellyfish extensions [Juan Cruz Viotti]

## v2.1.1 - 2018-08-21

* Fix(options): Fix bug where keywords are not applied properly [Lucian Buzzo]

## v2.1.0 - 2018-08-21

* Feat(options): Allow users to add keywords using the options parameter [Lucian Buzzo]

## v2.0.4 - 2018-08-21

* Fix(merge): Improve merging of anyOf fields [Lucian Buzzo]

## v2.0.3 - 2018-08-21

* Fix(merge): Fix bug where original schema would be mutated [Lucian Buzzo]
* Package.json: Update to v2.0.3 [Lucian Buzzo]
* Fix(merge): Fix bug where `anyOf` fields are removed incorrectly [Lucian Buzzo]
* Merge: Correctly handle enum inside array properties [Juan Cruz Viotti]
* Merge: Remove falsey schema values when merging schemas [Lucian Buzzo]
* Fix: Make module stateless by adding formats via an options object [Lucian Buzzo]
* Typings: Implement typings for the whole API [Lucian Buzzo]
* Implement functionality to add custom formats [Lucian Buzzo]
* Package.json: Add TS types [Juan Cruz Viotti]
* Repo: initial commit [Juan Cruz Viotti]
