Releases: MaximBazarov/Inject
Releases · MaximBazarov/Inject
[1.0.3] Changing license to MIT
Fix: Multiple .permanent instances keys are different when instantiat…
1.0.2
Dependency.override(_:)
is now public so it's possible to override dependency in your production code like _someService.override(SomeService())
.
It's particularly useful if you want to open the specific injections in your tests for something otherwise global.
E.g you have something that depends on a global storage, and you don't want to make your code passing storage around to maintain it.
You can use override
in your tests for this injection point specifically.
1.0.1
Updated documentation
1.0.0
@Injected
to mark an injection point- Scope
- Lifetime
DefaultValues
to set an instance provider