Skip to content

Commit

Permalink
chore(all): prepare release 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Mar 3, 2020
1 parent ca97e85 commit f93accc
Show file tree
Hide file tree
Showing 9 changed files with 134 additions and 26 deletions.
15 changes: 15 additions & 0 deletions dist/amd/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,21 @@ 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 === "ACTION" && message.payload) {
var byName = Array.from(_this.actions).find(function (_a) {
var reducer = _a[0];
return reducer.name === message.payload.name;
});
var action = _this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
_this.dispatch.apply(_this, [action].concat(message.payload.args.slice(1).map(function (arg) { return JSON.parse(arg); })));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
15 changes: 15 additions & 0 deletions dist/commonjs/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,21 @@ 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 === "ACTION" && message.payload) {
var byName = Array.from(_this.actions).find(function (_a) {
var reducer = _a[0];
return reducer.name === message.payload.name;
});
var action = _this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
_this.dispatch.apply(_this, [action].concat(message.payload.args.slice(1).map(function (arg) { return JSON.parse(arg); })));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
14 changes: 14 additions & 0 deletions dist/es2015/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,20 @@ 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 === "ACTION" && message.payload) {
const byName = Array.from(this.actions).find(function ([reducer]) {
return reducer.name === message.payload.name;
});
const action = this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
this.dispatch(action, ...message.payload.args.slice(1).map((arg) => JSON.parse(arg)));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
14 changes: 14 additions & 0 deletions dist/es2017/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,20 @@ 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 === "ACTION" && message.payload) {
const byName = Array.from(this.actions).find(function ([reducer]) {
return reducer.name === message.payload.name;
});
const action = this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
this.dispatch(action, ...message.payload.args.slice(1).map((arg) => JSON.parse(arg)));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
15 changes: 15 additions & 0 deletions dist/native-modules/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,21 @@ 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 === "ACTION" && message.payload) {
var byName = Array.from(_this.actions).find(function (_a) {
var reducer = _a[0];
return reducer.name === message.payload.name;
});
var action = _this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
_this.dispatch.apply(_this, [action].concat(message.payload.args.slice(1).map(function (arg) { return JSON.parse(arg); })));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
14 changes: 14 additions & 0 deletions dist/umd-es2015/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,20 @@
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 === "ACTION" && message.payload) {
const byName = Array.from(this.actions).find(function ([reducer]) {
return reducer.name === message.payload.name;
});
const action = this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
this.dispatch(action, ...message.payload.args.slice(1).map((arg) => JSON.parse(arg)));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
15 changes: 15 additions & 0 deletions dist/umd/aurelia-store.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,21 @@
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 === "ACTION" && message.payload) {
var byName = Array.from(_this.actions).find(function (_a) {
var reducer = _a[0];
return reducer.name === message.payload.name;
});
var action = _this.lookupAction(message.payload.name) || byName && byName[0];
if (!action) {
throw new Error("Tried to remotely dispatch an unregistered action");
}
if (!message.payload.args || message.payload.args.length < 1) {
throw new Error("No action arguments provided");
}
_this.dispatch.apply(_this, [action].concat(message.payload.args.slice(1).map(function (arg) { return JSON.parse(arg); })));
return;
}
if (message.type === "DISPATCH" && message.payload) {
switch (message.payload.type) {
case "JUMP_TO_STATE":
Expand Down
51 changes: 30 additions & 21 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
<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)


### Features

* **dispatch:** piped dispatch ([4a78ad5](https://github.com/aurelia/store/commit/4a78ad5))
* **polyfills:** ship with object.entries polyfill ([8ee1156](https://github.com/aurelia/store/commit/8ee1156))



<a name="1.6.0"></a>
# [1.6.0](https://github.com/aurelia/store/compare/1.5.0...1.6.0) (2020-03-03)


### Features

* **devtools:** basic dispatcher support ([ca97e85](https://github.com/aurelia/store/commit/ca97e85))


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


### Features

* **dispatch:** piped dispatch ([4a78ad5](https://github.com/aurelia/store/commit/4a78ad5))
* **polyfills:** ship with object.entries polyfill ([8ee1156](https://github.com/aurelia/store/commit/8ee1156))



<a name="1.3.5"></a>
## [1.3.5](https://github.com/aurelia/store/compare/1.3.4...1.3.5) (2019-05-29)

Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-store",
"version": "1.5.0",
"version": "1.6.0",
"description": "Aurelia single state store based on RxJS",
"keywords": [
"aurelia",
Expand All @@ -23,13 +23,10 @@
"build": "cross-env TS_NODE_PROJECT=build/tsconfig.json ts-node build/build.ts",
"bundle-dts": "dts-bundle-generator --project tsconfig-build.json -o dist/aurelia-store.d.ts src/aurelia-store.ts --external-types []",
"precommit": "npm run lint",
"predoc": "cross-env rimraf doc/api.json && rimraf dist/doc-temp && tsc --p tsconfig-build.json --module amd --outFile dist/doc-temp/aurelia-store.js && node doc/shape-defs && copyfiles tsconfig.json dist/doc-temp",
"doc": "cross-env typedoc --json doc/api.json --excludeExternals --includeDeclarations --mode modules --target ES6 --name aurelia-store-docs dist/doc-temp/",
"postdoc": "cross-env node doc/shape-doc && rimraf dist/doc-temp",
"changelog": "cross-env conventional-changelog -p angular -i doc/CHANGELOG.md -s",
"bump-version": "npm --no-git-tag-version version",
"preprepare-release": "cross-env npm run test",
"prepare-release": "cross-env npm run changelog && npm run build && npm run doc"
"prepare-release": "cross-env npm run changelog && npm run build"
},
"jest": {
"modulePaths": [
Expand Down

0 comments on commit f93accc

Please sign in to comment.