0.3.0 - Better static checking and chaining
[0.3.0] - 2023-06-06
Shoutout to @iMacTia for putting in most the work to make this release possible 🙏🏻
Added
- Add
.blank
to create aTyped::Success
with anil
payload or aTyped::Failure
with anil
error. - Add
#and_then
toTyped::Result
to allow chaining of results. See #14 for more details.
Changed
- Breaking Make
Typed::Success#Error
andTyped::Failure#Payload
fixed toT.noreturn
. This allows to specify the other type_member only when using generics. See #8 for more details - Breaking Remove
T.nilable
fromPayload
andError
parameters inTyped::Success.new
andTyped::Failure.new
. Nilability will now need to be specified in the generic type. This also means that you'll need to use the new.blank
instead of.new
when you want to create aTyped::Success
orTyped::Failure
with anil
payload or error. - Breaking Change
Typed::Success
andTyped::Failure
initialize arguments from keyword to positional. - Improve
Typed::Success.new
andTyped::Failure.new
to make them generic methods and automatically infer the type of thepayload
anderror
arguments. See #8 for more details