Skip to content

Conversation

@xelandernt
Copy link
Collaborator

No description provided.

@xelandernt xelandernt linked an issue Oct 31, 2025 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ions/faststream/test_faststream_di_pass_message.py 100.00% <100.00%> (ø)
that_depends/integrations/faststream.py 100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@xelandernt xelandernt requested a review from Copilot October 31, 2025 09:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for faststream v0.6.0+ while maintaining backward compatibility with earlier versions. The implementation uses runtime version detection to conditionally import and define the appropriate middleware class.

  • Removed the faststream<0.6.0 version constraint to support both old and new versions
  • Implemented version-specific implementations of DIContextMiddleware with conditional imports
  • Updated CI workflow to test against both faststream version ranges

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
that_depends/integrations/faststream.py Added version detection logic and two separate implementations of DIContextMiddleware for faststream <0.6.0 (deprecated) and >=0.6.0 (new API)
tests/integrations/faststream/test_faststream_di_pass_message.py Added conditional imports and broker initialization based on faststream version
pyproject.toml Removed faststream version constraint to allow any version
.github/workflows/ci.yml Added matrix testing for both faststream version ranges

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@xelandernt xelandernt self-assigned this Oct 31, 2025
@xelandernt xelandernt added the enhancement New feature or request label Oct 31, 2025
@xelandernt xelandernt merged commit 5b45296 into main Nov 4, 2025
12 checks passed
@xelandernt xelandernt deleted the 202-update-di-faststream branch November 8, 2025 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update DIContextMiddleware for faststream v0.6

2 participants