Skip to content

Swift 3

Compare
Choose a tag to compare
@ilyapuchka ilyapuchka released this 11 Sep 20:11
· 162 commits to develop since this release

New

  • Migrated to Swift 3.0
    #120, @patrick-lind, @mark-urbanthings, @ilyapuchka
  • Renamed DefinitionOf to Definition and some other source-breaking refactoring.
    #113, @ilyapuchka
  • Added invalidType error when resolved instance does not implement requested type.
    #118, @ilyapuchka
  • Added optional type parameter in register methods to be able to specify type when registering using method literal instead of closure.
    #115, @ilyapuchka
  • Added implements family of methods in to Definition to register type-forwarding definitions.
    #114, @ilyapuchka
  • Shared scope is now the default scope.
    #112, @ilyapuchka
  • Single target project setup.
    #121, @ilyapuchka
  • Simplified implementation of auto-wiring. Container now chooses the definition for type with most number of arguments and does not use other definitions if this one fails to resolve.
    #117, @ilyapuchka

Fixed

  • Auto-injected properties inherited from super class are now properly injected when resolving subclass.
    Added resolveDependencies(_:DependencyContainer) method to Resolvable protocol to handle inheritance when resolving.
    #116, @ilyapuchka