Changelog
Summary of the changes in each patch.
2.0.3​
- added
remote()
andsequence()
. - Improved handling of primitives in conditional types
- Added
types()
function to replaceoutputTypes()
and extend its functionality. - Added
matcher()
function - Added
constrained()
,patterned()
, andaugmented()
. - Added match helpers
just()
(alias forconstant()
) andunpack()
outputTypes()
gets a more specific return type.
2.0.2​
- Added
isType
utility- and a curried overload
- The
match
function has some new overloads- default functionality
- type-safe 'else' handling
match
is now stricter, extraneous keys will raise a compiler errorpartialMatch
andmatchElse
will soon be deprecated and removed in3.0
- their functionality is now covered by
match
- their functionality is now covered by
variantModule
also accepts{}
- improved generic handling (
genericVariant
) - Acknowledgments
- Thank you @ohana54 for the discussion that led to
isType
and thematch
overloads.
- Thank you @ohana54 for the discussion that led to
2.0.1​
- exposed
variantModule
2.0​
- first overhaul of library
- added recursive and generic variants
- added
variantModule
variantList
now accepts raw string literals- match gets a helper,
constant()