Skip to content

Release 2.2.0

Compare
Choose a tag to compare
@hmlongco hmlongco released this 01 Jul 23:21
· 115 commits to main since this release
061b3af

2.2.0

  • Converts "shared" container variables from var to let. - Issue #111
  • Add convenience reset() function to container. - Issue #111
    Note that issue #111 could be a breaking change if your code attempts to "replace" a shared container. Do reset instead.
    Container.shared.reset() // Do this...
    Container.shared = Container() // Not this...
  • Removes @mainactor from @InjectedObject property wrapper variables. - Issue #107
  • Fix registering a new context doesn't clear existing cache as did register. - Issue #114
  • Fix FactoryContext not public. - Issue #116
  • Update Modular Application documentation. - Issue #121
  • Adds $service.resolvedOrNil() function to LazyInjected and WeakLazyInjected. - Issue #122
  • Adds keypath-based global resolutions functions for shared containers.
  • Removes func register(scope:factory:) function deprecated in 2.1
    Use container.service.scope(.cached).register { Service() } instead.