Releases: davidscheutz/SwiftDependencyContainer
Releases · davidscheutz/SwiftDependencyContainer
v0.4.0
v0.3.0
Several AutoSetup
improvements.
Changes include:
- Factories can be created with parameters of types, that are not registered in the dependency container
- Types for Singletons don't need to provide
.self
anymore - Several template fixes (e.g. include Swift's
Foundation
framework to support primitive parameter types) - Examples added
- Readme added
V0.2.0
Introduce AutoSetup
with basic code generation to simplify dependency setup.
Changes further include
- Add bootstrap function to explicitly start container
- Exclude the object's type information when registering for specific types
- Renaming of
add
naming convention toregister
- Replace key's generic
Hashable
constraint withAnyHashable
- Improved errors and tests
- Readme added
V0.1.0
First version of a lightweight dependency container.
Features
- Register/resolving dependencies using one or more types or a given key
- Eager dependencies (bootstrapped immediately when added)
- Override registered dependencies before they are bootstrapped
All functionality is covered by unit tests (100% code coverage).