Skip to content

Releases: MaximBazarov/Inject

[1.0.3] Changing license to MIT

12 Feb 21:00
b9d6a63
Compare
Choose a tag to compare
Fix: Multiple .permanent instances keys are different when instantiat…

…ed from different places. (#6)

#5

1.0.2

18 Oct 13:18
ec75006
Compare
Choose a tag to compare

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

13 Oct 20:32
Compare
Choose a tag to compare

Updated documentation

1.0.0

13 Oct 06:16
Compare
Choose a tag to compare
  • @Injected to mark an injection point
  • Scope
  • Lifetime
  • DefaultValues to set an instance provider