Skip to content

Commit

Permalink
chore(all): prepare release 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Nov 10, 2015
1 parent 7fb9e3a commit d384244
Show file tree
Hide file tree
Showing 14 changed files with 148 additions and 36 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-history-browser",
"version": "0.9.0",
"version": "0.10.0",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand Down
7 changes: 7 additions & 0 deletions dist/amd/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare module 'aurelia-history-browser' {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean;
Expand All @@ -97,6 +98,7 @@ declare module 'aurelia-history-browser' {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand All @@ -107,5 +109,10 @@ declare module 'aurelia-history-browser' {
* Causes the history state to navigate back.
*/
navigateBack(): void;

/**
* Sets the document title.
*/
setTitle(title: string): void;
}
}
9 changes: 5 additions & 4 deletions dist/amd/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ define(['exports', 'core-js', 'aurelia-pal', 'aurelia-history'], function (expor

function configure(config) {
config.singleton(_aureliaHistory.History, BrowserHistory);

if (!config.container.hasHandler(LinkHandler)) {
config.transient(LinkHandler, DefaultLinkHandler);
}
config.transient(LinkHandler, DefaultLinkHandler);
}

var BrowserHistory = (function (_History) {
Expand Down Expand Up @@ -244,6 +241,10 @@ define(['exports', 'core-js', 'aurelia-pal', 'aurelia-history'], function (expor
this.history.back();
};

BrowserHistory.prototype.setTitle = function setTitle(title) {
_aureliaPal.DOM.title = title;
};

BrowserHistory.prototype._getHash = function _getHash() {
return this.location.hash.substr(1);
};
Expand Down
7 changes: 7 additions & 0 deletions dist/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare module 'aurelia-history-browser' {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean;
Expand All @@ -97,6 +98,7 @@ declare module 'aurelia-history-browser' {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand All @@ -107,5 +109,10 @@ declare module 'aurelia-history-browser' {
* Causes the history state to navigate back.
*/
navigateBack(): void;

/**
* Sets the document title.
*/
setTitle(title: string): void;
}
}
14 changes: 10 additions & 4 deletions dist/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ export class DefaultLinkHandler extends LinkHandler {
*/
export function configure(config: Object): void {
config.singleton(History, BrowserHistory);

if (!config.container.hasHandler(LinkHandler)) {
config.transient(LinkHandler, DefaultLinkHandler);
}
config.transient(LinkHandler, DefaultLinkHandler);
}

/**
Expand All @@ -157,6 +154,7 @@ export class BrowserHistory extends History {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean {
Expand Down Expand Up @@ -231,6 +229,7 @@ export class BrowserHistory extends History {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand Down Expand Up @@ -286,6 +285,13 @@ export class BrowserHistory extends History {
this.history.back();
}

/**
* Sets the document title.
*/
setTitle(title: string): void {
DOM.title = title;
}

_getHash(): string {
return this.location.hash.substr(1);
}
Expand Down
7 changes: 7 additions & 0 deletions dist/commonjs/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare module 'aurelia-history-browser' {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean;
Expand All @@ -97,6 +98,7 @@ declare module 'aurelia-history-browser' {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand All @@ -107,5 +109,10 @@ declare module 'aurelia-history-browser' {
* Causes the history state to navigate back.
*/
navigateBack(): void;

/**
* Sets the document title.
*/
setTitle(title: string): void;
}
}
9 changes: 5 additions & 4 deletions dist/commonjs/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,7 @@ exports.DefaultLinkHandler = DefaultLinkHandler;

function configure(config) {
config.singleton(_aureliaHistory.History, BrowserHistory);

if (!config.container.hasHandler(LinkHandler)) {
config.transient(LinkHandler, DefaultLinkHandler);
}
config.transient(LinkHandler, DefaultLinkHandler);
}

var BrowserHistory = (function (_History) {
Expand Down Expand Up @@ -249,6 +246,10 @@ var BrowserHistory = (function (_History) {
this.history.back();
};

BrowserHistory.prototype.setTitle = function setTitle(title) {
_aureliaPal.DOM.title = title;
};

BrowserHistory.prototype._getHash = function _getHash() {
return this.location.hash.substr(1);
};
Expand Down
7 changes: 7 additions & 0 deletions dist/es6/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare module 'aurelia-history-browser' {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean;
Expand All @@ -97,6 +98,7 @@ declare module 'aurelia-history-browser' {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand All @@ -107,5 +109,10 @@ declare module 'aurelia-history-browser' {
* Causes the history state to navigate back.
*/
navigateBack(): void;

/**
* Sets the document title.
*/
setTitle(title: string): void;
}
}
14 changes: 10 additions & 4 deletions dist/es6/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,7 @@ export class DefaultLinkHandler extends LinkHandler {
*/
export function configure(config: Object): void {
config.singleton(History, BrowserHistory);

if (!config.container.hasHandler(LinkHandler)) {
config.transient(LinkHandler, DefaultLinkHandler);
}
config.transient(LinkHandler, DefaultLinkHandler);
}

/**
Expand All @@ -157,6 +154,7 @@ export class BrowserHistory extends History {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean {
Expand Down Expand Up @@ -231,6 +229,7 @@ export class BrowserHistory extends History {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand Down Expand Up @@ -286,6 +285,13 @@ export class BrowserHistory extends History {
this.history.back();
}

/**
* Sets the document title.
*/
setTitle(title: string): void {
DOM.title = title;
}

_getHash(): string {
return this.location.hash.substr(1);
}
Expand Down
7 changes: 7 additions & 0 deletions dist/system/aurelia-history-browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ declare module 'aurelia-history-browser' {

/**
* Activates the history object.
*
* @param options The set of options to activate history with.
*/
activate(options?: Object): boolean;
Expand All @@ -97,6 +98,7 @@ declare module 'aurelia-history-browser' {

/**
* Causes a history navigation to occur.
*
* @param fragment The history fragment to navigate to.
* @param options The set of options that specify how the navigation should occur.
* @return True if navigation occurred/false otherwise.
Expand All @@ -107,5 +109,10 @@ declare module 'aurelia-history-browser' {
* Causes the history state to navigate back.
*/
navigateBack(): void;

/**
* Sets the document title.
*/
setTitle(title: string): void;
}
}
9 changes: 5 additions & 4 deletions dist/system/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ System.register(['core-js', 'aurelia-pal', 'aurelia-history'], function (_export

function configure(config) {
config.singleton(History, BrowserHistory);

if (!config.container.hasHandler(LinkHandler)) {
config.transient(LinkHandler, DefaultLinkHandler);
}
config.transient(LinkHandler, DefaultLinkHandler);
}

function updateHash(location, fragment, replace) {
Expand Down Expand Up @@ -260,6 +257,10 @@ System.register(['core-js', 'aurelia-pal', 'aurelia-history'], function (_export
this.history.back();
};

BrowserHistory.prototype.setTitle = function setTitle(title) {
DOM.title = title;
};

BrowserHistory.prototype._getHash = function _getHash() {
return this.location.hash.substr(1);
};
Expand Down
13 changes: 13 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
## 0.10.0 (2015-11-09)


#### Bug Fixes

* **index:** update to latest container api ([4690d655](http://github.com/aurelia/history-browser/commit/4690d65522004040ce9118ffbaf646d6b8babd4f))


#### Features

* **history:** implement method for setting document title ([dc17f75c](http://github.com/aurelia/history-browser/commit/dc17f75cb68a6d83bf780495666beb88c9eaeaa3))


## 0.9.0 (2015-10-13)


Expand Down
Loading

0 comments on commit d384244

Please sign in to comment.