Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Latest commit

 

History

History
48 lines (33 loc) · 1.39 KB

HISTORY.md

File metadata and controls

48 lines (33 loc) · 1.39 KB

0.5.1 (2013-2-21)

  • Made extractOne return undefined on failure.
  • Bump adt.js version and update docs.

0.5.0 (2012-11-7)

  • Added arbitrary rest expressions. You can combine an ellpsis with any other expression to map said expression over a list.
  • Removed strict object comparison. It just wasn't useful, it was brittle, and it didn't make sense when combined with rest expressions. Object are now always non-strict.
  • Added a couple more methods (extract and extractOne) for just doing destructuring rather than dispatch.
  • Consolidated the source code into one file.

0.4.0

  • Added rest arguments. Argument length matching is now strict.
  • Rest arguments have the identifier after the ellipsis ala ES6.
  • Added custom extractors

0.3.1

  • Added support for string keys in objects
  • Fixed a bug in the compiled functions for objects matching on Object prototype keys.
  • Updated adt.js version number

0.3.0

  • Removed specific adt.js support in favor of general custom type support.
  • Removed hyper-specific tokens from the grammar like emptyArray, emptyObject, arrayRest, and objectRest in favor of compile time checking.

0.2.1

Removed stray debug statement.

0.2.0

Refactored grammar/parser and compiler. Objects now support the same rest syntax as arrays. The key-only or key-value syntax for objects can be mixed and matched in the same pattern.

0.1.0

Initial release