Skip to content

Releases: inversify/InversifyJS

v2.0.0-alpha.6

18 Mar 02:43
Compare
Choose a tag to compare
v2.0.0-alpha.6 Pre-release
Pre-release

screen shot 2016-03-18 at 02 43 12 2

v2.0.0-alpha.3

v2.0.0-alpha.2

v2.0.0-alpha.1

v2.0.0-alpha.0

01 Mar 16:06
Compare
Choose a tag to compare
v2.0.0-alpha.0 Pre-release
Pre-release

This release has no new features but presents important internal changes necessary for the upcoming 2.0 release.

v1.3.0

02 Feb 14:51
Compare
Choose a tag to compare

Injections without @Inject are not supported anymore (PR #64 Issues #56 and #62)

The Inject decorator can be applied to a class:

interface IKatana {
    power : number;
    hit() : boolean;
}

interface IShuriken {
    power : number;
    throw() : boolean;
}

@Inject("IKatana", "IShuriken")
class Warrior {

    private _katana : IKatana;
    private _shuriken : IShuriken;

    constructor(katana : IKatana, shuriken : IShuriken) {
        this._katana = katana;
        this._shuriken = shuriken;
    }
}

The following is not supported anymore:

class Warrior {

    private _katana : IKatana;
    private _shuriken : IShuriken;

    constructor(
        @Inject("IKatana") katana : IKatana, 
        @Inject("IShuriken") shuriken : IShuriken
    ) {
        this._katana = katana;
        this._shuriken = shuriken;
    }
}

Injections based on naming conventions are also not supported anymore:

class Warrior {

    private _katana : IKatana;
    private _shuriken : IShuriken;

    constructor(IKatana: IKatana, IShuriken: IShuriken) {
        this._katana = IKatana;
        this._shuriken = IShuriken;
    }
}

v1.2.2

01 Feb 14:14
Compare
Choose a tag to compare
  • New feature @Inject decorator
  • Reduced the size of the npm package
  • Typed npm module to replace tsd
  • No more bower releases
  • Improved unit tests and test coverage
  • Using typings instead of tsd

v1.0.3

17 Oct 22:43
Compare
Choose a tag to compare

I fixed an issue and now ES6 classes are supported in Node --harmony mode.