Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 1.1 KB

CHANGELOG.md

File metadata and controls

41 lines (25 loc) · 1.1 KB

Changelog

Version 1.0.6

  • Added assertTypeOf, assertOneOf, assertInteger, assertMin, assertMax and assertRange.

Version 1.0.7

  • Modified assertMax, assertMin and assertRange to throw RangeErrors instead of TypeErrors.
  • Added assertArray.

Version 1.0.8

  • Added assertInstanceOf, assertMaxExclusive and assertMinExclusive.
  • Modified randomFromArray to make sure TypeScript enforces there's at least one element in the input array.

Version 2.0.0 (MAJOR VERSION; BREAKING CHANGES!)

  • DELETED assertType.
  • Replaced assertOneOf's shallow parameter with comparator to remove reliance on @santi100/equal-lib.
  • Modified module system to use export = for all individual module files, whilst keeping compatibility.

Version 2.0.1

  • Added assertMatch and assertDefined.

Version 2.0.2

  • Fixed circular dependency bug with assertTypeOf and assertOneOf.

Version 2.0.3

  • Added assertArrayTypes.
  • Added assertDifferent.
  • Added assertEqual.
  • Added assertOneOfTypes.

Version 2.0.4

  • Added assertFinite.
  • Added assertValidNumber.