Skip to content

Releases: suned/pfun

0.13.2

20 Nov 20:33
Compare
Choose a tag to compare

Features

0.13.0

24 Oct 20:07
1554434
Compare
Choose a tag to compare

Features:

  • More methods for combining effects asynchronously (#93)
  • Effect.race method which allows racing effects against each other asynchronously (#94)
  • Effect.timeout method which allows timing out effects (#94)
  • Effect.retry and Effect.repeat which allows retrying or repeating effects according to a schedule (#94)
  • pfun.schedule for building schedules (#94)
  • pfun.random for random number generation as an effect (#94)
  • pfun.clock for getting system time and sleeping as an effect (#94)
  • More flexible pfun.Intersection type that enables type inference (#94)
  • pfun.DefaultModules module provider for pfun provided live modules (Files, Clock, Random, Console)

Fixes

  • Support variadic arguments to pfun.effect.combine mypy plugin hook (#92)
  • Improve typing of pfun.maybe (#91)

Other

  • Rename sequence to gather(#95)
  • Rename pfun.ref to pfun.state (#96)

0.12.3

10 Aug 08:35
e4bc968
Compare
Choose a tag to compare

Features

  • pfun now supports lenses through pfun.lens (#86)

0.12.2

05 Jul 07:20
986807c
Compare
Choose a tag to compare

Fixes

  • Process and thread pool executors of pfun.effect are now initialized lazily to support running on AWS Lambda (#85)

0.12.1

12 May 19:13
Compare
Choose a tag to compare
  • Hypothesis strategies are now published in the module pfun.hypothesis_strategies
  • Adds curried, type-safe operators in the pfun.operator module

0.12.0

03 Apr 20:10
ef6ec49
Compare
Choose a tag to compare

Features

  • pfun.effect is now implemented in Cython, which greatly improves trampoline interpretation speed
  • pfun.maybe and pfun.either are now both tagged unions implemented through __bool__, which allows you to narrow the type using if statements instead of the more verbose isinstance

Fixes

0.11.5

03 Feb 15:00
Compare
Choose a tag to compare
  • Ensure compatibility with MyPy 0.800 (@hugosenari )
  • Fix issue where effect.Resource would not properly close resources

0.11.4

02 Feb 12:49
Compare
Choose a tag to compare
  • Fix issue with pfun.files.read_byte with missing r parameter to open (@thomhickey )

0.11.3

22 Aug 21:54
Compare
Choose a tag to compare
  • Allow pfun.effect.catch to accept async functions

0.11.2

19 Aug 13:36
Compare
Choose a tag to compare
  • Improve speed of pfun.aio_trampoline.sequence (and thereby also of pfun.effect)