Releases: DickerDackel/pgcooldown
v0.2.10
v0.2.9
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
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
v0.2.7
- README is mostly the docstring of the main class now
- Merge branch 'main' of https://github.com/dickerdackel/pgcooldown
- Module docs added
- Forgot Updated changelog in release
v0.2.6.1
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
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
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
v0.2.4
- Added LerpThing
- reset(wrap=True), remaining vs. temperature
- Fixed b0rken Cooldown.remaining setter
v0.2.3
v0.2.3 - Bugfix
- Fixed b0rken Cooldown.remaining setter
- Tracking changes now
v0.2.2
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