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 335f2a7 commit 7c35917
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 14 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-route-recognizer",
"version": "1.0.0-rc.1.0.0",
"version": "1.0.0-rc.1.0.1",
"description": "A lightweight JavaScript library that matches paths against registered routes. It includes support for dynamic and star segments and nested handlers.",
"keywords": [
"aurelia",
Expand Down
8 changes: 6 additions & 2 deletions dist/amd/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,17 @@ define(['exports', 'aurelia-path'], function (exports, _aureliaPath) {
};

RouteRecognizer.prototype.generate = function generate(name, params) {
var routeParams = Object.assign({}, params);

var route = this.names[name];
if (!route) {
throw new Error('There is no route named ' + name);
}

var handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

var routeParams = Object.assign({}, params);
var segments = route.segments;
var consumed = {};
var output = '';
Expand Down
8 changes: 6 additions & 2 deletions dist/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,17 @@ export class RouteRecognizer {
* @returns The generated absolute path and query string.
*/
generate(name: string, params: Object): string {
let routeParams = Object.assign({}, params);

let route = this.names[name];
if (!route) {
throw new Error(`There is no route named ${name}`);
}

let handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

let routeParams = Object.assign({}, params);
let segments = route.segments;
let consumed = {};
let output = '';
Expand Down
8 changes: 6 additions & 2 deletions dist/commonjs/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,13 +259,17 @@ var RouteRecognizer = exports.RouteRecognizer = function () {
};

RouteRecognizer.prototype.generate = function generate(name, params) {
var routeParams = Object.assign({}, params);

var route = this.names[name];
if (!route) {
throw new Error('There is no route named ' + name);
}

var handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

var routeParams = Object.assign({}, params);
var segments = route.segments;
var consumed = {};
var output = '';
Expand Down
8 changes: 6 additions & 2 deletions dist/es2015/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,17 @@ export let RouteRecognizer = class RouteRecognizer {
}

generate(name, params) {
let routeParams = Object.assign({}, params);

let route = this.names[name];
if (!route) {
throw new Error(`There is no route named ${ name }`);
}

let handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

let routeParams = Object.assign({}, params);
let segments = route.segments;
let consumed = {};
let output = '';
Expand Down
8 changes: 6 additions & 2 deletions dist/native-modules/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,17 @@ export var RouteRecognizer = function () {
};

RouteRecognizer.prototype.generate = function generate(name, params) {
var routeParams = Object.assign({}, params);

var route = this.names[name];
if (!route) {
throw new Error('There is no route named ' + name);
}

var handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

var routeParams = Object.assign({}, params);
var segments = route.segments;
var consumed = {};
var output = '';
Expand Down
8 changes: 6 additions & 2 deletions dist/system/aurelia-route-recognizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,13 +375,17 @@ System.register(['aurelia-path'], function (_export, _context) {
};

RouteRecognizer.prototype.generate = function generate(name, params) {
var routeParams = Object.assign({}, params);

var route = this.names[name];
if (!route) {
throw new Error('There is no route named ' + name);
}

var handler = route.handlers[0].handler;
if (handler.href) {
return handler.href;
}

var routeParams = Object.assign({}, params);
var segments = route.segments;
var consumed = {};
var output = '';
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.0.0-rc.1.0.1"></a>
# [1.0.0-rc.1.0.1](https://github.com/aurelia/route-recognizer/compare/1.0.0-rc.1.0.0...v1.0.0-rc.1.0.1) (2016-07-12)


### Bug Fixes

* **route-recognizer:** respect explicit href during generation ([335f2a7](https://github.com/aurelia/route-recognizer/commit/335f2a7))



<a name="1.0.0-rc.1.0.0"></a>
# [1.0.0-rc.1.0.0](https://github.com/aurelia/route-recognizer/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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-route-recognizer",
"version": "1.0.0-rc.1.0.0",
"version": "1.0.0-rc.1.0.1",
"description": "A lightweight JavaScript library that matches paths against registered routes. It includes support for dynamic and star segments and nested handlers.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 7c35917

Please sign in to comment.