Skip to content

Releases: syrusakbary/promise

v2.3.0

18 Dec 07:35
Compare
Choose a tag to compare

Changelog

  • Distribute type module maker for mypy #66
  • Fix memory leak on dynamically created types #76
  • Make Dataloader keep cache object #73
  • Fix Python 3.7 deprecation warnings #79
  • Make Promise and Dataloader thread-safe #81

v2.2.0

04 Oct 21:57
e2dc8f0
Compare
Choose a tag to compare

Changelog

  • Fixed compatibility with Python 3.5+
  • Fixed iscoroutine returning True for generators (by using iscoroutine from inspect instead of asyncio)

2.2.0rc1

20 Jul 22:51
d0b2b38
Compare
Choose a tag to compare

2.2.0 - Release candidate 1
(changelog to come soon)

v2.0.1

26 Apr 03:35
Compare
Choose a tag to compare

Changelog

  • Fixed await blocked by context exit 26488d5 (thanks to @schrockn for the feedback!)
  • Fixed Promise.resolve(coroutine) returning a Task instead of a Promise code sample

v2.0.0

19 Apr 05:35
Compare
Choose a tag to compare

Changelog

This is a completely rewritten version of Promise in python, based in the ultra-performant and low-memory bluebird.js promise implementation.

  • New dataloader implementation
  • Promise.resolve now acts the same as Promise.cast
  • Promise.reject is now a static method (instead of a instance one, like in previous versions)
  • New Promise.all fast implementation.
  • promise.get raised exceptions now include traceback.
  • Custom schedulers for Promise resolution.

Deprecation

  • Promise.promisify is now a function wrapper, that executes the function, but returning a Promise. Calling Promise.promisify on a static value will be deprecated in next versions.
  • promise.fulfill is renamed to promise.do_fulfill
  • promise.rejected/promise.reject is renamed to promise.do_reject

v1.0.1

02 Dec 05:31
Compare
Choose a tag to compare

Changelog

  • is_thenable now returns True for coroutines. 8b0d5da

v1.0 - Static type Promises

15 Oct 23:08
Compare
Choose a tag to compare

Added static type checking (using mypy) tests and increased coverage to 100%.

v0.4.0

01 Jun 05:09
Compare
Choose a tag to compare

First version of promise.