Factory

A new approach to Container-Based Dependency Injection for Swift and SwiftUI.

MIT License

Stars
1.6K
Committers
13

Bot releases are hidden (Show)

Factory - Release 1.3.0

Published by hmlongco almost 2 years ago

  • Added support for Graph scopes
  • Added Circular Dependency Detection checks when running in DEBUG mode
  • Fixed issue with shared scope failing in iOS 14.x and earlier - Issue #43
Factory - 1.2.9 Release

Published by hmlongco almost 2 years ago

  • Add an registration endpoint that's called prior to first service resolution.
Factory - 1.2.8 Release

Published by hmlongco over 2 years ago

  • Cocoapods
Factory - 1.2.7 Release

Published by hmlongco over 2 years ago

  • Fixed shared caching behavior with value-based protocols
Factory - 1.2.6 Release

Published by hmlongco over 2 years ago

  • Fixed shared caching issue with non-optional protocol types
  • Fixed type problem with WeakLazyInjected and protocol types
Factory - 1.2.5 Release

Published by hmlongco over 2 years ago

  • Added WeakLazyInjected property wrapper for parent child relationships
Factory - 1.2.4 Release

Published by hmlongco over 2 years ago

  • Recursive lock required in scope resolution
Factory - 1.2.3 Release

Published by hmlongco over 2 years ago

  • Streamline critical path through scope caching mechanism
Factory - 1.2.2 Release

Published by hmlongco over 2 years ago

  • Fix issue with optional nil lazy injection
Factory - 1.2.1 Release

Published by hmlongco over 2 years ago

  • Fix issue with shared scope when type is optional

Note that one of the results of this change is that, previously, a scope would cache a nil value if that's what an optional factory returned. Now optional instances are only cached if they contain an actual wrapped value.

Factory - 1.2.0 Stable Release

Published by hmlongco over 2 years ago

  • Revised structure to better support ParameterFactory
  • Returned to more agressive locking mechanisms
  • Revised caching code to eliminate multiple locks
  • Changes decorator behavior in favor of a single common decorator for new and cached instances
Factory - 1.1.0 Release

Published by hmlongco over 2 years ago

  • Adds ParameterFactory to provide type-safe argument passing
Factory - 1.0.9 Release

Published by hmlongco over 2 years ago

  • Conditional per-platform locking strategy
  • Added multithreaded test case
Factory - 1.0.8 Release

Published by hmlongco over 2 years ago

  • Revised locking strategy for improved performance
Factory - 1.0.7 Release

Published by hmlongco over 2 years ago

  • Fixed issue with cross registrations on factories with the same base type
Factory - 1.0.6 Release

Published by hmlongco over 2 years ago

  • Fix issue with caching optional types
Factory - 1.0.5 Release

Published by hmlongco over 2 years ago

  • Fix unneeded Factory retention in Injected Property Wrapper
  • Some internal name changes
  • Added Multipl Module examples in demo project
Factory - 1.0.4 Release

Published by hmlongco over 2 years ago

  • Optimize creation of factory cache id
Factory - 1.0.3 Release

Published by hmlongco over 2 years ago

  • Streamline handling of optionals in registered
Factory - 1.0.2 Release

Published by hmlongco over 2 years ago

  • Refactored common scope cache mechanism
  • Allow global scope cache resets