Releases: kraken-tech/django-subatomic
Releases · kraken-tech/django-subatomic
v0.2.1
v0.2.0
Added
- Django 6.0 has been added to the test matrix.
- In tests, an error will now be raised when opening a transaction if there are pre-existing unhandled after-commit callbacks. The pre-existing callbacks would previously run when
transactionexits. This helps catch order-of-execution bugs in tests. The error can be silenced by setting theSUBATOMIC_CATCH_UNHANDLED_AFTER_COMMIT_CALLBACKS_IN_TESTSsetting toFalseto facilitate gradual adoption of this stricter rule. - The
transaction,transaction_requiredandtransaction_if_not_alreadydecorators can now be used without parentheses. Fixes #103.
Fixed
- Ensure cleanup actions in
durablealways happen when the wrapped code raises an unexpected error.
Removed
_contextmanager_without_decorator,_NonDecoratorContextManager,NotADecorator. These implementation details were not intended to be a part of our public API.