typeorm-transactional-async-callbacks
Version:
A Transactional Method Decorator for typeorm that uses cls-hooked to handle and propagate transactions between different repositories and service methods. Inpired by Spring Trasnactional Annotation and Sequelize CLS
24 lines (14 loc) • 1.29 kB
Markdown
# 0.2.0
- Feature: add support for using `DataSource` and `EntityManager` with transactional [#2](https://github.com/Aliheym/typeorm-transactional/issues/2)
# 0.3.0
- Feature: add maximum hook handlers options [#13](https://github.com/Aliheym/typeorm-transactional/issues/13)
- Fix: improve checks to support newest TypeORM versions [#15](https://github.com/Aliheym/typeorm-transactional/issues/9)
# 0.4.0
- Feature: add support for TypeORM custom and extend repositories [#19](https://github.com/Aliheym/typeorm-transactional/issues/19). Thanks this PR [#14](https://github.com/Aliheym/typeorm-transactional/pull/14).
- Chore: keep comments/docs [#17](https://github.com/Aliheym/typeorm-transactional/issues/17). Thanks this PR [#18](https://github.com/Aliheym/typeorm-transactional/pull/18).
# 0.4.1
- Feature: wrapInTransaction infer to the original function. Thanks this PR [#21](https://github.com/Aliheym/typeorm-transactional/pull/21).
# 0.5.0
- Feature: add [Async Local Storage](https://nodejs.org/api/async_hooks.html#class-asynclocalstorage) support ([#39](https://github.com/Aliheym/typeorm-transactional/pull/39)).
- Refactor: remove unnecessary patch ([#29](https://github.com/Aliheym/typeorm-transactional/pull/29)).
- Refactor: improve the tests for all use cases.