Skip to content

Commit

Permalink
chore(all): prepare release 1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 5, 2017
1 parent fbc3c2c commit ac6bf75
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-router",
"version": "1.2.1",
"version": "1.3.0",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down
3 changes: 2 additions & 1 deletion dist/amd/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,14 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
};

NavigationInstruction.prototype.addViewPortInstruction = function addViewPortInstruction(viewPortName, strategy, moduleId, component) {
var config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
var viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
3 changes: 2 additions & 1 deletion dist/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,14 @@ export class NavigationInstruction {
* Adds a viewPort instruction.
*/
addViewPortInstruction(viewPortName: string, strategy: string, moduleId: string, component: any): any {
const config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
let viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
3 changes: 2 additions & 1 deletion dist/commonjs/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,13 +219,14 @@ var NavigationInstruction = exports.NavigationInstruction = function () {
};

NavigationInstruction.prototype.addViewPortInstruction = function addViewPortInstruction(viewPortName, strategy, moduleId, component) {
var config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
var viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
3 changes: 2 additions & 1 deletion dist/es2015/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,14 @@ export let NavigationInstruction = class NavigationInstruction {
}

addViewPortInstruction(viewPortName, strategy, moduleId, component) {
const config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
let viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
3 changes: 2 additions & 1 deletion dist/native-modules/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,14 @@ export var NavigationInstruction = function () {
};

NavigationInstruction.prototype.addViewPortInstruction = function addViewPortInstruction(viewPortName, strategy, moduleId, component) {
var config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
var viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
3 changes: 2 additions & 1 deletion dist/system/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -811,13 +811,14 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende
};

NavigationInstruction.prototype.addViewPortInstruction = function addViewPortInstruction(viewPortName, strategy, moduleId, component) {
var config = Object.assign({}, this.lifecycleArgs[1], { currentViewPort: viewPortName });
var viewportInstruction = this.viewPortInstructions[viewPortName] = {
name: viewPortName,
strategy: strategy,
moduleId: moduleId,
component: component,
childRouter: component.childRouter,
lifecycleArgs: this.lifecycleArgs.slice()
lifecycleArgs: [].concat(this.lifecycleArgs[0], config, this.lifecycleArgs[2])
};

return viewportInstruction;
Expand Down
10 changes: 10 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
<a name="1.3.0"></a>
# [1.3.0](https://github.com/aurelia/router/compare/1.2.1...v1.3.0) (2017-04-05)


### Features

* **viewport:** add viewport name to life cycle arguments ([34ef2c4](https://github.com/aurelia/router/commit/34ef2c4))



<a name="1.2.1"></a>
## [1.2.1](https://github.com/aurelia/router/compare/1.2.0...v1.2.1) (2017-02-27)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-router",
"version": "1.2.1",
"version": "1.3.0",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit ac6bf75

Please sign in to comment.