enum-fp
Version:
Functional enum type for javascript with simple pattern matching
43 lines (29 loc) • 1.58 kB
Markdown
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).
- Adds documentation for types in enum_type.md
- Fixes zero argument typevalidation issue
- Adds and exposes Type Sum Type to allow shape and argument validation
- Adds argument validation to Enum
- Refactors and reduces some of the functions to improve build size and performace
- Adds `cata` and `reduce` aliases for `caseOf`
- Changelogs
- Moves documentation from Github Wiki to /docs to be easier to maintain
- Some code refactoring to improve code quality and performance
- Internal semantics to be more consistent in the way we describe the functions
- useReducer and reducerComponent HOC, to trim the fat as both the functionalities are just one of the use cases and can be provided as a custom wrapper. The documentation includes the internals of the functions if anyone wants to use them
- Removes some properties and methods from the instances to make it lighter and expose a simpler api
[ ]: https://github.com/phenax/enum-fp/compare/v1.0.0-alpha.2...v1.0.0
[ ]: https://github.com/phenax/enum-fp/compare/v1.0.0-alpha.0...v1.0.0-alpha.2
[ ]: https://github.com/phenax/enum-fp/compare/v0.5.0...v1.0.0-alpha.0
All notable changes to