Releases: reagento/dishka
Releases · reagento/dishka
1.7.2
What's Changed
Fixes:
- Fix generating name for Callable, escaping in mermaid by @Tishka17 in #559
- fix: correct FastStream 0.6 usage with installed FastAPI by @Lancetnik in #563
Internal fixes:
- remove incorrect and unused import by @chirizxc in #555
- some pep8 and remove shadowing unused import by @chirizxc in #556
Full Changelog: 1.7.1...1.7.2
1.7.1
What's Changed
- hotfix: backward compatibility of aiogram integration by @IvanKirpichnikov in #554
Full Changelog: 1.7.0...1.7.1
1.7.0
What's Changed
Core
- fix: special case for UnionType in make factory, raise NotAFactoryError by @ApostolFet in #509
- bugfix: #506 use types.get_origin_bases in WithParents by @IvanKirpichnikov in #510
- Fix processing concrete generics in decorator by @Tishka17 in #512
- Set scope in decorator by @Tishka17 in #514
- feat: allow to set scope in wrap_injection by @gurobokum in #529
Integrations
- Fix/flask integration teardown container check by @BroFromSpace in #476
- fix(taskiq integration): preserve function type in
injectdecorator by @ightingale in #502 - fix(litestar): export
DishkaRouterin__all__by @Kolanar in #515 - Fix annotation in aiogram integration by @loRes228 in #517
- Fix typing aiogram dialog integration by @IvanKirpichnikov in #523
- bugfix: fix aiogd inject type. Replace typehint DialogManager to TypeVar with bound by @IvanKirpichnikov in #526
- feat: FastStream 0.6 support by @Lancetnik in #491
- reexport FromDishka and export const for arq by @Tishka17 in #542
- Add
finalize_containerto setup_dishka in aiohttp by @Fatal1ty in #532 - Test finalization of container with aiohttp app by @Tishka17 in #552
- feature: add custom inject for auto inject by @IvanKirpichnikov in #528
Docs and examples
- Docs on inline component declaraton in return type by @Tapeline in #473
- add full code into quickstart by @lubaskinc0de in #475
- Fix spelling errors docs/integrations/fastapi.rst by @vfaddey in #477
- Delete an obsolete word in components.rst by @Tapeline in #524
- Update concepts.rst by @egorzh01 in #546
- fix typos by @chirizxc in #547
Internal changes
- chore: remove unused import by @chirizxc in #472
- chore: sort imports, remove unused imports by @chirizxc in #474
- chore: pep8 by @chirizxc in #478
- Fix code smells found by sonar by @Tishka17 in #479
- fix: typo in filename by @chirizxc in #471
- chore: bump dev dependencies by @chirizxc in #486
- fix: SonarQube issues by @chirizxc in #487
- chore(ruff): override Python version to 3.12 for files using PEP 695 syntax by @chirizxc in #489
- chore(deps): bump py-cov-action/python-coverage-comment-action from 3.32 to 3.34 by @dependabot[bot] in #493
- chore: remove
include-package-databy @chirizxc in #494 - chore: bump uv by @chirizxc in #504
- remove unused newline by @chirizxc in #518
testscode cleanup by @chirizxc in #519- fix
DeprecationWarningby @chirizxc in #522 - Update .ruff.toml by @securar in #531
- chore(deps): bump actions/download-artifact from 4.3.0 to 5.0.0 by @dependabot[bot] in #537
- chore(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #535
- chore(deps): bump py-cov-action/python-coverage-comment-action from 3.34 to 3.37 by @dependabot[bot] in #536
- ci: add trigger for new issues by @Sehat1137 in #538
- ci: bump telegram-notifier v1.2.1 -> v1.2.3 by @Sehat1137 in #540
- 3.14.rc2 by @Tishka17 in #507
- bump dev dependencies by @chirizxc in #548
- delete Makefile and make.bat by @chirizxc in #551
New Contributors
- @vfaddey made their first contribution in #477
- @BroFromSpace made their first contribution in #476
- @ightingale made their first contribution in #502
- @Kolanar made their first contribution in #515
- @loRes228 made their first contribution in #517
- @securar made their first contribution in #531
- @egorzh01 made their first contribution in #546
- @Fatal1ty made their first contribution in #532
Full Changelog: 1.6.0...1.7.0
1.6.0
What's Changed
Core
- Defer scopes processing to handle overriding properly by @Tishka17 in #436
- automatic context provider by @Tishka17 in #438
- Fix overrideing from_context by @Tishka17 in #468
- More smooth graph in errors by @Tishka17 in #446
- Fix AttributeError when make factory for Union[...], Final[...] and etc. by @ApostolFet in #448
- Add literal args type checking. by @skv0zsneg in #439
- Add suggestion for more abstract and concrete dependencies in NoFactoryError by @ApostolFet in #431
- fix WithParents by @lubaskinc0de in #463
Integrations
- feat: add DishkaRouter for Litestar by @ocbunknown in #427
- feat: allow to extend container context on calling injected func by @gurobokum in #452
Docs and examples
- new contributing rules by @Tishka17 in #441
- Add clean examples to docs by @Tapeline in #449
- Errors doc by @Tishka17 in #465
- Fix grammar, change phrasing to be cleaner and easier to percieve by @Tapeline in #445
- Add mypy to contributing and add files to the mypy.ini by @ApostolFet in #432
- fix: typo in contributing by @ApostolFet in #433
- Fix header formatting in faststream by @Tishka17 in #442
- feat: corrected list layout, typos, brought the highlighting to a unified look, removed unnecessary spaces. by @Peopl3s in #444
- docs: fix typo by @monosans in #451
Internal changes
- chore: bump dev requirements by @chirizxc in #454
- Enable coverage report and dependabot by @Tishka17 in #458
- fix dependencies on cov pr by @Tishka17 in #462
- chore(deps): bump py-cov-action/python-coverage-comment-action from 3.30 to 3.32 by @dependabot in #461
- chore(deps): bump actions/download-artifact from 4.2.1 to 4.3.0 by @dependabot in #460
- chore(deps): bump astral-sh/setup-uv from 5 to 6 by @dependabot in #459
New Contributors
- @Peopl3s made their first contribution in #444
- @monosans made their first contribution in #451
- @skv0zsneg made their first contribution in #439
- @ocbunknown made their first contribution in #427
- @gurobokum made their first contribution in #452
Full Changelog: 1.5.3...1.6.0
1.5.3
What's Changed
Fixes
- fix: resolve
WithParentsgeneric dependency conflicts in PEP 695 by @chirizxc in #421 - 'TaskiqProvider' is not declared in all by @dumpler in #428
- forbid Protocol in dependency source by @Tapeline in #426
- added handling of TypeAlies in container by @MaximGit1 in #424
Doc
- docs: fix typo by @Sehat1137 in #418
Internal changes
Full Changelog: 1.5.2...1.5.3
1.5.2
What's Changed
- chore: improve code readability and some pep8 adjustments by @chirizxc in #410
- Fix Iterable TypeAliasType by @dumpler in #413
- docs: Extend faststream integration by @Sehat1137 in #415
New Contributors
Full Changelog: 1.5.1...1.5.2
1.5.1
1.5.0
What's Changed
Core
- improve wrap_injection by @ApostolFet in #320
- Add parameters in the right order by @ApostolFet in #321
- Fix resolving type[typevar] if generic if partial by @Tishka17 in #330
- fix
provide_all: wrongprovides=value by @K1rL3s in #345 - Fix checking self by @Tishka17 in #348 #371
- Add scope property to container by @spacemanspiff2007 in #364
- Fix typehints after inject as they are already solved by @Tishka17 in #373
- feat: add link to original function by @Sehat1137 in #390
- fix substituting kwargs with some names by @Tishka17 in #391
- Add manage_scope in wrap_injecton and use it for celery integration by @ApostolFet in #388
- Log scope in Container.get request, simplify exception dependencies by @Tishka17 in #393
- fix handling components in decorator by @Tishka17 in #405
- Properly handle typing.TypeAliasType by @vesalius512 in #398
- Fix checking if typealias shold be unpacked by @Tishka17 in #406
- Validation in InjectedFuncType: raise error for async container in sync context by @ApostolFet in #408
Integrations
New
- Celery integration by @ApostolFet in #315 #344
- Add Quart integration link by @hrimov in #346
- RQ link by @Tishka17 in #358
Updates
- Taskiq: Fix issue #322 and patch
__module__in wrap_injection by @ApostolFet in #324 - Litestar: websockets support by @andiserg in #293
- GRPC: Check non-gen stream method on grpc.aio by @Tishka17 in #366
- FastStream: Add ability to pass only broker. Fix types for
appparameter. by @sheldygg in #383 - FastStream: refactor: correct FastStream integration types, deprecate 0.4, support FastStream 0.6 (partial) by @Lancetnik in #386
- Aiogram: Passing data from middlewares via AiogramProvider by @K1rL3s in #341
- Aiogram: Inject aiogram handlers once by @Olegt0rr in #336
- Aiogram: Handle nested routers in aiogram integration by @ZeN220 in #400
- FastAPI: Support sync views with async container in FastAPI by @Tishka17 in #394
Docs and examples
- add lifespan to FastAPI by @Vladyslav49 in #323
- Docs: close container on aiogram dispatcher shutdown by @Olegt0rr in #338
- Update faststream.rst by @MaximGit1 in #343
- docs: add copybutton by @chirizxc in #357
- DOCS: fix typos/grammar in docs on alternatives by @ivanovmg in #361
- clairify priority by @spacemanspiff2007 in #365
- docs(alternatives.rst): small typo by @giorka in #367
- docs: remove unused import by @chirizxc in #368
- Fix typo in scopes.rst: exist -> exit by @ivanovmg in #374
- docs: fix typo, update contributing info by @chirizxc in #387
- Simplify intro, fix some style in di by @Tishka17 in #392
- Updated provider documentation page by @MaximGit1 in #399
- Add info about manage_scope in add new integration by @ApostolFet in #396
Internal changes
- CI: add python 3.13 in tests by @chirizxc in #328
- add missing
integrations-basetest tonoxfileby @chirizxc in #334 - bump dev requirements by @chirizxc in #337
- Add full aiogram test coverage by @Olegt0rr in #339
- Enable mypy strict mode by @sobolevn in #370
- Move provider related thing together by @Tishka17 in #377
- Refactoring (exceptions, ruff rules) by @Tapeline in #362
- Tests/coverage up by @close2code-palm in #384
- tests: enable commands output for
session.install(...)by @chirizxc in #389
New Contributors
- @Vladyslav49 made their first contribution in #323
- @K1rL3s made their first contribution in #341
- @MaximGit1 made their first contribution in #343
- @ivanovmg made their first contribution in #361
- @spacemanspiff2007 made their first contribution in #365
- @giorka made their first contribution in #367
- @hrimov made their first contribution in #346
- @Tapeline made their first contribution in #362
- @close2code-palm made their first contribution in #384
- @sheldygg made their first contribution in #383
- @Sehat1137 made their first contribution in #390
- @ZeN220 made their first contribution in #400
- @vesalius512 made their first contribution in #398
Full Changelog: 1.4.2...1.5.0
1.4.2
1.4.1
What's Changed
Bugfixes
- use fallback type[T] only if not overridden by @Tishka17 in #297
- Fix ForwardRef used in AnyOf by @Tishka17 in #291
- unpack provide multiple source by @Tishka17 in #299
- fix typhint in aiogram dialog integration by @IvanKirpichnikov in #303
Internal changes
Doc and examples
- Fix typos in README and quickstart by @Eclips4 in #286
- [docs] fix typos by @chirizxc in #288
- Fix docs typos by @Nnenty in #302
- Run code from README in tests by @Eclips4 in #300
- Rename from uow to commiter by @PlzTrustMe in #301
- fix documentation "setup_dishka" by @iNerV in #306
- fix documentation typo by @iNerV in #307
- Improve language clarity and fix typos in README by @ivan-borovets in #305 #309
- Align documentation text with README, fixing errors along the way by @ivan-borovets in #308
New Contributors
- @Eclips4 made their first contribution in #286
- @chirizxc made their first contribution in #288
- @Nnenty made their first contribution in #302
- @PlzTrustMe made their first contribution in #301
- @iNerV made their first contribution in #306
- @ivan-borovets made their first contribution in #305
Full Changelog: 1.4.0...1.4.1