-
1f528cc: major internal rework
we are now lying to tsc to make the thing work well, unfortunately this is a breaking change. but ONLY in your types; logic will work the same as it already did.
because typescript REALLY hated what we were doing before so now we hide that from it so it hates it less
to update your code just replace all instances of
Enum<E>
withE
. that's right, just the object is all you need. that's right, no moreEnum<Result<Enum<Success>, Enum<Error>>>
, now it's justResult<Success, Error>
.these release notes are highly unserious because no one should have had this deployed anywhere at the time of these changes. but they are accurate.
- 4af17da:
match()
can now handle partial matches via_
as is convention - 109e57d: add the Enum() factory function as a better DX alternative to pack()
- 4af17da:
partialMatch()
is now removed 🦀🦀🦀
- 30d3de4: fix generics in
unwrap()
andor()
functions
- leaner, meaner packaging
- kinda redid everything
- 36850a7: completely reimplemented Option based on Enum; API now uses top-level match
- 2f77d84: drastically simplify enum implementation while keeping mostly the same api
- 57161a5: refactor enums to cover many more edge cases and fix a ton of bugs
- added an initial implementation of enums