Savory / Danet

The most mature backend framework for Deno. Create awesome HTTP and WebSocket server as well as KVQueue workers !
https://danet.land
Other
269 stars 18 forks source link

feat!: useValue + useClass injectables #81

Closed Sorikairox closed 7 months ago

Sorikairox commented 7 months ago

Description

Sometimes, we want to inject a plain object (such as a configuration object). useValue does that.

I remove TokenInjector to stay consistent.


Issue Ticket Number

Fixes #(issue_number)


Type of change


Checklist:

codecov-commenter commented 7 months ago

Codecov Report

Attention: Patch coverage is 95.52239% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 87.56%. Comparing base (cc251f0) to head (3c8ba33).

:exclamation: Current head 3c8ba33 differs from pull request most recent head a4eef8e. Consider uploading reports for the commit a4eef8e to get more accurate results

Files Patch % Lines
src/module/decorator.ts 0.00% 2 Missing :warning:
src/injector/injector.ts 97.95% 0 Missing and 1 partial :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #81 +/- ## ========================================== + Coverage 87.53% 87.56% +0.02% ========================================== Files 59 58 -1 Lines 1781 1801 +20 Branches 181 183 +2 ========================================== + Hits 1559 1577 +18 - Misses 220 221 +1 - Partials 2 3 +1 ```

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