returns v0.13.0 Release Notes
Release Date: 2020-02-02 // about 4 years ago-
Announcing article: https://sobolevn.me/2020/02/typed-functional-dependency-injection
๐ Features
๐ฅ Breaking : renames
join
toflatten
, sorry!๐ฅ Breaking : renames
box
tobind
and moves it toreturns.pointfree
๐ฅ Breaking : removes
Maybe.rescue
andMaybe.fix
methods๐ฅ Breaking : renames
io_squash
tosquash_io
๐ and moves it toreturns.converters
๐ฅ Breaking : moves all interfaces from
returns.primitives.container
to
returns.primitives.interfaces
โ Adds
rescue
pointfree functionโ Adds
ResultE
alias forResult[..., Exception]
โ Adds
RequiresContext
container andContext
helper classโ Adds
RequiresContext
support forbind
pointfree functionโ Adds
RequiresContext
support forflatten
functionโ Adds
RequiresContextResult
containerโ Adds
RequiresContextResultE
aliasโ Adds
ReaderResult
andReaderResultE
aliases
๐ป forRequiresContextResult[..., ..., Exception]
โ Adds
RequiresContextResult
support forbind
andrescue
โ Adds
RequiresContextResult
support forflatten
โ Adds
IOResult
helper to work better withIO[Result[a, b]]
โ Adds
IOResultE
alias forIOResult[a, Exception]
โ Adds
IOResult
support forbind
โ Adds
IOResult
support forflatten
โ Adds
IOResult
support for@pipeline
โ Adds
IOResult
support forcoalesce
โ Adds
IOResult
support foris_successful
โ Adds
RequiresContextIOResult
containerโ Adds
RequiresContextIOResultE
aliasโ Adds
ReaderIOResult
andReaderIOResultE
aliases
๐ป forRequiresContextIOResult[..., ..., Exception]
โ Adds
RequiresContextIOResult
support forbind
andrescue
โ Adds
RequiresContextIOResult
support forflatten
โ Adds
Result.lift
,Maybe.lift
,RequiresContext.lift
,
andRequiresContextResult.lift
functions in addition toIO.lift
โ Adds
Immutable
primitive typeAdds
Unitable
protocol and.from_success()
and.from_failure()
methods for allResult
realted classesโ Adds
Instanceable
protocol and.from_value()
method
forIO
andRequiresContext
โ Adds
flow
function, which is similar topipe
โ Adds
swap
coverter forResult
andIOResult
โ Adds
squash_context
function to squashRequiresContext
similar toIO
๐ Bugfixes
- Now
Success
andFailure
(bothio
and pure) returnAny
and notNoReturn
- ๐ Fixes how
flatten
works, also adds more tests and docs aboutFailure
case - ๐ Fixes
Unwrappable
type being parametrized with only oneTypeVar
- ๐ Changes
Success
andFailure
to returnAny
instead ofNoReturn
Misc
- โก๏ธ Updates
poetry
version intravis
- ๐ Imporves
pipe
docs withlambda
andGeneric
problem - ๐ Improves docs in several places
- โ Now examples in docs tries to be docstests where possible
- ๐ Changes how tests are checked with
mypy
in CI
- Now