Skip to content

Releases: mrcwbr/ioc-service-container

2.0.0

23 Aug 05:28
Compare
Choose a tag to compare

What's Changed

  • Bump @babel/traverse from 7.22.10 to 7.23.2 by @dependabot in #11
  • Bump braces from 3.0.2 to 3.0.3 by @dependabot in #12
  • build: updated sonar scanner by @mrcwbr in #13
  • feat: added possibility to pass not ony functions and classes by @mrcwbr in #15

Breaking

  • removed buildInstantly from .set() and .override(). you can now just pass an instant directly like ServiceContainer.set('myId', myInstance)

Full Changelog: 1.6.1...2.0.0

1.6.1

09 Aug 05:14
Compare
Choose a tag to compare

What's Changed

  • Bump json5 from 2.2.1 to 2.2.3 by @dependabot in #8
  • Hold Services in Object instead of an Array by @mrcwbr in #10

Full Changelog: 1.6.0...1.6.1

1.6.0

06 Dec 12:32
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 1.5.2...1.6.0

1.5.2

08 Nov 13:32
39a21a1
Compare
Choose a tag to compare

Fixed

  • Fixed an error in ServiceContainer.set() which did not build references instantly if required

1.5.1

29 Jul 13:25
Compare
Choose a tag to compare

Fixed

  • Fixed an error in ServiceContainer.set() which not detected constructable classes

1.5.0

29 Jul 11:52
Compare
Choose a tag to compare
  • You are now able to initialize a class only by its reference
    e.g. ServiceContainer.set(ServiceId.TestApi, CustomTestApi); instead
    of ServiceContainer.set(ServiceId.TestApi, () => new CustomTestApi();

1.4.0

31 May 09:44
Compare
Choose a tag to compare

Added

  • function scg as a shortcut of ServiceContainer.get()

1.3.0

12 May 13:18
Compare
Choose a tag to compare

Added

  • Parameter buildInstantly to ServiceContainer.set() for forcing to build the instance of a service directly

1.2.1

22 Mar 10:33
Compare
Choose a tag to compare

Fixed

  • Fixed ServiceContainer.override function to ignore case-sensitiveness

1.2.0

22 Mar 10:03
Compare
Choose a tag to compare

Added

  • It's now possible to override service factories with ServiceContainer.override('aServiceId', aFactory);