Releases: ivlevAstef/DITranquillity
Releases · ivlevAstef/DITranquillity
Support delayed injection.
Support delayed injection. Now have Lazy and Provider injection.
See more
Hot fix swift 4.1 Implicitly Unwrapped Optional
Hot fix. 3.2.2 version for swift 4.1 incorrect works.
Support swift 4.1
- Support Swift 4.1. Thanks @Nekitosss
- Move Tests into main project
- Update Travis file
New lifetimes
- Update lifetimes. now:
single
,perRun(.weak/.strong)
,perContainer(.weak/.strong)
,objectGraph
,prototype
. OldweakSingle
andlazySingle
declared deprecated. - Improve internal code
- Add method
clean
for remove all cache object in container. - Small improve log
- Add return value for
append(part:)
andappend(framework:)
Support injection by KeyPath
- Support injection by keyPath for swift4
- Small improve logging - add new log level
.verbose
Multiply Many and Tags
Now you can write:
// this it object meet two tags at the same time (and type :)
let obj: YourClass = by(tag: YourTag1.self, by(tag: YourTag2.self, on: *container))
let obj: YourClass = by(tags: YourTag1.self, YourTag2.self, on: *container)
// this is all the objects satisfying the tag (and type :)
let obj: [YourClass] = many(by(tag: YourTag1.self, on: *container))
Per container
Add new lifetime perContainer
Storyboard, Resolve, Bundle
- feature: You can now pass the bundle from which to retrieve the object
- bugfix: When created ViewController, library didn't consider storyboard bundle
Swift4
Support Swift4
Bugfix
Improve validate graph cycle, and logs.