Releases: sassanh/python-redux
Releases · sassanh/python-redux
v0.22.2
PyPI package: https://pypi.org/project/python-redux/0.22.2
Changes:
- fix: add
__qualname__
,__annotations__
,__module__
,__defaults__
and__kwdefaults__
toAutorun
andWithStore
instances so that they play nice when passed as a function to something assuming they are normal function having these properties.
v0.22.1
PyPI package: https://pypi.org/project/python-redux/0.22.1
Changes:
- fix: add
__name__
toWithStore
instances so that they play nice when passed as a function to something assuming they are functions and have a__name__
attribute - test: add/modify tests to bring back coverage to 100%
v0.22.0
PyPI package: https://pypi.org/project/python-redux/0.22.0
Changes:
- test: make sure pytest exits completely after running async tests
- refactor: in
_wait_for_store_to_finish
, instead of waiting withasyncio.sleep
, run the store event loop when conditions are not satisfied - refactor: directly run
_handle_finish_event
in the store event loop whenFinishEvent
is dispatched, previously it used to be a normalsubscribe_event
, events registered insubscribe_event
run inSideEffectRunnerThread
and it runs them with thetask_runner
, and there is no guaranteetask_runner
runs tasks afterFinishEvent
is dispatched
v0.21.1
PyPI package: https://pypi.org/project/python-redux/0.21.1
Changes:
- refactor: add
WithState
class to be the return value of thestore.with_state
so that it can report correct signature of its__call__
method - chore(docs): add documentation strings for elements defined in
autorun.py
v0.21.0
PyPI package: https://pypi.org/project/python-redux/0.21.0
Changes:
- refactor: add
WithState
class to be the return value of thestore.with_state
so that it can report correct signature of its__call__
method - chore(docs): add documentation strings for elements defined in
autorun.py
v0.20.2
PyPI package: https://pypi.org/project/python-redux/0.20.2
Changes:
- chore(lint): update
ruff
to0.10.0
and fix linting issues, makestore.subscribe
private
v0.20.1
PyPI package: https://pypi.org/project/python-redux/0.20.1
Changes:
- fix: avoid using
asdict
in combine-reducers's reducer as it can get too costly for large dataclasses and may even run into errors
v0.20.0
PyPI package: https://pypi.org/project/python-redux/0.20.0
Changes:
- feat: add
memoization
option toautorun
, default isTrue
, compatible with old behavior, if set toFalse
, calling the function explicitly will always run it regardless of the selector's value - feat: add
with_selector
, as a decorator to run functions with the result of a selector.
v0.19.1
PyPI package: https://pypi.org/project/python-redux/0.19.1
Changes:
- refactor: provide correct signature for the autorun instance based on the function it decorates
- refactor: side effect runners always run the side effect in the event loop provided to them regardless of the return value of the side effect being a coroutine or not, this is because even if the side effect is not a coroutine, it might still use async features internally
v0.18.3
PyPI package: https://pypi.org/project/python-redux/0.18.3
Changes:
- refactor(combine_reducers): add custom payload to
CombineReducerInitAction
andCombineReducerRegisterAction
to allow custom initialization of sub-reducers