Skip to content

Releases: ivlevAstef/DITranquillity

Hot fix swift 4.1 Implicitly Unwrapped Optional

20 Apr 07:35
Compare
Choose a tag to compare

Hot fix. 3.2.2 version for swift 4.1 incorrect works.

Support swift 4.1

19 Apr 04:55
Compare
Choose a tag to compare
  • Support Swift 4.1. Thanks @Nekitosss
  • Move Tests into main project
  • Update Travis file

New lifetimes

30 Mar 10:35
Compare
Choose a tag to compare
  • Update lifetimes. now: single, perRun(.weak/.strong), perContainer(.weak/.strong), objectGraph, prototype. Old weakSingle and lazySingle declared deprecated.
  • Improve internal code
  • Add method clean for remove all cache object in container.
  • Small improve log
  • Add return value for append(part:) and append(framework:)

Support injection by KeyPath

12 Feb 08:43
Compare
Choose a tag to compare
  • Support injection by keyPath for swift4
  • Small improve logging - add new log level .verbose

Multiply Many and Tags

28 Nov 04:24
Compare
Choose a tag to compare

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

27 Nov 04:07
Compare
Choose a tag to compare

Add new lifetime perContainer

Storyboard, Resolve, Bundle

04 Oct 15:56
Compare
Choose a tag to compare
  • feature: You can now pass the bundle from which to retrieve the object
  • bugfix: When created ViewController, library didn't consider storyboard bundle

Swift4

04 Oct 03:26
Compare
Choose a tag to compare

Support Swift4

Bugfix

02 Oct 17:05
Compare
Choose a tag to compare

Improve validate graph cycle, and logs.

Bugfix

02 Oct 14:30
Compare
Choose a tag to compare
  • bugfix: Support recursive inject into ViewControllers.
  • bugfix: Fix component bundle source.
  • bugfix: Fix valid method, for hard dependency graph.
  • Rename valid to validate(checkGraphCycles:)