# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## 0.2.0 - 2019-01-18
### Added
- 99.9% test-coverage
  - testing in chrome and firefox
- This CHANGELOG
- [checks](docs/checks.md)
  - moved all type checks into new functions (isArray, isBool, etc.)
  - most checks can also check if a value can be coerced
  - isInstanceOf fixes issues with primitives and instanceof
  - isJson function to check if a value can be parsed as JSON
- [enforce](docs/enforce.md)
  - most enforce functions can now coerce values
  - added enforce.regExp
- [method](docs/method.md)
  - added method.regExp
  - added "deep" option to method.object and method.array
  - added "coerce" option to methods of types that can be coerced

###Changed
- Date functions only accept native Dates now. Removes dependency on Moment.js. 
- [DockPoint](docs/DockPoint.md)
  - default value is now DockPoint.POINTS.NONE
  - added methods "isSame" and "toString"
  - bug fix: setting primary or secondary now updates the value
- [Enum](docs/Enum.md)
  - added method "key"
- [Queue](docs/Queue.md)
  - method "getTotalCallbacks" is now read only property "length"
  - method "isBusy" is now read only property "isBusy"
- [enforce](docs/enforce.md)
  - Custom type functions no longer coerce values by default
  
###Removed
- Removed static method "isInstance" from custom data types in favor of new checks function.
- [Queue](docs/Queue.md)
  - removed method "getCallbacks"

## 0.1.6 - 2019-01-02
### Added
- Snyk.io badge for security checks 
- enforce.instance
- Enum.each

### Changed
- Changed CallbackQueue to Queue.

## 0.1.5 - 2018-12-30
### Changed
- .babelrc became babel.config.js so the babel plugins are handled properly when using this library as an npm package

## 0.1.4 - 2018-12-30
### Changed
- Moved necessary Babel plugins to dependencies in package.json

## 0.1.3 - 2018-12-29
### Changed
- Documentation

## 0.1.2 - 2018-12-29
### Changed
- Documentation

## 0.1.1 - 2018-12-29
### Changed
- Documentation

## 0.1.0 - 2018-12-29
### Added
- Initial enforcers, methods, and documentation
