Skip to content

Releases: DickerDackel/pgcooldown

v0.2.10

31 May 08:25
Compare
Choose a tag to compare

v0.2.10

  • typehints

v0.2.9

24 Jan 10:09
Compare
Choose a tag to compare

v0.2.9

  • Pause can be passed to init, useful repr
  • Note in docs, that Cooldown.reset() also unpauses.
  • Update README.md

v0.2.8

16 Sep 10:38
Compare
Choose a tag to compare

v0.2.8

Breaking change! Properties gone!

I was aware, that there is a slight overhead when using properties, but
during A benchmark, that difference turned out to be 17%.

Since this package is still marked as Alpha and probably nobody is using
it besides me, the interface is now changed from properties to functions
in all places.

Tests needed to be adapted, but run clean now (and also more exact using
pytest.approx instead of round.

The following properties now need to be called as functions:

    cold                -> cold()
    cold.setter         -> set_cold(bool)
    hot                 -> hot()
    temperature         -> temperature()
    temperature.setter  -> set_to(val)
    remaining           -> remaining()
    remaining.setter    -> set_to(val)
    normalized          -> normalized()
    v                   -> removed, just use instance()

As stated initially, this is 17% less overhead when testing for cold,
etc. Performance of LerpThing increased from 1.3mio calls to 1.8mio due
to this change.

Sorry for any inconvenience, if anybody is using this, but that bad
design decision needed to be fixed if any more people would use this.

v0.2.7

30 Aug 21:45
Compare
Choose a tag to compare

v0.2.7

v0.2.6.1

21 Aug 15:43
Compare
Choose a tag to compare

v0.2.6.1

  • Forgot Updated changelog in release

v0.2.6

  • CronD added
  • Cooldown has call now, returns remaining
  • v0.2.5.1
  • fixed URL definition in pyproject.toml

v0.2.5

13 Aug 08:49
Compare
Choose a tag to compare

v0.2.5

  • Convenience wrapper LerpThing.finished
  • Doc changes
  • LerpThing always returns vt0 when duration is 0
  • MASSIVE speedup (>50%) in LerpThing

v0.2.4.1

10 Aug 06:56
Compare
Choose a tag to compare

No code changes. This is just a repackaging since the v2.4.a created a pre-release on pypi.
Released here only so github and pypi are in sync.

v0.2.4.1

  • Fixing packaging mistake on pypi

# v0.2.4a

  • interval was a shitty name. duration now.

v0.2.4

09 Aug 15:32
Compare
Choose a tag to compare

v0.2.4

  • Added LerpThing
  • reset(wrap=True), remaining vs. temperature
  • Fixed b0rken Cooldown.remaining setter

v0.2.3

03 Aug 22:20
Compare
Choose a tag to compare

v0.2.3 - Bugfix

  • Fixed b0rken Cooldown.remaining setter
  • Tracking changes now

v0.2.2

03 Aug 13:02
Compare
Choose a tag to compare

v0.2.2

  • bump current dev branch
  • Tests + Clarified documentation of Cooldown(cooldown)
  • Added basic operators and type casts.
  • Reintroduced chaining
  • Merge branch 'main' of https://github.com/dickerdackel/pgcooldown
  • Add Install section
  • Update README.md