All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
-
Improve how mediators for
Phaser.Scene
andPhaser.GameObjects.Container
are handled:-
Improve how
SceneMediators
are created and destroyed based on howPhaser.Scenes.SceneManager
is handling scenes. -
Improve how
ViewMediators
are created and destroyed based on howPhaser.Scene
andPhaser.GameObjects.Container
are handled.
-
-
Use Function Types for handlers and callbacks instead of generic Function type.
-
Evaluate if IMediator interface should be mandatory.
-
Improve Code Coverage to reach 100%.
-
Migrate original documentation and adapt it to TypeScript and Phaser.
v3.0.0 - 2020-03-14
-
Update
phaser
to version3.22.0
(see #112).-
@robotlegsjs/eventemitter3
package is not necessary anymore, you should remove this dependency from yourpackage.json
and use the extensionLocalEventEmitterMap
from@robotlegsjs/phaser
package. -
eventemitter3
package is not necessary anymore, you should remove this dependency from yourpackage.json
and use the definitions fromPhaser.Events.EventEmitter
package instead. Notice that the type of your listeners must change fromEventEmitter.ListenerFn
toFunction
. -
For compatibility with previous versions of
phaser
, use@robotlegsjs/phaser
version 2.
-
-
Update
@robotlegsjs/core
to version^2.0.0
(see #111 and #118).-
Migrate array notation from
Array<SomeType>
toSomeType[]
. -
The rest of the
Public API
remains unchanged.
-
-
Add Tidelift as funding option (see #113).
-
Add Enterprise Support information (see #114).
-
Deploy example project (see #67).
-
Update
tslib
to version1.11.1
(see #116). -
Update dev dependencies to latest version.
- Migrate to terser-webpack-plugin to solve security vulnerability (see #111).
v2.0.0 - 2019-10-31
-
Update
phaser
to version3.20.1
(see #104).-
definitions
folder removed, sincephaser
package is now providing native type definitions. -
Use the type definitions from
/node_modules/phaser/types/phaser.d.ts
. -
Remember to add
"scripthost"
tolib
array incompilerOptions
on yourtsconfig.json
file. -
Minimum version supported is
3.17.0
. Previous versions doens't have thephaser/types
folder.
-
-
Update
@robotlegsjs/core
to version1.0.3
(see #105). -
Update
@robotlegsjs/eventemitter3
to version1.0.2
(see #107). -
Improve
prettier
rules andautoformat
script (see #85). -
Enable
"editor.formatOnSave"
rule forVS Code
(see #85). -
Migrate project to
travis-ci.com
. -
Update
codebeat
Project UUID. -
Update dev dependencies to latest version.
v1.0.1 - 2018-12-25
-
Add mediator when scene has been started after stop/shutdown (see #79).
-
Update dev dependencies to latest version.
v1.0.0 - 2018-11-26
-
Update
@robotlegsjs/core
to version1.0.0
(see #74). -
Update
@robotlegsjs/eventemitter3
to version1.0.0
(see #75). -
Update
phaser
to version3.15.1
(see #68). -
Migrate to Headless Chrome and improve performance of Karma (see #69).
-
Prepare package for stable version (see #70).
-
Improve webpack configuration used to run example project. The
npm start
script will generate hashed files (to avoid browser cache) and open the broswer automatically (see #71). -
Update GitHub Templates (see #73).
-
Update dev dependencies to latest version.
v0.4.0 - 2018-09-14
-
Enable view listeners on
SceneMediator
andViewMediator
classes (see #56 and #59).-
Methods
addViewListener
andremoveViewListener
were removed from scene and view mediators. -
Added
on
,once
andoff
methods to the scene and view mediators allowing the mediators to handle events dispatched byEventEmitter
views. -
Signature
addContextListener
andremoveContextListener
changed in order to fully support theIEventDispatcher
interface. -
New methods
addDomListener
andremoveDomListener
were added to add support toDOM
events dispatched by anEventTarget
.
-
-
Update dev dependencies to latest version.
v0.3.0 - 2018-09-10
-
Add support for
Phaser.GameObject.Container
, allowing the creation of mediators forPhaser.Scene
andPhaser.GameObjects.Container
(see #54 and #55).-
Package
sceneMediatorMap
renamed tomediatorMap
- Interface
ISceneMediator
renamed toIMediator
- Interface
ISceneMediatorMapping
renamed toIMediatorMapping
- Interface
ISceneMediatorConfigurator
renamed toIMediatorConfigurator
- Interface
ISceneMediatorMapper
renamed toIMediatorMapper
- Interface
ISceneMediatorUnmapper
renamed toIMediatorUnmapper
- Class
NullSceneMediatorUnmapper
renamed toNullMediatorUnmapper
- Class
SceneMediatorMapper
renamed toMediatorMapper
- Class
SceneMediatorMapping
renamed toMediatorMapping
- Class
SceneMediatorStateHandler
renamed toSceneMediatorHandler
- Interface
-
Package
sceneManager
renamed toviewManager
-
-
Update
karma
setup to generate code coverage report only forsrc
folder (see #53). -
Update dev dependencies to latest version.
v0.2.0 - 2018-08-07
-
Add changelog (see #35).
-
Add code of conduct (see #36).
-
Add issue template (see #38).
-
Add pull request template (see #39).
-
Implement support for phaser plugin version 3. Suppor for phaser-ce plugin was moved to RobotlegsJS-Phaser-CE (see #52).
-
Move
phaser
library to peerDependencies, allowing the final user to choose the desired version of the phaser library on each project (see #52). -
Update
@robotlegsjs/core
to version0.2.0
(see #51). -
Update codeclimate settings (see #40).
-
Update Prettier rules (see #41).
-
Use
rimraf
instead ofrm -rf
(see #42). -
Update TypeScript Compiler Options (see #43, #49).
-
Use tslib library to avoid duplicated declarations (see #49).
-
Enforce TSLint rules (see #44).
-
Adopts year-agnostic copyright message (see #47).
-
Update dev dependencies to latest version.
- Remove
eventemitter3
dependency (see #45).
v0.0.5 - 2017-09-26
-
Update
@robotlegsjs/core
to version0.0.6
(see #9). -
Update
phaser-ce
to version2.8.8
(see #10). -
Adapt to NPM v5.0.0 (see #7).
-
Update dev dependencies to latest version.
v0.0.4 - 2017-09-15
-
Update
@robotlegsjs/core
to version0.0.5
(see #5). -
Update
phaser-ce
to version2.8.7
(see #6). -
Update TSLint rules (see #6).
-
Update dev dependencies to latest version.
v0.0.3 - 2017-08-30
-
Update
@robotlegsjs/core
to version0.0.4
(see #4). -
Update
phaser-ce
to version2.8.4
. -
Enable GreenKeeper.
-
Update dev dependencies to latest version.
v0.0.2 - 2017-08-12
-
Update
@robotlegsjs/core
to version0.0.3
. -
Update contributing guidelines.
-
Update dev dependencies to latest version.
v0.0.1 - 2017-08-06
- The version 0.0.1 integrated version 2.8.3 of phaser-ce package.