Releases: modern-python/that-depends
Releases · modern-python/that-depends
3.2.0
What's Changed
- Support injection for generators. by @alexanderlazarev0 in #187
Injection into generator functions is now supported:
@inject
async def my_generator(v: float = Provide[Container.factory]) -> typing.AsyncGenerator[float, None]:
yield vFor further information, please consult the documentation
Full Changelog: 3.1.0...3.2.0
3.1.0
What's Changed
- Added fastapi integration with route class. by @alexanderlazarev0 in #185
Full Changelog: 3.0.1...3.1.0
3.0.1
What's Changed
- Bugfix: Correct context initialization for parents of non-ContextResource providers when using the inject wrapper.
Full Changelog: 3.0.0...3.0.1
3.0.0
3.0.0 Release
For information about all the new features and changes, please refer to the documentation.
If migrating, please refer to the migration guide.
What's Changed
- Cleaned up and reworked the API (primarily name changes that are more consistent)
- Implemented a bidirectional dependency graph under the hood.
- Extended
tear_down()andoverride()functionality to allow propagation when relevant. - Changes to behavior of
@injectregarding scopes (comes with significant performance improvements). - Changes to
container_context()behavior (now requires you to be more explicit). - Minor utility improvements for
global_context.
New Contributors
- @libstech-auto made their first contribution in #180
Full Changelog: 2.2.0...3.0.0
3.0.0-alpha.2
3.0.0-alpha.1
Full Changelog: 3.0.0-alpha...3.0.0-alpha.1
3.0.0-alpha
What's Changed
- Addressed some minor issues with selector. by @alexanderlazarev0 in #165
- Graph by @alexanderlazarev0 in #169
- Changed override to sync_override. by @alexanderlazarev0 in #172
- Renamed from sync_* to *_sync. by @alexanderlazarev0 in #176
- Removed support for container_context(). by @alexanderlazarev0 in #175
- 🏆 Add a Recommendation Badge from libs.tech by @libstech-auto in #180
- Fetch context item by type by @alexanderlazarev0 in #182
- Inject only enters scope for relevant providers. by @alexanderlazarev0 in #183
New Contributors
- @libstech-auto made their first contribution in #180
Full Changelog: 2.2.0...3.0.0-alpha