DITranquillity Versions Save

Dependency injection for iOS (Swift)

v4.5.0

8 months ago

Add new safety idea - root components. For more information your can see link

v4.4.0

11 months ago

Remove SpinLock and increase minimum OS version

v4.3.5

1 year ago

v4.3.4

2 years ago

Add simple one modificator injection into initialize method. For example: Old: container.register { Cat(name: arg($0), owner: $1, home: $2) } New: container.register(Cat.init) { arg($0) }

v4.3.3

2 years ago

Fix argument injection for Tag and named resolve. for example:

container.register { MyClass(inj: arg($0)) }
    .as(name: "Name", MyProtocol.self)
    .as(tag: MyTag.self, MyProtocol.self)
let arg = AnyArgument(type: MyProtocol.self, value: 1)
let obj1: MyProtocol = container.resolve(name: "Name", arguments: arg)
let obj2: MyProtocol = by(tag: MyTag.self, on: container.resolve(arguments: arg))

v4.3.2

2 years ago

Fix arguments resolve if for resolve used none base type. for example: let a: T? = container.resolve(args: ...). In current example T is Optional. Also fix if T use many or tag.

v4.3.0

2 years ago

Warning! This version change public API!

  • Update arguments. Now inject arguments it's thread save operation. Also change syntax - remove extensions, and now inject arguments use resolve method in container. see

https://github.com/ivlevAstef/DITranquillity/issues/159

v4.2.3

3 years ago

Fix potential crash into FastLock. For more information saw: https://github.com/ivlevAstef/SwiftLazy/issues/6

v4.2.2

3 years ago
  • Improve thread safe for public scopes DICacheStorage. Actually only if you use custom lifetime.
  • Fix thread safe for methods initializeSingletonObjects and initializeObjectsForScope

v4.2.1

3 years ago

Fix memory leak ParsedType. About bug in comments #159 issue