Skip to content

Commit

Permalink
chore(all): prepare release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Jan 28, 2020
1 parent fd827da commit ed5c137
Show file tree
Hide file tree
Showing 10 changed files with 156 additions and 46 deletions.
21 changes: 19 additions & 2 deletions dist/amd/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,8 +495,25 @@ define('aurelia-store', ['exports', 'rxjs', 'aurelia-dependency-injection', 'aur
this.devTools.init(this.initialState);
this.devTools.subscribe(function (message) {
_this.logger[getLogType(_this.options, "devToolsStatus", exports.LogLevel.debug)]("DevTools sent change " + message.type);
if (message.type === "DISPATCH") {
_this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
_this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
_this.devTools.init(_this._state.getValue());
return;
case "RESET":
_this.devTools.init(_this.initialState);
_this.resetToState(_this.initialState);
return;
case "ROLLBACK":
var parsedState = JSON.parse(message.state);
_this.resetToState(parsedState);
_this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/commonjs/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,25 @@ var Store = /** @class */ (function () {
this.devTools.init(this.initialState);
this.devTools.subscribe(function (message) {
_this.logger[getLogType(_this.options, "devToolsStatus", exports.LogLevel.debug)]("DevTools sent change " + message.type);
if (message.type === "DISPATCH") {
_this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
_this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
_this.devTools.init(_this._state.getValue());
return;
case "RESET":
_this.devTools.init(_this.initialState);
_this.resetToState(_this.initialState);
return;
case "ROLLBACK":
var parsedState = JSON.parse(message.state);
_this.resetToState(parsedState);
_this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/es2015/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,25 @@ class Store {
this.devTools.init(this.initialState);
this.devTools.subscribe((message) => {
this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)](`DevTools sent change ${message.type}`);
if (message.type === "DISPATCH") {
this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
this.devTools.init(this._state.getValue());
return;
case "RESET":
this.devTools.init(this.initialState);
this.resetToState(this.initialState);
return;
case "ROLLBACK":
const parsedState = JSON.parse(message.state);
this.resetToState(parsedState);
this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/es2017/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,8 +344,25 @@ class Store {
this.devTools.init(this.initialState);
this.devTools.subscribe((message) => {
this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)](`DevTools sent change ${message.type}`);
if (message.type === "DISPATCH") {
this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
this.devTools.init(this._state.getValue());
return;
case "RESET":
this.devTools.init(this.initialState);
this.resetToState(this.initialState);
return;
case "ROLLBACK":
const parsedState = JSON.parse(message.state);
this.resetToState(parsedState);
this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/native-modules/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,25 @@ var Store = /** @class */ (function () {
this.devTools.init(this.initialState);
this.devTools.subscribe(function (message) {
_this.logger[getLogType(_this.options, "devToolsStatus", LogLevel.debug)]("DevTools sent change " + message.type);
if (message.type === "DISPATCH") {
_this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
_this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
_this.devTools.init(_this._state.getValue());
return;
case "RESET":
_this.devTools.init(_this.initialState);
_this.resetToState(_this.initialState);
return;
case "ROLLBACK":
var parsedState = JSON.parse(message.state);
_this.resetToState(parsedState);
_this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/umd-es2015/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,25 @@
this.devTools.init(this.initialState);
this.devTools.subscribe((message) => {
this.logger[getLogType(this.options, "devToolsStatus", exports.LogLevel.debug)](`DevTools sent change ${message.type}`);
if (message.type === "DISPATCH") {
this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
this.devTools.init(this._state.getValue());
return;
case "RESET":
this.devTools.init(this.initialState);
this.resetToState(this.initialState);
return;
case "ROLLBACK":
const parsedState = JSON.parse(message.state);
this.resetToState(parsedState);
this.devTools.init(parsedState);
return;
}
}
});
}
Expand Down
21 changes: 19 additions & 2 deletions dist/umd/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,25 @@
this.devTools.init(this.initialState);
this.devTools.subscribe(function (message) {
_this.logger[getLogType(_this.options, "devToolsStatus", exports.LogLevel.debug)]("DevTools sent change " + message.type);
if (message.type === "DISPATCH") {
_this._state.next(JSON.parse(message.state));
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
case "JUMP_TO_ACTION":
_this._state.next(JSON.parse(message.state));
return;
case "COMMIT":
_this.devTools.init(_this._state.getValue());
return;
case "RESET":
_this.devTools.init(_this.initialState);
_this.resetToState(_this.initialState);
return;
case "ROLLBACK":
var parsedState = JSON.parse(message.state);
_this.resetToState(parsedState);
_this.devTools.init(parsedState);
return;
}
}
});
}
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.5.0"></a>
# [1.5.0](https://github.com/aurelia/store/compare/1.4.0...1.5.0) (2020-01-28)


### Features

* **devtools:** implement redux devtools button handling ([#104](https://github.com/aurelia/store/issues/104)) ([86b7eda](https://github.com/aurelia/store/commit/86b7eda))



<a name="1.4.0"></a>
# [1.4.0](https://github.com/aurelia/store/compare/1.3.5...1.4.0) (2019-06-12)

Expand Down
43 changes: 12 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-store",
"version": "1.4.0",
"version": "1.5.0",
"description": "Aurelia single state store based on RxJS",
"keywords": [
"aurelia",
Expand Down

0 comments on commit ed5c137

Please sign in to comment.