Skip to content

Releases: modern-python/that-depends

3.2.0

02 May 09:57
5c9a7a7

Choose a tag to compare

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 v

For further information, please consult the documentation

Full Changelog: 3.1.0...3.2.0

3.1.0

24 Apr 17:29

Choose a tag to compare

What's Changed

  • Added fastapi integration with route class. by @alexanderlazarev0 in #185

Full Changelog: 3.0.1...3.1.0

3.0.1

16 Apr 11:56

Choose a tag to compare

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

14 Apr 10:17
96c816f

Choose a tag to compare

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() and override() functionality to allow propagation when relevant.
  • Changes to behavior of @inject regarding 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

Full Changelog: 2.2.0...3.0.0

3.0.0-alpha.2

11 Apr 09:54
96c816f

Choose a tag to compare

3.0.0-alpha.2 Pre-release
Pre-release

What's Changed

  • V3 by @alexanderlazarev0 in #174

Full Changelog: 3.0.0-alpha.1...3.0.0-alpha.2

3.0.0-alpha.1

09 Apr 20:46

Choose a tag to compare

3.0.0-alpha.1 Pre-release
Pre-release

3.0.0-alpha

08 Apr 10:59

Choose a tag to compare

3.0.0-alpha Pre-release
Pre-release

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

Full Changelog: 2.2.0...3.0.0-alpha

2.2.0

18 Feb 19:35
271ae3c

Choose a tag to compare

What's Changed

  • Refactor BaseContainer and BaseContainerMeta by @alexanderlazarev0 in #163
  • Allow Selectors to use other Providers and strings as selectors by @rmasters in #164

New Contributors

Full Changelog: 2.1.1...2.2.0

2.1.1

14 Feb 06:48
c6a3393

Choose a tag to compare

What's Changed

  • Bugfix: container context wrapper by @alexanderlazarev0 in #162

Full Changelog: 2.1.0...2.1.1

2.1.0

14 Feb 05:42
beaf00c

Choose a tag to compare

What's Changed

  • Fixed link to migration guide in announcement by @alexanderlazarev0 in #157
  • README adjustment and minor documentation fixes. by @alexanderlazarev0 in #160
  • Sync tear down by @alexanderlazarev0 in #161

Full Changelog: 2.0.0...2.1.0