Skip to content

v18.0.0

Compare
Choose a tag to compare
@Iku-turso Iku-turso released this 23 Oct 08:17
· 45 commits to master since this release

18.0.0 (2023-10-23)

⚠ BREAKING CHANGES

  • Illegal attempts to inject singletons with an instantiation parameter now throw.
    Adapt by either:
  1. Changing design to not use instantiation parameters for singletons
  2. Making the singletons keyed singletons instead
  3. Having singletons receive what they need as a dependency, instead of instantiation parameter

Features

  • Expose typing of getKeyedSingletonCompositeKey (2e94d50)
  • Introduce DeepMap, being like Map, but with composite keys instead of singular ones (7ef8e99)
  • Make ComputedInjectMany support instantiation parameters (fc6aefa)
  • Make keys of keyedSingleton able to be composed of multiple reference values (ad6c067)
  • Make singletons throw if instantiation parameter is provided (96215f2)