returns v0.11.0 Release Notes

Release Date: 2019-08-29 // over 4 years ago
  • returns@0.11

    ๐Ÿ”‹ Features

    • ๐Ÿ’ฅ Breaking : now pipe() does not require argument to be the first value,
      instead it is required to use: pipe(f1, f2, f3, f4)(value)
    • ๐Ÿ’ฅ Breaking : dropped everything from returns/ __init__.py,
      because we now have quite a lot of stuff
    • ๐Ÿ’ฅ Breaking : dropped support of zero argument functions for Nothing.fix
    • ๐Ÿ’ฅ Breaking : dropped support of zero argument functions for Nothing.rescue
    • Maybe now has .failure() to match the same API as Result
    • โž• Adds identity function
    • โž• Adds tap function
    • Now pipe allows to pipe 8 steps
    • Adds coalesce_result and coalesce_maybe coverters

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixes that code inside .fix and .rescue of Maybe might be called twice

    Misc

    • โœ… Now all methods have doctests
    • Updates docs about Success and _Success, Failure and _Failure
    • โšก๏ธ Updates docs about @pipeline
    • โœ… Typechecks async functions and decorators inside typesafety/ tests