Skip to content

Releases: JasperSui/fastapi-injectable

v1.4.6

12 Dec 05:05
0e53ea8

Choose a tag to compare

Changes

v1.4.5

09 Dec 12:14
791e8a9

Choose a tag to compare

Changes

📦 Dependencies

v1.4.4

21 Nov 16:34
6bb3f00

Choose a tag to compare

Changes

📦 Dependencies

v1.4.3

22 Oct 04:47
d53da30

Choose a tag to compare

Changes

v1.4.2

18 Oct 05:32
4393fcc

Choose a tag to compare

FastAPI Injectable 1.4.2

This release enhances async compatibility and modernizes the build infrastructure, with support for Python's free-threaded builds and improved event loop handling.

Key Improvements

New Features

async_get_injected_obj()
Resolves "event loop already running" errors when using dependency injection from within async contexts like Kafka consumers, async callbacks, or other running event loops. Use this instead of get_injected_obj() when already inside an async function:

# Inside an async Kafka consumer or callback
async def process_message(message):
    service = await async_get_injected_obj(get_my_service)
    await service.process(message)

Free-Threaded Python Support
Full support for Python 3.13t and 3.14t free-threaded builds, enabling better performance in CPU-bound parallel workloads with PEP 703 compliance.

Fixes

Python 3.14+ Event Loop Compatibility
Fixed RuntimeError: There is no current event loop in thread by implementing fallback logic that creates new event loops when asyncio.get_event_loop() raises errors in Python 3.14+.

Build & Infrastructure

Migration to uv
Replaced Poetry with uv for faster dependency resolution and build times. Development environment now uses modern PEP 621 format with hatchling backend.

Code Changes

  • feat: add async_get_injected_obj for running event loops (#174) @JasperSui
  • fix(concurrency): add Python 3.14+ event loop compatibility (#175) @JasperSui
  • build: migrate from poetry to uv for dependency management (#176) @JasperSui
  • feat: add support for free-threaded Python builds (3.14t, 3.13t) (#177) @JasperSui
  • bump: from 1.4.1 to 1.4.2 (#178) @JasperSui

Breaking Changes

For Contributors: Development environment setup now requires uv instead of Poetry. Update setup instructions in CONTRIBUTING.md.

Full Changelog: v1.4.1...v1.4.2

v1.4.1

12 Oct 09:02
34fea4c

Choose a tag to compare

Changes

📦 Dependencies

v1.4.0

29 Sep 10:10
8a4ba67

Choose a tag to compare

Changes

📦 Dependencies

v1.3.1

26 Aug 14:15
2247d53

Choose a tag to compare

Changes

v1.3.0

22 Aug 15:34
bb34c96

Choose a tag to compare

Changes

📦 Dependencies

v1.2.0

23 Jul 04:50
57e8a1a

Choose a tag to compare

Changes

📦 Dependencies