Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 2.79 KB

CHANGELOG.md

File metadata and controls

92 lines (62 loc) · 2.79 KB

1.7.16 (2017-11-30)

Added

  • Component decorator - functions the same as Injectable.

1.7.15 (2017-10-18)

Fixed

  • Wrong hierarchical dependency resolution.

1.7.14 (2017-10-14)

Fixed

  • Wrong injections order when using Inject decorator.

1.7.3 (2017-10-07)

API changes

Container

  • Added option parameter to constructor. - options object has two attributes: (parent and defaultLifeTime).

Fixed

  • Factories always resolve instances.

1.7.0 (2017-10-07)

API changes

Container

  • Container.createScope() is marked as deprecated, use Container.createChild() instead+.
  • Added method Container.setParent().

Fixed

  • Symbol values for types are now properly handled in error messages.

1.6.8 (2017-10-05)

Features

  • Added support for ES6+ - Added new syntax for declaring injectioins of a class, now it's possible via Injectable decorator. see examples/javascript.

1.6.0 (2017-10-04)

Features

1.5.0 (2017-10-02)

Features

Removed

  • reflect-metadata as a dependency

1.4.0 (2017-10-01)

Features

  • @Injectable() decorator: - now to make a class available for injection you have to mark it with @Injectable() decorator: 86fede13

Breaking Changes

  • Class registration: - now it's necessary to mark the class you want to make available for injections with Injectable decorator.
    // old version
    class A {}
    container.register({ token: 'IA', useClass: A });
    
    // new version
    @Injectable()
    class A {}
    container.register({ token: 'IA', useClass: A });

1.3.1 (2017-09-30)

Features

  • Value and Factory: - container now can resolve values or anything returned from a factory. commit 50ebb63
  • Injection Token - added InjectionToken class to facilitate working with abstractions. 3c380c878