Releases: reagento/dishka
Releases · reagento/dishka
1.10.1
1.10.0
What's Changed
Core
- fix: resolve
RecursionErrorwhen activator is in same provider as its marker (#689) by @fadedDexofan in #691 - Static evaluation of activators by @Tishka17 in #696
- feature: allow static evaluation of factories by @Stefanqn in #708
- Do not create additional factory for alias by @Tishka17 in #711 #712
- Replace self in types by @Tishka17 in #709
Integrations
- Update jobify GitHub link in documentation by @C3EQUALZz in #695
- Add ag2 integration link to documentation by @C3EQUALZz in #710
Internal changes
- chore(deps): bump actions/download-artifact from 8.0.0 to 8.0.1 by @dependabot[bot] in #703
- chore(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 by @dependabot[bot] in #702
New Contributors
Full Changelog: 1.9.1...1.10.0
1.9.1
What's Changed
- Fix race condition: change cache key value by @deadlovelll in #688
New Contributors
- @deadlovelll made their first contribution in #688
Full Changelog: 1.9.0...1.9.1
1.9.0
What's Changed
Core
perfomance improvents:
- Pass compiled deps to factory and avoid ContextWrapper usage by @Tishka17 in #664
- Optimize enter scope by @Tishka17 in #668
- fix raise in codegen by @Tishka17 in #669
- Handle NoFactoryError in activation, do not use try if no deps by @Tishka17 in #671
- Store None as compiled factory for faster fallback by @Tishka17 in #672
- Fix async fallback by @Tishka17 in #673
- Raw hint as key by @Tishka17 in #674
- fix compilation key in getters by @Tishka17 in #675
Intergrations
- feat(integrations): code gen for injected func by @ApostolFet in #678
- docs: add pyramid integration by @WorkHardes in #666
- fix: deprecate starlette by @MikhailWar in #683
- Speedup starlette middleware by @Tishka17 in #684
- docs: add apscheduler integration by @MikhailWar in #685
Doc and examples
Internal changes
- add
ast-grep-cliby @chirizxc in #661 - chore(deps): bump reagento/relator from 1.6.0 to 1.7.0 by @dependabot[bot] in #677
- chore(deps): bump actions/download-artifact from 7.0.0 to 8.0.0 by @dependabot[bot] in #676
- add more
PEP8rules from preview for ruff config by @chirizxc in #679 - add new rule
DISHKA002by @chirizxc in #680 - update CI by @chirizxc in #681
New Contributors
- @WorkHardes made their first contribution in #666
- @mhemt made their first contribution in #670
- @MikhailWar made their first contribution in #683
Full Changelog: 1.8.0...1.9.0
1.8.0
What's Changed
Highlights
- Contitional activation
- Collecting objects from multiple factories of a same type
Core
- Fix generator factory result hint by @stkrp in #598
- Support optionally overriding scope set in Provider class when instantiating a Provider object by @filipemir in #613
- Use
complied_asyncinstead ofcompiledinget_compiled_asyncmethod by @AlexPetul in #630 - Conditional sources activation by @Tishka17 in #632
- feat: add when= parameter to Provider class by @fadedDexofan in #645
- Render missing variants by @Tishka17 in #647
- Fix decorators, plot and various corner cases by @Tishka17 in #648
- Check override works after decoration by @Tishka17 in #650
- feat: add dependency source info to activation errors by @fadedDexofan in #653
- Collect multiple factories by @Tishka17 in #652
- fix: resolve
__init__introspection whenProtocolis first in bases by @fadedDexofan in #658
Integrations
- Handle FromDishka for fastapi websockets by @chessenjoyer17 in #592
- strawberry integration by @aryadovoy in #619
- Fix Taskiq integration crashing
Context.requeueby @ACherryJam in #618 - Adding reference to integration with Flet by @C3EQUALZz in #631
- docs(integrations): using with fastapi.Depends by @ApostolFet in #638
- Added link to integration with jobify framework by @C3EQUALZz in #640
- Added a warning and docs about moving the integration with FastStream by @ApostolFet in #593
- add warn for starlette integration by @chirizxc in #558
Docs and examples
- add note data actual as of March 8, 2024 by @chirizxc in #566
- added missing imports in docs by @borisalekseev in #567
- lint
examples/by @chirizxc in #600 - fix typos by @chirizxc in #595
- fix typo by @chirizxc in #611
- Correct punctuation in concepts documentation by @sbobryshev in #620
- Update documentation on dishka dependency management by @spacemanspiff2007 in #639
Internal changes
- add zizmor by @chirizxc in #564
- bump zizmor by @chirizxc in #570
- fix yanked anyio version by @chirizxc in #568
- bump test dependencies and clean up
noxfileby @chirizxc in #571 - add pytest-rerunfailures for aiogram-dialog tests due to flaky tests by @chirizxc in #572
- ci: bump telegram-notifier v1.2.3 -> v1.3.0 by @Sehat1137 in #578
- ci: fix permissions for opened pull requests by @Sehat1137 in #579
- ci: only issues trigger by @Sehat1137 in #580
- ci: add trigger for pull_request_target by @Sehat1137 in #583
- ci: bump telegram-notifier by @Sehat1137 in #585
- Update test requirements after 3.14 release by @chirizxc in #586
- bump
ruff(0.13.* -> 0.14.*) by @chirizxc in #587 - update python version in workflow (3.14.0-rc.2 -> 3.14) by @chirizxc in #590
- bump dev dependencies by @chirizxc in #591
- chore(deps): bump py-cov-action/python-coverage-comment-action from 3.37 to 3.38 by @dependabot[bot] in #577
- chore(deps): bump astral-sh/setup-uv from 6.7.0 to 6.8.0 by @dependabot[bot] in #576
- chore: update reagento/relator by @Sehat1137 in #597
- bump zizmor by @chirizxc in #596
- bump nox by @chirizxc in #599
- update
licenseand addlicense-filesto pyproject by @chirizxc in #601 - Update factory_compiler.py: typo fix by @albertedwardson in #602
- remove dead code by @chirizxc in #594
- add new build-backend for get lib version from git by @chirizxc in #573
- add auto pypi publishing by @chirizxc in #562
- simplify ruff config by @chirizxc in #604
- override default
_version.pyusingversion_file_templateby @chirizxc in #605 - chore(deps): bump py-cov-action/python-coverage-comment-action from 3.38 to 3.39 by @dependabot[bot] in #607
- chore(deps): bump actions/download-artifact from 5.0.0 to 6.0.0 by @dependabot[bot] in #606
- chore(deps): bump astral-sh/setup-uv from 6.7.0 to 7.1.2 by @dependabot[bot] in #608
- chore(deps): bump actions/upload-artifact from 4.6.2 to 5.0.0 by @dependabot[bot] in #609
- chore(deps): bump reagento/relator from 1.5.0 to 1.5.1 by @dependabot[bot] in #610
- Fix some errors related to typing. by @ApostolFet in #612
- bump
pytestandpytestplugins, use.tomlconfig by @chirizxc in #617 - add spell check by @chirizxc in #615
- add auto bump dev dependencies via dependabot by @chirizxc in #616
- bump dev dependencies by @chirizxc in #623
- chore(deps): bump reagento/relator from 1.5.1 to 1.6.0 by @dependabot[bot] in #624
- chore(deps): bump astral-sh/setup-uv from 7.1.2 to 7.1.4 by @dependabot[bot] in #625
- chore(deps): bump actions/setup-python from 6.0.0 to 6.1.0 by @dependabot[bot] in #626
- chore(deps): bump actions/checkout from 5.0.0 to 6.0.0 by @dependabot[bot] in #627
- bump aiogram (python 3.14 support) by @chirizxc in #629
- chore(deps): bump actions/upload-artifact from 5.0.0 to 6.0.0 by @dependabot[bot] in #633
- chore(deps): bump actions/download-artifact from 6.0.0 to 7.0.0 by @dependabot[bot] in #634
- chore(deps): bump astral-sh/setup-uv from 7.1.4 to 7.1.6 by @dependabot[bot] in #635
- Store factories as a list in registry, decorate context vars by @Tishka17 in #637
- chore(deps): bump actions/checkout from 6.0.0 to 6.0.1 by @dependabot[bot] in #636
- chore(deps): bump py-cov-action/python-coverage-comment-action from 3.39 to 3.40 by @dependabot[bot] in #654
- chore(deps): bump actions/setup-python from 6.1.0 to 6.2.0 by @dependabot[bot] in #655
- chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 by @dependabot[bot] in #656
- bump dependencies by @chirizxc in #657
New Contributors
- @borisalekseev made their first contribution in #567
- @albertedwardson made their first contribution in #602
- @stkrp made their first contribution in #598
- @filipemir made their first contribution in #613
- @aryadovoy made their first contribution in #619
- @sbobryshev made their first contribution in #620
- @ACherryJam made their first contribution in #618
- @AlexPetul made their first contribution in #630
- @C3EQUALZz made their first contribution in #631
- @fadedDexofan made their first contribution in #645
Full Changelog: 1.7.2...1.8.0
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