Skip to content

Commit

Permalink
chore(all): prepare release 1.0.0-beta.1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Apr 13, 2016
1 parent 778fbc8 commit e52ca96
Show file tree
Hide file tree
Showing 14 changed files with 890 additions and 435 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-beta.1.2.0",
"version": "1.0.0-beta.1.2.1",
"description": "A powerful client-side router.",
"keywords": [
"aurelia",
Expand Down
24 changes: 24 additions & 0 deletions dist/amd/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,30 @@ declare module 'aurelia-router' {
navigate(appRouter: Router): void;
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params?: any, options?: any);

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void;

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void;
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
27 changes: 26 additions & 1 deletion dist/amd/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AppRouter = exports.PipelineProvider = exports.LoadRouteStep = exports.RouteLoader = exports.ActivateNextStep = exports.DeactivatePreviousStep = exports.CanActivateNextStep = exports.CanDeactivatePreviousStep = exports.Router = exports.BuildNavigationPlanStep = exports.activationStrategy = exports.RouterConfiguration = exports.Redirect = exports.NavModel = exports.NavigationInstruction = exports.CommitChangesStep = exports.Pipeline = exports.pipelineStatus = undefined;
exports.AppRouter = exports.PipelineProvider = exports.LoadRouteStep = exports.RouteLoader = exports.ActivateNextStep = exports.DeactivatePreviousStep = exports.CanActivateNextStep = exports.CanDeactivatePreviousStep = exports.Router = exports.BuildNavigationPlanStep = exports.activationStrategy = exports.RouterConfiguration = exports.RedirectToRoute = exports.Redirect = exports.NavModel = exports.NavigationInstruction = exports.CommitChangesStep = exports.Pipeline = exports.pipelineStatus = undefined;
exports._normalizeAbsolutePath = _normalizeAbsolutePath;
exports._createRootedPath = _createRootedPath;
exports._resolveUrl = _resolveUrl;
Expand Down Expand Up @@ -458,6 +458,31 @@ define(['exports', 'aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depen
return Redirect;
}();

var RedirectToRoute = exports.RedirectToRoute = function () {
function RedirectToRoute(route) {
var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];

_classCallCheck(this, RedirectToRoute);

this.route = route;
this.params = params;
this.options = Object.assign({ trigger: true, replace: true }, options);
this.shouldContinueProcessing = false;
}

RedirectToRoute.prototype.setRouter = function setRouter(router) {
this.router = router;
};

RedirectToRoute.prototype.navigate = function navigate(appRouter) {
var navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
navigatingRouter.navigateToRoute(this.route, this.params, this.options);
};

return RedirectToRoute;
}();

var RouterConfiguration = exports.RouterConfiguration = function () {
function RouterConfiguration() {
_classCallCheck(this, RouterConfiguration);
Expand Down
24 changes: 24 additions & 0 deletions dist/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,30 @@ declare module 'aurelia-router' {
navigate(appRouter: Router): void;
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params?: any, options?: any);

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void;

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void;
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
34 changes: 34 additions & 0 deletions dist/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,40 @@ export class Redirect {
}
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params: any = {}, options: any = {}) {
this.route = route;
this.params = params;
this.options = Object.assign({ trigger: true, replace: true }, options);
this.shouldContinueProcessing = false;
}

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void {
this.router = router;
}

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void {
let navigatingRouter = this.options.useAppRouter ? appRouter : (this.router || appRouter);
navigatingRouter.navigateToRoute(this.route, this.params, this.options);
}
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
24 changes: 24 additions & 0 deletions dist/commonjs/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,30 @@ declare module 'aurelia-router' {
navigate(appRouter: Router): void;
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params?: any, options?: any);

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void;

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void;
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
27 changes: 26 additions & 1 deletion dist/commonjs/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AppRouter = exports.PipelineProvider = exports.LoadRouteStep = exports.RouteLoader = exports.ActivateNextStep = exports.DeactivatePreviousStep = exports.CanActivateNextStep = exports.CanDeactivatePreviousStep = exports.Router = exports.BuildNavigationPlanStep = exports.activationStrategy = exports.RouterConfiguration = exports.Redirect = exports.NavModel = exports.NavigationInstruction = exports.CommitChangesStep = exports.Pipeline = exports.pipelineStatus = undefined;
exports.AppRouter = exports.PipelineProvider = exports.LoadRouteStep = exports.RouteLoader = exports.ActivateNextStep = exports.DeactivatePreviousStep = exports.CanActivateNextStep = exports.CanDeactivatePreviousStep = exports.Router = exports.BuildNavigationPlanStep = exports.activationStrategy = exports.RouterConfiguration = exports.RedirectToRoute = exports.Redirect = exports.NavModel = exports.NavigationInstruction = exports.CommitChangesStep = exports.Pipeline = exports.pipelineStatus = undefined;

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };

Expand Down Expand Up @@ -409,6 +409,31 @@ var Redirect = exports.Redirect = function () {
return Redirect;
}();

var RedirectToRoute = exports.RedirectToRoute = function () {
function RedirectToRoute(route) {
var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];

_classCallCheck(this, RedirectToRoute);

this.route = route;
this.params = params;
this.options = Object.assign({ trigger: true, replace: true }, options);
this.shouldContinueProcessing = false;
}

RedirectToRoute.prototype.setRouter = function setRouter(router) {
this.router = router;
};

RedirectToRoute.prototype.navigate = function navigate(appRouter) {
var navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
navigatingRouter.navigateToRoute(this.route, this.params, this.options);
};

return RedirectToRoute;
}();

