grammyjs / commands

Work-in-progress plugin for managing commands with grammY.
https://grammy.dev/plugins/commands
MIT License
13 stars 2 forks source link

fix: do not create infinite middleware loops #28

Closed KnorpelSenf closed 4 months ago

KnorpelSenf commented 4 months ago

The current usage of middleware is broken, these changes fix that

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 84.44%. Comparing base (63bc0fa) to head (49a1243). Report is 41 commits behind head on main.

Files Patch % Lines
src/commands.ts 33.33% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #28 +/- ## =========================================== + Coverage 68.13% 84.44% +16.30% =========================================== Files 7 8 +1 Lines 408 585 +177 Branches 66 91 +25 =========================================== + Hits 278 494 +216 + Misses 128 90 -38 + Partials 2 1 -1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

KnorpelSenf commented 4 months ago

@roziscoding @carafelix please merge and release a patch