Skip to content

Latest commit

 

History

History
47 lines (28 loc) · 1.3 KB

HISTORY.md

File metadata and controls

47 lines (28 loc) · 1.3 KB

ducktype history

https://github.com/josdejong/ducktype

2018-04-11, version 1.2.2

  • Security fixes in the regular expression for email and url.

2018-03-14, version 1.2.1

  • Security fix in the regular expression for urls.

2017-12-29, version 1.2.0

  • Implemented types ducktype.email, ducktype.integer, ducktype.url.
  • Implemented options integer, min, max. Only applicable for numbers.
  • Fixed function wrap(fn) which wasn't working.

2013-07-31, version 1.1.0

  • Support for creating ducktype arrays containing a fixed number of elements with different types, which can be used for example to test function arguments.
  • Ducktype has a new function wrap(fn), which creates a wrapper around the provided function which validates the function arguments against the ducktype.
  • Some minor internal improvements.

2013-07-26, version 1.0.0

  • Added support for structured arrays, like ducktype([Number]).
  • Support for combining types, like ducktype(Number, String).
  • Added basic types Array, Object, RegExp, null, undefined.

2013-07-25, version 0.0.1

  • Created ducktype construction function.
  • Basic types Boolean, Date, Function, Number, String
  • Object interfaces and nested objects. Like ducktype({name: String, Age: Number}).
  • Options nullable and optional.