Skip to content

Releases: baileyherbert/container

v3.0.0

Choose a tag to compare

@baileyherbert baileyherbert released this 20 Jan 15:00
  • [BREAKING] Bumped required engine to node>=18.0.0
  • [BREAKING] Bumped @baileyherbert/reflection to ^2.0.0
  • [BREAKING] Bumped reflect-metadata to ^0.2.1
  • Updated all other dependencies

v2.0.3

Choose a tag to compare

@baileyherbert baileyherbert released this 23 May 07:29
  • Preserves context in resolveAll() when using a container with parents

v2.0.2

Choose a tag to compare

@baileyherbert baileyherbert released this 23 May 07:08
  • Added missing context parameter to resolveAll

v2.0.1

Choose a tag to compare

@baileyherbert baileyherbert released this 23 May 04:50
  • Fixed context not applying in registration lookups
  • Fixed context not being used for registration lookups in all mode
  • Fixed duplicate instances when resolving in all mode

v2.0.0

Choose a tag to compare

@baileyherbert baileyherbert released this 23 May 03:05
  • Breaking: Passing arrays into context when resolving or registering is now treated as an array of contexts rather than a single context token

v1.9.0

Choose a tag to compare

@baileyherbert baileyherbert released this 23 May 02:46
  • Added a container context variable called defaultResolutionContext that sets the default resolution context
    • The default context can still be overridden on a per-resolution basis
    • Resolution will still fall back to non-contextual registrations if no matches are found

v1.8.0

Choose a tag to compare

@baileyherbert baileyherbert released this 21 May 22:04
  • Added a clone() method to dispatchers

v1.7.1

Choose a tag to compare

@baileyherbert baileyherbert released this 21 May 21:48
  • The TiedContainerDispatcher class now extends the ContainerDispatcher class to reduce code duplication and maintain consistent resolution behavior. Test cases added.

v1.7.0

Choose a tag to compare

@baileyherbert baileyherbert released this 21 May 21:24
  • Dispatchers can now use the setTokenParameter(token, instance) parameter to override the injection for exact tokens, including tokens set with the @Token() decorator.

v1.6.0

Choose a tag to compare

@baileyherbert baileyherbert released this 19 May 19:55
  • Exposed the global registry variable