Releases: GoodgameStudios/RobotlegsJS
1.0.1
1.0.0
Breaking changes
There is a breaking change in this release related to the latest version of InversifyJS.
The InversifyJS, from version 3.0.0, supports natively hierarchical levels between injectors. The class that plays the role of the injector was renamed from Kernel to Container, and a createChild method was added. The native support of a parent / child relationship between containers brings the InversifyJS API more closer to the SwiftSuspenders API and removes the necessity of hard coded implementation on this port of the original robotlegs-framework from AS3 to TypeScript/JS.
To avoid confusion between the interfaces.Container API and the IInjector API, it was decided to use the API provided by the interfaces.Container class directly, and all auxiliar methods added to the IInjector was removed.
Removed methods that should be replaced
The hasMapping
, satisfies
and teardown
methods was removed and should be replaced by the usage of:
isBound
instead ofhasMapping
isBound
instead ofsatisfies
unbindAll
instead ofteardown
Removed method that was turned into a auxiliary method
The instantiateUnmapped
method was removed and now is a auxiliar method that can be imported from the robotlegs context:
import { instantiateUnmapped } from "robotlegs";
function applyHooks(hooks: any[], injector?: IInjector): void {
for (let i = 0; i < hooks.length; i++) {
let hook: any = hooks[i];
if ((typeof (hook) === "function") && (hook.prototype.hook === undefined)) {
(<Function>hook)();
continue;
}
if ((typeof (hook) === "function") && (hook.prototype.hook !== undefined)) {
hook = injector ? instantiateUnmapped(injector, hook) : new hook();
}
hook.hook();
}
}
Method that have a new return type
The createChild method is directly provided by the interfaces.Container interface. Instead of return a IInjector, this method will return a interfaces.Container instance.
1.0.0-alpha.14
Merge pull request #56 from GoodgameStudios/greenkeeper/istanbul-inst… …rumenter-loader-2.0.0 Update istanbul-instrumenter-loader to the latest version 🚀
1.0.0-alpha.13
update yarn.lock file
1.0.0-alpha.12
update package version to 1.0.0-alpha.12
1.0.0-alpha.11
update package version to 1.0.0-alpha.11
1.0.0-alpha.10
update dependencies to latest version
1.0.0-alpha.9
ident files with 4 spaces instead of 2
1.0.0-alpha.8
upgrade from typings to types-2.0
1.0.0-alpha.7
Update David dependencies badges