Skip to content

Commit

Permalink
chore(all): prepare release 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Feb 24, 2018
1 parent 1c4e1e4 commit 042b1cc
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 8 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": "1.1.0",
"version": "1.1.1",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand Down
7 changes: 6 additions & 1 deletion dist/amd/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,13 @@ define(['exports', 'aurelia-pal', 'aurelia-history'], function (exports, _aureli

BrowserHistory.prototype.setState = function setState(key, value) {
var state = Object.assign({}, this.history.state);
var _location = this.location;
var pathname = _location.pathname;
var search = _location.search;
var hash = _location.hash;

state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, '' + pathname + search + hash);
};

BrowserHistory.prototype.getState = function getState(key) {
Expand Down
3 changes: 2 additions & 1 deletion dist/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,9 @@ export class BrowserHistory extends History {
*/
setState(key: string, value: any): void {
let state = Object.assign({}, this.history.state);
let { pathname, search, hash } = this.location;
state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, `${pathname}${search}${hash}`);
}

/**
Expand Down
7 changes: 6 additions & 1 deletion dist/commonjs/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,13 @@ var BrowserHistory = exports.BrowserHistory = (_temp = _class = function (_Histo

BrowserHistory.prototype.setState = function setState(key, value) {
var state = Object.assign({}, this.history.state);
var _location = this.location;
var pathname = _location.pathname;
var search = _location.search;
var hash = _location.hash;

state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, '' + pathname + search + hash);
};

BrowserHistory.prototype.getState = function getState(key) {
Expand Down
3 changes: 2 additions & 1 deletion dist/es2015/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,9 @@ export let BrowserHistory = (_temp = _class = class BrowserHistory extends Histo

setState(key, value) {
let state = Object.assign({}, this.history.state);
let { pathname, search, hash } = this.location;
state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, `${ pathname }${ search }${ hash }`);
}

getState(key) {
Expand Down
7 changes: 6 additions & 1 deletion dist/native-modules/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,13 @@ export var BrowserHistory = (_temp = _class = function (_History) {

BrowserHistory.prototype.setState = function setState(key, value) {
var state = Object.assign({}, this.history.state);
var _location = this.location;
var pathname = _location.pathname;
var search = _location.search;
var hash = _location.hash;

state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, '' + pathname + search + hash);
};

BrowserHistory.prototype.getState = function getState(key) {
Expand Down
7 changes: 6 additions & 1 deletion dist/system/aurelia-history-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,13 @@ System.register(['aurelia-pal', 'aurelia-history'], function (_export, _context)

BrowserHistory.prototype.setState = function setState(key, value) {
var state = Object.assign({}, this.history.state);
var _location = this.location;
var pathname = _location.pathname;
var search = _location.search;
var hash = _location.hash;

state[key] = value;
this.history.replaceState(state, null, null);
this.history.replaceState(state, null, '' + pathname + search + hash);
};

BrowserHistory.prototype.getState = function getState(key) {
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.1.1"></a>
## [1.1.1](https://github.com/aurelia/history-browser/compare/1.1.0...v1.1.1) (2018-02-24)


### Bug Fixes

* **history-browser:** Add location.href to replaceState() call ([424c252](https://github.com/aurelia/history-browser/commit/424c252))



<a name="1.1.0"></a>
# [1.1.0](https://github.com/aurelia/history-browser/compare/1.0.0...v1.1.0) (2017-09-29)

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-history-browser",
"version": "1.1.0",
"version": "1.1.1",
"description": "An implementation of the Aurelia history interface based on standard browser hash change and push state mechanisms.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 042b1cc

Please sign in to comment.