Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-rc.1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jul 24, 2016
1 parent f6bba1b commit 2caca3a
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 21 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.1",
"version": "1.0.0-rc.1.0.2",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down
7 changes: 4 additions & 3 deletions dist/amd/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -915,7 +915,7 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down Expand Up @@ -1079,11 +1079,12 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
var _name2 = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -1236,7 +1236,7 @@ export class Router {

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if ((!navModel.href && navModel.href !== '') && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down Expand Up @@ -1407,11 +1407,12 @@ function validateRouteConfig(config: RouteConfig): void {
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
let name = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/commonjs/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ var Router = exports.Router = function () {

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down Expand Up @@ -1034,11 +1034,12 @@ function validateRouteConfig(config) {
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
var _name2 = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/es2015/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ export let Router = class Router {

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down Expand Up @@ -911,11 +911,12 @@ function validateRouteConfig(config) {
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
let name = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/native-modules/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -849,7 +849,7 @@ export var Router = function () {

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down Expand Up @@ -1013,11 +1013,12 @@ function validateRouteConfig(config) {
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
var _name2 = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down
7 changes: 4 additions & 3 deletions dist/system/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,12 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende
}

if (typeof config.route !== 'string') {
throw new Error('Invalid Route Config: You must specify a route pattern.');
var _name2 = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + _name2 + '": You must specify a "route:" pattern.');
}

if (!('redirect' in config || config.moduleId || config.navigationStrategy || config.viewPorts)) {
throw new Error('Invalid Route Config: You must specify a moduleId, redirect, navigationStrategy, or viewPorts.');
throw new Error('Invalid Route Config for "' + config.route + '": You must specify a "moduleId:", "redirect:", "navigationStrategy:", or "viewPorts:".');
}
}

Expand Down Expand Up @@ -1320,7 +1321,7 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende

if ((navModel.order || navModel.order === 0) && this.navigation.indexOf(navModel) === -1) {
if (!navModel.href && navModel.href !== '' && (state.types.dynamics || state.types.stars)) {
throw new Error('Invalid route config: dynamic routes must specify an href to be included in the navigation model.');
throw new Error('Invalid route config for "' + config.route + '" : dynamic routes must specify an "href:" to be included in the navigation model.');
}

if (typeof navModel.order !== 'number') {
Expand Down
5 changes: 5 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<a name="1.0.0-rc.1.0.2"></a>
# [1.0.0-rc.1.0.2](https://github.com/aurelia/router/compare/1.0.0-rc.1.0.1...v1.0.0-rc.1.0.2) (2016-07-24)



<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)

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.0.0-rc.1.0.1",
"version": "1.0.0-rc.1.0.2",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down
2 changes: 1 addition & 1 deletion src/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ function validateRouteConfig(config: RouteConfig): void {
}

if (typeof config.route !== 'string') {
var name = config.name || '(no name)';
let name = config.name || '(no name)';
throw new Error('Invalid Route Config for "' + name + '": You must specify a "route:" pattern.');
}

Expand Down

0 comments on commit 2caca3a

Please sign in to comment.