All Versions
23
Latest Version
Avg Release Cycle
57 days
Latest Release
-

Changelog History
Page 2

  • v0.11.0 Changes

    August 29, 2019

    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
  • v0.10.0 Changes

    August 18, 2019

    twitter

    ๐Ÿ”‹ Features

    • ๐Ÿ’ฅ Breaking : python>=3.7,<=3.7.2 are not supported anymore,
      because of a bug inside typing module
    • ๐Ÿ’ฅ Breaking : Now bind does not change the type of an error
    • ๐Ÿ’ฅ Breaking : Now rescue does not change the type of a value
    • ๐Ÿ’ฅ Breaking : Renames map_failure to alt
    • โž• Adds box() function with the ability
      to box function for direct container composition like:
      a -> Container[b] to Container[a] -> Container[b]
    • โž• Adds IO.lift() function to lift a -> a to IO[a] -> IO[a]
    • โž• Adds pipe() function to pipeline.py
    • Adds __hash__ () magic methods to all containers

    ๐Ÿ›  Bugfixes

    • ๐Ÿ”„ Changes Any to NoReturn in Success and Failure
    • Now all type parameters in Result, Maybe, and IO are covariant

    Misc

    • ๐Ÿ“„ Massive docs rewrite
    • โšก๏ธ Updates mypy version
    • ๐Ÿ’… Updates wemake-python-styleguide and introduces nitpick
    • โšก๏ธ Updates pytest-plugin-mypy, all tests now use yml
  • v0.9.0 Changes

    July 01, 2019

    ๐Ÿ”‹ Features

    • Provides a bunch of primitive interfaces to write your own containers
    • โž• Adds .map_failure() method
    • โž• Adds flatten() function to join nested containers

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixes type of Maybe.fix and Maybe.rescue to work with both lambda: 1 and lambda _: 1

    Misc

    • ๐Ÿ‘Œ Improves README
  • v0.8.0 Changes

    June 17, 2019

    ๐Ÿ”‹ Features

    • Reintroduces the Maybe container, typed!
    • Introduces converters from one type to another
    • โž• Adds mypy plugin to type decorators
    • Complete rewrite of Result types
    • Partial API change, now Success and Failure are not types, but functions
    • ๐Ÿ†• New internal types introduced: FixableContainer and ValueUnwrapContainer

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixes issue when you could return IO container from Result.bind
    • ๐Ÿ›  Fixes @pipeline return type

    Misc

    • Reapplied all types to .py files
    • ๐Ÿ‘Œ Improved docs about IO and Container concept
    • โž• Adds docs about container composition
    • ๐Ÿšš Moves from Alpha to Beta
  • v0.7.0 Changes

    June 11, 2019

    ๐Ÿ”‹ Features

    • โž• Adds IO container
    • โž• Adds unsafe module with unsafe functions
    • ๐Ÿ”„ Changes how functions are located inside the project

    ๐Ÿ›  Bugfixes

    • ๐Ÿ›  Fixes container type in @pipeline
    • Now is_successful is public
    • Now raise_exception is public

    Misc

    • ๐Ÿ”„ Changes how str() function works for container types
    • Total rename to "container" in the source code
  • v0.6.0 Changes

    June 07, 2019

    ๐Ÿ”‹ Features

    • ๐Ÿ‘ safe and pipeline now supports asyncio
    • is_successful now returns Literal types if possible
  • v0.5.0 Changes

    June 01, 2019

    ๐Ÿ”‹ Features

    • โž• Adds compose helper function
    • โž• Adds public API to import returns
    • โž• Adds raise_exception helper function
    • โž• Adds full traceback to .unwrap()

    Misc

    • โšก๏ธ Updates multiple dev-dependencies, including mypy
    • ๐Ÿ“„ Now search in the docs is working again
    • Relicenses this project to BSD
    • ๐Ÿ›  Fixes copyright notice in the docs
  • v0.4.0 Changes

    February 04, 2019

    ๐Ÿ”‹ Features

    • ๐Ÿšš Moves all types to .pyi files
    • ๐Ÿ“‡ Renames all classes according to new naming pattern
    • HUGE improvement of types
    • ๐Ÿ“‡ Renames fmap to map
    • ๐Ÿšš Renames do_notation to pipeline, moves it to functions.py
    • ๐Ÿ“‡ Renames ebind to rescue
    • ๐Ÿ“‡ Renames efmap to fix
    • ๐Ÿ“‡ Renames container to Container
    • โœ‚ Removes Maybe container, since typing does not have NonNullable type
  • v0.3.1 Changes

    ๐Ÿ›  Bugfixes

    • โž• Adds py.typed file to be PEP561 compatible
  • v0.3.0 Changes

    ๐Ÿšš The project is renamed to returns and moved to dry-python org.

    ๐Ÿ”‹ Features

    • โž• Adds .pyi files for all modules, to enable mypy support for 3rd party users