Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-rc.1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 12, 2016
1 parent fe0070c commit de7b0ed
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 9 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.0.0-rc.1.0.0",
"version": "1.0.0-rc.1.0.1",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down
3 changes: 3 additions & 0 deletions dist/amd/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
};

Expand Down Expand Up @@ -967,6 +968,8 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
var current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
};
Expand Down
11 changes: 8 additions & 3 deletions dist/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ export declare interface Next {
/**
* Indicates the successful completion of the entire pipeline.
*/
complete(result: any): Promise<any>;
complete(result?: any): Promise<any>;

/**
* Indicates that the pipeline should cancel processing.
*/
cancel(result: any): Promise<any>;
cancel(result?: any): Promise<any>;

/**
* Indicates that pipeline processing has failed and should be stopped.
*/
reject(result: any): Promise<any>;
reject(result?: any): Promise<any>;

/**
* Indicates the successful completion of the pipeline step.
Expand Down Expand Up @@ -327,6 +327,11 @@ export declare class NavModel {
* The route config.
*/
config: RouteConfig;

/**
* The router associated with this navitation model.
*/
router: Router;
constructor(router: Router, relativeHref: string);

/**
Expand Down
14 changes: 11 additions & 3 deletions dist/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ interface Next {
/**
* Indicates the successful completion of the entire pipeline.
*/
complete: (result: any) => Promise<any>,
complete: (result?: any) => Promise<any>,

/**
* Indicates that the pipeline should cancel processing.
*/
cancel: (result: any) => Promise<any>,
cancel: (result?: any) => Promise<any>,

/**
* Indicates that pipeline processing has failed and should be stopped.
*/
reject: (result: any) => Promise<any>
reject: (result?: any) => Promise<any>
}

/**
Expand Down Expand Up @@ -354,6 +354,7 @@ export class NavigationInstruction {
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
}

Expand Down Expand Up @@ -480,6 +481,11 @@ export class NavModel {
*/
config: RouteConfig = null;

/**
* The router associated with this navitation model.
*/
router: Router;

constructor(router: Router, relativeHref: string) {
this.router = router;
this.relativeHref = relativeHref;
Expand Down Expand Up @@ -1302,6 +1308,8 @@ export class Router {
let current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions dist/commonjs/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ var NavigationInstruction = exports.NavigationInstruction = function () {
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
};

Expand Down Expand Up @@ -922,6 +923,8 @@ var Router = exports.Router = function () {
var current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
};
Expand Down
3 changes: 3 additions & 0 deletions dist/es2015/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export let NavigationInstruction = class NavigationInstruction {
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
}

Expand Down Expand Up @@ -815,6 +816,8 @@ export let Router = class Router {
let current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions dist/native-modules/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export var NavigationInstruction = function () {
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
};

Expand Down Expand Up @@ -901,6 +902,8 @@ export var Router = function () {
var current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
};
Expand Down
3 changes: 3 additions & 0 deletions dist/system/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,7 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende
return this.fragment;
}

path = encodeURI(path);
return this.fragment.substr(0, this.fragment.lastIndexOf(path));
};

Expand Down Expand Up @@ -1372,6 +1373,8 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende
var current = nav[i];
if (!current.config.href) {
current.href = _createRootedPath(current.relativeHref, this.baseUrl, this.history._hasPushState);
} else {
current.href = _normalizeAbsolutePath(current.config.href, this.history._hasPushState);
}
}
};
Expand Down
16 changes: 16 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
<a name="1.0.0-rc.1.0.1"></a>
# [1.0.0-rc.1.0.1](https://github.com/aurelia/router/compare/1.0.0-rc.1.0.0...v1.0.0-rc.1.0.1) (2016-07-12)


### Bug Fixes

* **navigation-instruction:** incorrect base url extraction ([b8036e4](https://github.com/aurelia/router/commit/b8036e4)), closes [#309](https://github.com/aurelia/router/issues/309)
* **router:** navigation model explicit href normalization ([e80a16c](https://github.com/aurelia/router/commit/e80a16c))


### Features

* **nav-model:** add router property to dts ([fe0070c](https://github.com/aurelia/router/commit/fe0070c)), closes [#359](https://github.com/aurelia/router/issues/359)



<a name="1.0.0-rc.1.0.0"></a>
# [1.0.0-rc.1.0.0](https://github.com/aurelia/router/compare/1.0.0-beta.2.0.1...v1.0.0-rc.1.0.0) (2016-06-22)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json

Large diffs are not rendered by default.

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.0.0-rc.1.0.0",
"version": "1.0.0-rc.1.0.1",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit de7b0ed

Please sign in to comment.