Skip to content

Release: v1.0.0-rc10

James requested to merge jf/several-features into master

This is very much a breaking change. If you are not prepared for breaking changes stick to npm install static-sum-type. There'll be a migration / change log when the official release for v1 happens.

  • A function for extracting the name of a case from a case instance. Fixes #30 (closed)
  • either / maybe instances now have a fold method. Fixes #17 (closed)
  • Expose undocumented meta methods that help describe a type or a case. #30 (closed)
  • Introduce experimental otherwise feature and remove mapCase, chainCase, etc in the process #29 (closed)
  • Introduce map and chain generically. #29 (closed)
  • Add .fold to ylslashn instances #17 (closed)
  • Introduce getOr and getWith #23 (closed)
  • Add Error Checking for invalid case structures for fold, map and chain #29 (closed)
  • Reused some of fold's error checking to improve some error messages.
  • Type check eagerly in ylashn's map/chain/bimap
  • Fix documentation error #26 (closed)
  • Abstracted away access to .case and .type to open up possibilities for: #31 (closed) and improve error handling.
  • Introduced some experimental methods for comparing instances #28 (closed)
Edited by James

Merge request reports