var RouterConfiguration = exports.RouterConfiguration = function () {
function RouterConfiguration() {
_classCallCheck(this, RouterConfiguration);
Expand Down
24 changes: 24 additions & 0 deletions dist/es2015/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,30 @@ declare module 'aurelia-router' {
navigate(appRouter: Router): void;
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params?: any, options?: any);

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void;

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void;
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
18 changes: 18 additions & 0 deletions dist/es2015/aurelia-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,24 @@ export let Redirect = class Redirect {
}
};

export let RedirectToRoute = class RedirectToRoute {
constructor(route, params = {}, options = {}) {
this.route = route;
this.params = params;
this.options = Object.assign({ trigger: true, replace: true }, options);
this.shouldContinueProcessing = false;
}

setRouter(router) {
this.router = router;
}

navigate(appRouter) {
let navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
navigatingRouter.navigateToRoute(this.route, this.params, this.options);
}
};

export let RouterConfiguration = class RouterConfiguration {
constructor() {
this.instructions = [];
Expand Down
24 changes: 24 additions & 0 deletions dist/system/aurelia-router.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,30 @@ declare module 'aurelia-router' {
navigate(appRouter: Router): void;
}

/**
* Used during the activation lifecycle to cause a redirect to a named route.
* @param route The name of the route.
* @param params The parameters to be sent to the activation method.
* @param options The options to use for navigation.
*/
export class RedirectToRoute {
constructor(route: string, params?: any, options?: any);

/**
* Called by the activation system to set the child router.
*
* @param router The router.
*/
setRouter(router: Router): void;

/**
* Called by the navigation pipeline to navigate.
*
* @param appRouter The router to be redirected.
*/
navigate(appRouter: Router): void;
}

/**
* Class used to configure a [[Router]] instance.
*
Expand Down
29 changes: 28 additions & 1 deletion dist/system/aurelia-router.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-dependency-injection', 'aurelia-history', 'aurelia-event-aggregator'], function (_export, _context) {
var LogManager, RouteRecognizer, Container, History, EventAggregator, _typeof, _createClass, isRootedPath, isAbsoluteUrl, pipelineStatus, Pipeline, CommitChangesStep, NavigationInstruction, NavModel, Redirect, RouterConfiguration, activationStrategy, BuildNavigationPlanStep, Router, CanDeactivatePreviousStep, CanActivateNextStep, DeactivatePreviousStep, ActivateNextStep, RouteLoader, LoadRouteStep, PipelineProvider, logger, AppRouter;
var LogManager, RouteRecognizer, Container, History, EventAggregator, _typeof, _createClass, isRootedPath, isAbsoluteUrl, pipelineStatus, Pipeline, CommitChangesStep, NavigationInstruction, NavModel, Redirect, RedirectToRoute, RouterConfiguration, activationStrategy, BuildNavigationPlanStep, Router, CanDeactivatePreviousStep, CanActivateNextStep, DeactivatePreviousStep, ActivateNextStep, RouteLoader, LoadRouteStep, PipelineProvider, logger, AppRouter;

function _possibleConstructorReturn(self, call) {
if (!self) {
Expand Down Expand Up @@ -877,6 +877,33 @@ System.register(['aurelia-logging', 'aurelia-route-recognizer', 'aurelia-depende

_export('Redirect', Redirect);

_export('RedirectToRoute', RedirectToRoute = function () {
function RedirectToRoute(route) {
var params = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];

_classCallCheck(this, RedirectToRoute);

this.route = route;
this.params = params;
this.options = Object.assign({ trigger: true, replace: true }, options);
this.shouldContinueProcessing = false;
}

RedirectToRoute.prototype.setRouter = function setRouter(router) {
this.router = router;
};

RedirectToRoute.prototype.navigate = function navigate(appRouter) {
var navigatingRouter = this.options.useAppRouter ? appRouter : this.router || appRouter;
navigatingRouter.navigateToRoute(this.route, this.params, this.options);
};

return RedirectToRoute;
}());

_export('RedirectToRoute', RedirectToRoute);

_export('RouterConfiguration', RouterConfiguration = function () {
function RouterConfiguration() {
_classCallCheck(this, RouterConfiguration);
Expand Down
8 changes: 8 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 1.0.0-beta.1.2.1 (2016-04-13)


#### Features

* add support for RedirectToRoute ([778fbc81](http://github.com/aurelia/router/commit/778fbc8146afe81f37fd7aff79d1c9c8e519df3f))


### 1.0.0-beta.1.2.0 (2016-03-22)


Expand Down
Loading

0 comments on commit e52ca96

Please sign in to comment.