Skip to content

Releases: davidscheutz/SwiftDependencyContainer

v0.4.0

10 May 13:40
486c57b
Compare
Choose a tag to compare

Added support for projects with internal frameworks

For more detail please take a look at this PR: #3

v0.3.0

10 Mar 05:18
Compare
Choose a tag to compare

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

16 Feb 05:09
Compare
Choose a tag to compare

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 to register
  • Replace key's generic Hashable constraint with AnyHashable
  • Improved errors and tests
  • Readme added

V0.1.0

04 Jun 13:36
Compare
Choose a tag to compare

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).