Skip to content

Releases: GoodgameStudios/RobotlegsJS

1.0.1

26 Jul 22:47
Compare
Choose a tag to compare
update package version to 1.0.1

1.0.0

24 Jul 18:45
Compare
Choose a tag to compare

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 of hasMapping
  • isBound instead of satisfies
  • unbindAll instead of teardown

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

21 Feb 10:07
Compare
Choose a tag to compare
1.0.0-alpha.14 Pre-release
Pre-release
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

07 Feb 13:26
Compare
Choose a tag to compare
1.0.0-alpha.13 Pre-release
Pre-release
update yarn.lock file

1.0.0-alpha.12

11 Nov 12:21
Compare
Choose a tag to compare
1.0.0-alpha.12 Pre-release
Pre-release
update package version to 1.0.0-alpha.12

1.0.0-alpha.11

11 Nov 12:13
Compare
Choose a tag to compare
1.0.0-alpha.11 Pre-release
Pre-release
update package version to 1.0.0-alpha.11

1.0.0-alpha.10

01 Nov 11:42
Compare
Choose a tag to compare
1.0.0-alpha.10 Pre-release
Pre-release
update dependencies to latest version

1.0.0-alpha.9

27 Oct 13:37
Compare
Choose a tag to compare
1.0.0-alpha.9 Pre-release
Pre-release
ident files with 4 spaces instead of 2

1.0.0-alpha.8

23 Oct 11:58
Compare
Choose a tag to compare
1.0.0-alpha.8 Pre-release
Pre-release
upgrade from typings to types-2.0

1.0.0-alpha.7

20 Oct 08:52
Compare
Choose a tag to compare
1.0.0-alpha.7 Pre-release
Pre-release
Update David dependencies badges