This release brings some excellent feature suggestions from @aaronhuggins (#6) and brings this library's implementation closer to the Rust specification! This version will be released on NPM for greater availability of consumption.
Additions
Convenience helpers
from- Breaking Changes, diverges tofrom(synchronous) andfromAsync(asynchronous) methods to avoid the creation of unnecessary microtasks.Symbol.toStringTag- AddstoStringsupport which is useful in quickly and easily distinguishing resulting objects.Symbol.hasInstance- Addsinstanceofsupport toOk,Err,SomeandNone.
Spec compliance
Iterator- Provides iterator deserialization by yielding the internal value if the internal value is not anErrorNone.Result.expectErr- An extra method to expect anErrresult.ok- A method to convert fromResult<T, E>toOption<T>.okOr- A method to convert fromOption<T>toResult<T, E>.
May you have a blessed day! ❤️