Releases: inversify/InversifyJS
Releases · inversify/InversifyJS
v2.0.0-alpha.6
v2.0.0-alpha.3
v2.0.0-alpha.2
v2.0.0-alpha.1
v2.0.0-alpha.0
This release has no new features but presents important internal changes necessary for the upcoming 2.0 release.
v1.3.0
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
- 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 oftsd
v1.0.3
I fixed an issue and now ES6 classes are supported in Node --harmony
mode.