2.0.0-beta.9
Pre-releaseBreaking changes
- All interfaces don't use the
I
prefix anymore. To access the interfaces you must import theinterfaces
namespace:
import { Kernel, interfaces } from "inversify";
let kernel: interfaces.Kernel = new Kernel();
kernel.bind<interfaces.Factory<Weapon>>("Weapon").toFactory<Weapon>((context) => {
return () => {
return kernel.get<Weapon>("Weapon");
};
});
- Kernel modules have a new API:
let warriors = new KernelModule((bind: Bind) => {
bind<Ninja>("Ninja").to(Ninja);
});
let weapons = new KernelModule((bind: Bind) => {
bind<Katana>("Katana").to(Katana);
bind<Shuriken>("Shuriken").to(Shuriken);
});
let kernel = new Kernel();
kernel.load(warriors, weapons);
kernel.unload(warriors);
Features
- Allow users to unload Kernel modules
toFunction
bindingKernel.isBound()
Fixes
- False "Missing required @injectable annotation in..." exception. Read the page about inheritance in the wiki to learn more.
Commits
Commits on Jun 02, 2016
@remojansen Updated to match latest inversify-dts 744716c
@remojansen Update ecosystem.md c223f17
@remojansen Update README.md ec5305f
@remojansen Implements #235 (#236) … c83eaf4
@remojansen Update README.md 5e845af
@remojansen Update README.md 988e45b
Commits on Jun 13, 2016
@greenkeeperio-bot chore(package): update gulp-istanbul to version 1.0.0 (#243) … ef7a671
Commits on Jun 17, 2016
@remojansen Implementes #237 #244 #245 #246 (#249) … 7a205aa
@remojansen Update purpose.md 64b3970
@remojansen Update purpose.md 3bc6ac0
Commits on Jun 18, 2016
@remojansen Fix for gulp-header broken release … 48d6662
@greenkeeperio-bot [email protected] (#251) … bf8b836
Commits on Jun 20, 2016
@remojansen remojansen Implemented #242 (#254) d06f799
@remojansen remojansen Fixes #247 (#255) … d23ce74