diff --git a/dist/amd/aurelia-store.js.map b/dist/amd/aurelia-store.js.map index 883cc8f..143a11c 100644 --- a/dist/amd/aurelia-store.js.map +++ b/dist/amd/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;;;;IAQA,mBACE,OAA+B,EAC/B,OAAuC;QAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SACrE;QAED,OAAO,OAAO,CAAC,YAAY,CAAC;QAE5B,OAAO,CAAC,SAAS;aACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC;IAjBD,8BAiBC;IAED,kBAAwB;IACxB,yBAA+B;IAC/B,oBAA0B;IAC1B,uBAA6B;IAC7B,oBAA0B;IAC1B,sBAA4B"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;;;;IAQA,SAAgB,SAAS,CACvB,OAA+B,EAC/B,OAAuC;QAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SACrE;QAED,OAAO,OAAO,CAAC,YAAY,CAAC;QAE5B,OAAO,CAAC,SAAS;aACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC;IAjBD,8BAiBC;IAED,kBAAwB;IACxB,yBAA+B;IAC/B,oBAA0B;IAC1B,uBAA6B;IAC7B,oBAA0B;IAC1B,sBAA4B"} \ No newline at end of file diff --git a/dist/amd/decorator.js b/dist/amd/decorator.js index 62327d7..881cdb1 100644 --- a/dist/amd/decorator.js +++ b/dist/amd/decorator.js @@ -1,16 +1,22 @@ -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); }; define(["require", "exports", "aurelia-dependency-injection", "rxjs", "./store"], function (require, exports, aurelia_dependency_injection_1, rxjs_1, store_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var defaultSelector = function (store) { return store.state; }; function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } var store = aurelia_dependency_injection_1.Container.instance.get(store_1.Store); var _settings = __assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { @@ -21,12 +27,14 @@ define(["require", "exports", "aurelia-dependency-injection", "rxjs", "./store"] return store.state; } function createSelectors() { + var _a; var isSelectorObj = typeof _settings.selector === "object"; var fallbackSelector = (_a = {}, _a[_settings.target || "state"] = _settings.selector || defaultSelector, _a); return Object.entries(__assign({}, (isSelectorObj ? _settings.selector : fallbackSelector))).map(function (_a) { var target = _a[0], selector = _a[1]; + var _b; return ({ targets: _settings.target && isSelectorObj ? [_settings.target, target] : [target], selector: selector, @@ -38,9 +46,7 @@ define(["require", "exports", "aurelia-dependency-injection", "rxjs", "./store"] _b["propertyChanged"] = 0, _b) }); - var _b; }); - var _a; } return function (target) { var originalSetup = typeof settings === "object" && settings.setup diff --git a/dist/amd/decorator.js.map b/dist/amd/decorator.js.map index fda7e5d..175a196 100644 --- a/dist/amd/decorator.js.map +++ b/dist/amd/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":";;;;;;;;;;;IAiBA,IAAM,eAAe,GAAG,UAAI,KAAe,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,CAAC;IAE5D,mBAAsC,QAAyE;QAC7G,IAAM,KAAK,GAAG,wCAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAK,CAAa,CAAC;QACxD,IAAM,SAAS,cACb,QAAQ,EAAE,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,IAClE,QAAQ,CACZ,CAAC;QAEF,mBAAmB,QAAgD;YACjE,IAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;YAE7B,IAAI,MAAM,YAAY,iBAAU,EAAE;gBAChC,OAAO,MAAM,CAAC;aACf;YAEH,OAAO,KAAK,CAAC,KAAK,CAAC;QACrB,CAAC;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AG;gBACnG,IAAI,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE;oBACvE,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAC,GAAiB;wBACjD,IAAI,GAAG,YAAY,mBAAY,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;4BACvD,GAAG,CAAC,WAAW,EAAE,CAAC;yBACnB;oBACH,CAAC,CAAC,CAAC;iBACJ;gBAED,IAAI,gBAAgB,EAAE;oBACpB,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;iBAChD;YACH,CAAC,CAAA;QACH,CAAC,CAAA;IACH,CAAC;IA5FD,8BA4FC"} \ No newline at end of file diff --git a/dist/amd/history.js.map b/dist/amd/history.js.map index 164678a..f7057e1 100644 --- a/dist/amd/history.js.map +++ b/dist/amd/history.js.map @@ -1 +1 @@ -{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":";;;IAWA,cAAwB,KAAQ,EAAE,CAAS;QACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;QAC5C,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;QAE1D,OAAO,KAAK,CAAC;IACf,CAAC;IATD,oBASC;IAED,sBAAyB,KAAsB,EAAE,KAAa;QAC5D,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;YAC7C,OAAO,KAAK,CAAC;SACd;QAEO,IAAA,iBAAI,EAAE,qBAAM,EAAE,uBAAO,CAAW;QAExC,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AE,WAAW;YACpB,MAAM,EAAE,EAAE;SACX,CACF,CAAC;IACJ,CAAC;IAVD,4CAUC;IAED,SAAgB,WAAW,CAAI,KAAQ,EAAE,KAAa;QACpD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;YACzB,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,EAAE;gBAC7B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;aAC1D;YAED,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE;gBAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;aAC7C;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC;IAZD,kCAYC;IAED,SAAgB,cAAc,CAAC,OAAY;QACzC,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;YAC3C,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;YACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;YACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;YAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC;IAND,wCAMC"} \ No newline at end of file diff --git a/dist/amd/logging.d.ts b/dist/amd/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/amd/logging.d.ts +++ b/dist/amd/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/amd/logging.js b/dist/amd/logging.js index 8141a99..49ef6e0 100644 --- a/dist/amd/logging.js +++ b/dist/amd/logging.js @@ -1,7 +1,10 @@ var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } diff --git a/dist/amd/logging.js.map b/dist/amd/logging.js.map index 11effab..fab9141 100644 --- a/dist/amd/logging.js.map +++ b/dist/amd/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAGA,IAAY,QAOX;IAPD,WAAY,QAAQ;QAClB,2BAAe,CAAA;QACf,2BAAe,CAAA;QACf,yBAAa,CAAA;QACb,uBAAW,CAAA;QACX,yBAAa,CAAA;QACb,2BAAe,CAAA;IACjB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;IAED;QAAmC,iCAAM;QAAzC;;QAEA,CAAC;QAAD,oBAAC;IAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC;IAFY,sCAAa;IAU1B,oBACE,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;QAEtB,IAAI,UAAU;YACZ,OAAO,CAAC,cAAc;YACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;YACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;YACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;SAC5C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAdD,gCAcC"} \ No newline at end of file +{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;IAGA,IAAY,QAOX;IAPD,WAAY,QAAQ;QAClB,2BAAe,CAAA;QACf,2BAAe,CAAA;QACf,yBAAa,CAAA;QACb,uBAAW,CAAA;QACX,yBAAa,CAAA;QACb,2BAAe,CAAA;IACjB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;IAED;QAAmC,iCAAM;QAAzC;;QAEA,CAAC;QAAD,oBAAC;IAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC;IAFY,sCAAa;IAU1B,SAAgB,UAAU,CACxB,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;QAEtB,IAAI,UAAU;YACZ,OAAO,CAAC,cAAc;YACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;YACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;YACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;SAC5C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;IAdD,gCAcC"} \ No newline at end of file diff --git a/dist/amd/middleware.d.ts b/dist/amd/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/amd/middleware.d.ts +++ b/dist/amd/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/amd/middleware.js.map b/dist/amd/middleware.js.map index d9519e9..3f0f551 100644 --- a/dist/amd/middleware.js.map +++ b/dist/amd/middleware.js.map @@ -1 +1 @@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AAM,CAAC,YAAY,EAAE;YACjC,OAAO,KAAK,CAAC;SACd;QAED,IAAM,WAAW,GAAG,sBAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;QACvF,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,KAAK,CAAC;SACd;QAED,IAAI;YACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;SACjC;QAAC,OAAO,CAAC,EAAE,GAAG;QAEf,OAAO,KAAK,CAAC;IACf,CAAC;IAfD,8DAeC"} \ No newline at end of file diff --git a/dist/amd/store.d.ts b/dist/amd/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/amd/store.d.ts +++ b/dist/amd/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/amd/store.js b/dist/amd/store.js index 33835d8..e96466e 100644 --- a/dist/amd/store.js +++ b/dist/amd/store.js @@ -19,8 +19,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -269,7 +269,7 @@ define(["require", "exports", "rxjs", "aurelia-framework", "./history", "./middl if (aurelia_framework_1.PLATFORM.global.devToolsExtension) { this.logger[logging_1.getLogType(this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe(function (message) { _this.logger[logging_1.getLogType(_this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools sent change " + message.type); diff --git a/dist/amd/store.js.map b/dist/amd/store.js.map index 9c945c1..53b42c2 100644 --- a/dist/amd/store.js.map +++ b/dist/amd/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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AAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;qBAC7C;gBACH,CAAC,CAAC,CAAC;aACJ;QACH,CAAC;QAEO,mCAAmB,GAA3B,UAA4B,MAAc,EAAE,KAAQ;YAClD,IAAI,IAAI,CAAC,iBAAiB,EAAE;gBAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;aACnC;QACH,CAAC;QAEO,sCAAsB,GAA9B;YACE,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,cAAyB,CAAC,CAAC;QACzD,CAAC;QArPU,KAAK;YADjB,8BAAU,EAAE;WACA,KAAK,CAsPjB;QAAD,YAAC;KAAA,AAtPD,IAsPC;IAtPY,sBAAK;IAwPlB,SAAgB,WAAW,CAAqB,MAA8B;QAC5E,IAAM,KAAK,GAAG,6BAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAE5C,OAAO;YAAU,gBAAY;iBAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;gBAAZ,2BAAY;;YAC3B,OAAO,KAAK,CAAC,QAAQ,OAAd,KAAK,GAAU,MAAM,SAAK,MAAM,EAAkB,CAAC;QAC5D,CAAC,CAAA;IACH,CAAC;IAND,kCAMC"} \ No newline at end of file diff --git a/dist/amd/test-helpers.js b/dist/amd/test-helpers.js index 642794b..01d3d89 100644 --- a/dist/amd/test-helpers.js +++ b/dist/amd/test-helpers.js @@ -13,8 +13,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; diff --git a/dist/amd/test-helpers.js.map b/dist/amd/test-helpers.js.map index 94ec772..c9f3bdf 100644 --- a/dist/amd/test-helpers.js.map +++ b/dist/amd/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOA,sBAAsC,KAAe,EAAE,gBAAyB;QAAE,eAAqB;aAArB,UAAqB,EAArB,qBAAqB,EAArB,IAAqB;YAArB,8BAAqB;;;;;gBAC/F,OAAO,GAAG,UAAC,IAAe,EAAE,OAAe,IAAK,OAAA,UAAC,GAAM;oBAC3D,IAAI,gBAAgB,EAAE;wBACpB,OAAO,CAAC,KAAK,CAAC,UAAQ,OAAS,CAAC,CAAA;wBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;qBACpB;oBACD,IAAI,CAAC,GAAG,CAAC,CAAC;gBACZ,CAAC,EAPqD,CAOrD,CAAC;gBAGI,OAAO,GAAG,UAAC,IAAe,EAAE,MAA8B;oBAC9D,OAAA,UAAC,GAAM;wBACL,IAAI;4BACF,IAAI,CAAC,GAAG,CAAC,CAAC;yBACX;wBAAC,OAAO,GAAG,EAAE;4BACZ,MAAM,CAAC,GAAG,CAAC,CAAC;yBACb;oBACH,CAAC;gBAND,CAMC,CAAC;gBAEE,QAAQ,GAAG,UAAC,IAAe,EAAE,OAAmB;oBACpD,OAAA,UAAC,GAAM;wBACL,IAAI,CAAC,GAAG,CAAC,CAAC;wBACV,OAAO,EAAE,CAAC;oBACZ,CAAC;gBAHD,CAGC,CAAC;gBAEJ,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;wBACjC,IAAI,WAAW,GAAG,CAAC,CAAC;wBAEpB,K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js.map b/dist/commonjs/aurelia-store.js.map index 598508d..6e6d0a5 100644 --- a/dist/commonjs/aurelia-store.js.map +++ b/dist/commonjs/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;;;AACA,iCAA8C;AAC9C,qCAA2C;AAM3C,mBACE,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAjBD,8BAiBC;AAED,6BAAwB;AACxB,oCAA+B;AAC/B,+BAA0B;AAC1B,kCAA6B;AAC7B,+BAA0B;AAC1B,iCAA4B"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;;;AACA,iCAA8C;AAC9C,qCAA2C;AAM3C,SAAgB,SAAS,CACvB,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAjBD,8BAiBC;AAED,6BAAwB;AACxB,oCAA+B;AAC/B,+BAA0B;AAC1B,kCAA6B;AAC7B,+BAA0B;AAC1B,iCAA4B"} \ No newline at end of file diff --git a/dist/commonjs/decorator.js b/dist/commonjs/decorator.js index c11a49b..9fa1156 100644 --- a/dist/commonjs/decorator.js +++ b/dist/commonjs/decorator.js @@ -1,11 +1,14 @@ "use strict"; -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); }; Object.defineProperty(exports, "__esModule", { value: true }); var aurelia_dependency_injection_1 = require("aurelia-dependency-injection"); @@ -13,6 +16,9 @@ var rxjs_1 = require("rxjs"); var store_1 = require("./store"); var defaultSelector = function (store) { return store.state; }; function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } var store = aurelia_dependency_injection_1.Container.instance.get(store_1.Store); var _settings = __assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { @@ -23,12 +29,14 @@ function connectTo(settings) { return store.state; } function createSelectors() { + var _a; var isSelectorObj = typeof _settings.selector === "object"; var fallbackSelector = (_a = {}, _a[_settings.target || "state"] = _settings.selector || defaultSelector, _a); return Object.entries(__assign({}, (isSelectorObj ? _settings.selector : fallbackSelector))).map(function (_a) { var target = _a[0], selector = _a[1]; + var _b; return ({ targets: _settings.target && isSelectorObj ? [_settings.target, target] : [target], selector: selector, @@ -40,9 +48,7 @@ function connectTo(settings) { _b["propertyChanged"] = 0, _b) }); - var _b; }); - var _a; } return function (target) { var originalSetup = typeof settings === "object" && settings.setup diff --git a/dist/commonjs/decorator.js.map b/dist/commonjs/decorator.js.map index 5017c4b..812a617 100644 --- a/dist/commonjs/decorator.js.map +++ b/dist/commonjs/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6EAAyD;AACzD,6BAAgD;AAEhD,iCAAgC;AAchC,IAAM,eAAe,GAAG,UAAI,KAAe,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,CAAC;AAE5D,mBAAsC,QAAyE;IAC7G,IAAM,KAAK,GAAG,wCAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAK,CAAa,CAAC;IACxD,IAAM,SAAS,cACb,QAAQ,EAAE,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,IAClE,QAAQ,CACZ,CAAC;IAEF,mBAAmB,QAAgD;QACjE,IAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,MAAM,YAAY,iBAAU,EAAE;YAChC,OAAO,MAAM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CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;YACnG,IAAI,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE;gBACvE,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAC,GAAiB;oBACjD,IAAI,GAAG,YAAY,mBAAY,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;wBACvD,GAAG,CAAC,WAAW,EAAE,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACJ;YAED,IAAI,gBAAgB,EAAE;gBACpB,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;aAChD;QACH,CAAC,CAAA;IACH,CAAC,CAAA;AACH,CAAC;AA5FD,8BA4FC"} \ No newline at end of file diff --git a/dist/commonjs/history.js.map b/dist/commonjs/history.js.map index fb3ee8f..10bb49d 100644 --- a/dist/commonjs/history.js.map +++ b/dist/commonjs/history.js.map @@ -1 +1 @@ -{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":";;AAWA,cAAwB,KAAQ,EAAE,CAAS;IACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;QAC1B,OAAO,KAAK,CAAC;KACd;IAED,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5C,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAE1D,OAAO,KAAK,CAAC;AACf,CAAC;AATD,oBASC;AAED,sBAAyB,KAAsB,EAAE,KAAa;IAC5D,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;QAC7C,OAAO,KAAK,C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AmB,CAAC,IAAI,SAAE,mBAAmB,CAAC,OAAO,EAAC;QAChE,OAAO,EAAE,WAAW;QACpB,MAAM,EAAE,EAAE;KACX,CACF,CAAC;AACJ,CAAC;AAVD,4CAUC;AAED,SAAgB,WAAW,CAAI,KAAQ,EAAE,KAAa;IACpD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;QACzB,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,EAAE;YAC7B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;SAC1D;QAED,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE;YAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SAC7C;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAZD,kCAYC;AAED,SAAgB,cAAc,CAAC,OAAY;IACzC,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;QAC3C,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;QACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;QACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC;AAND,wCAMC"} \ No newline at end of file diff --git a/dist/commonjs/logging.d.ts b/dist/commonjs/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/commonjs/logging.d.ts +++ b/dist/commonjs/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/commonjs/logging.js b/dist/commonjs/logging.js index 4e0b5a5..bcd94e4 100644 --- a/dist/commonjs/logging.js +++ b/dist/commonjs/logging.js @@ -1,8 +1,11 @@ "use strict"; var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } diff --git a/dist/commonjs/logging.js.map b/dist/commonjs/logging.js.map index 7ae01da..bcea5f7 100644 --- a/dist/commonjs/logging.js.map +++ b/dist/commonjs/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mDAAyC;AAEzC,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAED;IAAmC,iCAAM;IAAzC;;IAEA,CAAC;IAAD,oBAAC;AAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC;AAFY,sCAAa;AAU1B,oBACE,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;IAEtB,IAAI,UAAU;QACZ,OAAO,CAAC,cAAc;QACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;KAC5C;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAdD,gCAcC"} \ No newline at end of file +{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mDAAyC;AAEzC,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAAC,EAPW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAOnB;AAED;IAAmC,iCAAM;IAAzC;;IAEA,CAAC;IAAD,oBAAC;AAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC;AAFY,sCAAa;AAU1B,SAAgB,UAAU,CACxB,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;IAEtB,IAAI,UAAU;QACZ,OAAO,CAAC,cAAc;QACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;QACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;KAC5C;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAdD,gCAcC"} \ No newline at end of file diff --git a/dist/commonjs/middleware.d.ts b/dist/commonjs/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/commonjs/middleware.d.ts +++ b/dist/commonjs/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/commonjs/middleware.js.map b/dist/commonjs/middleware.js.map index fc4acef..e353b37 100644 --- a/dist/commonjs/middleware.js.map +++ b/dist/commonjs/middleware.js.map @@ -1 +1 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/middleware.ts"],"names":[],"mappings":";;AAAA,2CAAuC;AAQvC,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAG9B;AAED,uBAAiC,KAAQ,EAAE,CAAI,EAAE,QAAc;IAC7D,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KACnC;AACH,CAAC;AAND,sCAMC;AAED,gCAA0C,KAAQ,EAAE,CAAI,EAAE,QAAc;IACtE,IAAI,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QAChC,IAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;YACtE,CAAC,CAAC,QAAQ,CAAC,GAAG;YACd,CAAC,CAAC,qBAAqB,CAAC;QAE1B,sBAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAClE;AACH,CAAC;AARD,wDAQC;AAED,mCAA6C,KAAQ,EAAE,GAAY;IACjE,IAAI,CAAC,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QACjC,OAAO,KAAK,CAA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CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAClE;AACH,CAAC;AARD,wDAQC;AAED,SAAgB,yBAAyB,CAAI,KAAQ,EAAE,GAAY;IACjE,IAAI,CAAC,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IAED,IAAM,WAAW,GAAG,sBAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IACvF,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IAED,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE,GAAG;IAEf,OAAO,KAAK,CAAC;AACf,CAAC;AAfD,8DAeC"} \ No newline at end of file diff --git a/dist/commonjs/store.d.ts b/dist/commonjs/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/commonjs/store.d.ts +++ b/dist/commonjs/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/commonjs/store.js b/dist/commonjs/store.js index 640b43c..58f8a27 100644 --- a/dist/commonjs/store.js +++ b/dist/commonjs/store.js @@ -20,8 +20,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -273,7 +273,7 @@ var Store = /** @class */ (function () { if (aurelia_framework_1.PLATFORM.global.devToolsExtension) { this.logger[logging_1.getLogType(this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe(function (message) { _this.logger[logging_1.getLogType(_this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools sent change " + message.type); diff --git a/dist/commonjs/store.js.map b/dist/commonjs/store.js.map index 9fe5051..7252d4a 100644 --- a/dist/commonjs/store.js.map +++ b/dist/commonjs/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6BAAmD;AAEnD,uDAK2B;AAE3B,qCAA8E;AAC9E,2CAA8E;AAC9E,qCAAgF;AAIhF,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,+CAAqB,CAAA;IACrB,qCAAW,CAAA;AACb,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAkBD;IAaE,eAAoB,YAAe,EAAE,OAA+B;QAAhD,iBAAY,GAAZ,YAAY,CAAG;QAV3B,WAAM,GAAG,8BAAU,CAAC,SAAS,CAAC,eAAe,CAAkB,CAAC;QAChE,sBAAiB,GAAY,KAAK,CAAC;QAEnC,YAAO,GAAsC,IAAI,GAAG,EAAE,CAAC;QACvD,gBAAW,GAA2E,IAAI,GAAG,EAAE,CAAC;QAIhG,kBAAa,GAA2B,EAAE,CAAC;QAGjD,IAAI,CAAC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QAC7B,IAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,KAAK,IAAI,CAAC;QAClF,IAAI,CAAC,MAAM,GAAG,IAAI,sBAAe,CAAI,YAAY,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;QAExC,IAAI,CAAC,aAAa,EAAE,CAAC;QAErB,IAAI,UAAU,EAAE;YACd,IAAI,CAAC,sBAAsB,EAAE,CAAC;SAC/B;IACH,CAAC;IAEM,kCAAkB,GAAzB,UAA0B,OAAsB,EAAE,SAA8B,EAAE,QAAc;QAC9F,IAAI,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AC,UAAC,OAAY;gBACnC,KAAI,CAAC,MAAM,CAAC,oBAAU,CAAC,KAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,kBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,0BAAwB,OAAO,CAAC,IAAM,CAAC,CAAC;gBAEhH,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE;oBAC/B,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;iBAC7C;YACH,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAEO,mCAAmB,GAA3B,UAA4B,MAAc,EAAE,KAAQ;QAClD,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;IAEO,sCAAsB,GAA9B;QACE,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,cAAyB,CAAC,CAAC;IACzD,CAAC;IArPU,KAAK;QADjB,8BAAU,EAAE;OACA,KAAK,CAsPjB;IAAD,YAAC;CAAA,AAtPD,IAsPC;AAtPY,sBAAK;AAwPlB,SAAgB,WAAW,CAAqB,MAA8B;IAC5E,IAAM,KAAK,GAAG,6BAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO;QAAU,gBAAY;aAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;YAAZ,2BAAY;;QAC3B,OAAO,KAAK,CAAC,QAAQ,OAAd,KAAK,GAAU,MAAM,SAAK,MAAM,EAAkB,CAAC;IAC5D,CAAC,CAAA;AACH,CAAC;AAND,kCAMC"} \ No newline at end of file diff --git a/dist/commonjs/test-helpers.js b/dist/commonjs/test-helpers.js index bd8e8c1..3e749ff 100644 --- a/dist/commonjs/test-helpers.js +++ b/dist/commonjs/test-helpers.js @@ -14,8 +14,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; diff --git a/dist/commonjs/test-helpers.js.map b/dist/commonjs/test-helpers.js.map index 77bfdc6..6376684 100644 --- a/dist/commonjs/test-helpers.js.map +++ b/dist/commonjs/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAmD;AAOnD,sBAAsC,KAAe,EAAE,gBAAyB;IAAE,eAAqB;SAArB,UAAqB,EAArB,qBAAqB,EAArB,IAAqB;QAArB,8BAAqB;;;;;YAC/F,OAAO,GAAG,UAAC,IAAe,EAAE,OAAe,IAAK,OAAA,UAAC,GAAM;gBAC3D,IAAI,gBAAgB,EAAE;oBACpB,OAAO,CAAC,KAAK,CAAC,UAAQ,OAAS,CAAC,CAAA;oBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;iBACpB;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,CAAC,EAPqD,CAOrD,CAAC;YAGI,OAAO,GAAG,UAAC,IAAe,EAAE,MAA8B;gBAC9D,OAAA,UAAC,GAAM;oBACL,IAAI;wBACF,IAAI,CAAC,GAAG,CAAC,CAAC;qBACX;oBAAC,OAAO,GAAG,EAAE;wBACZ,MAAM,CAAC,GAAG,CAAC,CAAC;qBACb;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W,CAAC,EACjB,gBAAI,CAAC,CAAC,CAAC,CACR,CAAC,SAAS,CACT,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;gBACvF,CAAC,CAAC,EAAC;;;CACJ;AA5CD,oCA4CC"} \ No newline at end of file diff --git a/dist/es2015/aurelia-store.js.map b/dist/es2015/aurelia-store.js.map index ac90d21..5e7cc9b 100644 --- a/dist/es2015/aurelia-store.js.map +++ b/dist/es2015/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,oBACJ,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,UAAU,SAAS,CACvB,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/es2015/decorator.js b/dist/es2015/decorator.js index a6f7f18..bfbb898 100644 --- a/dist/es2015/decorator.js +++ b/dist/es2015/decorator.js @@ -1,16 +1,22 @@ -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); }; import { Container } from "aurelia-dependency-injection"; import { Observable, Subscription } from "rxjs"; import { Store } from "./store"; var defaultSelector = function (store) { return store.state; }; export function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } var store = Container.instance.get(Store); var _settings = __assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { @@ -21,12 +27,14 @@ export function connectTo(settings) { return store.state; } function createSelectors() { + var _a; var isSelectorObj = typeof _settings.selector === "object"; var fallbackSelector = (_a = {}, _a[_settings.target || "state"] = _settings.selector || defaultSelector, _a); return Object.entries(__assign({}, (isSelectorObj ? _settings.selector : fallbackSelector))).map(function (_a) { var target = _a[0], selector = _a[1]; + var _b; return ({ targets: _settings.target && isSelectorObj ? [_settings.target, target] : [target], selector: selector, @@ -38,9 +46,7 @@ export function connectTo(settings) { _b["propertyChanged"] = 0, _b) }); - var _b; }); - var _a; } return function (target) { var originalSetup = typeof settings === "object" && settings.setup diff --git a/dist/es2015/decorator.js.map b/dist/es2015/decorator.js.map index 3e07dc9..90fb621 100644 --- a/dist/es2015/decorator.js.map +++ b/dist/es2015/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU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IACzC,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;QAC3C,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;QACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;QACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC"} \ No newline at end of file diff --git a/dist/es2015/logging.d.ts b/dist/es2015/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/es2015/logging.d.ts +++ b/dist/es2015/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/es2015/logging.js b/dist/es2015/logging.js index 9a19651..9bcc9fc 100644 --- a/dist/es2015/logging.js +++ b/dist/es2015/logging.js @@ -1,7 +1,10 @@ var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } diff --git a/dist/es2015/logging.js.map b/dist/es2015/logging.js.map index d0f391d..f82279a 100644 --- a/dist/es2015/logging.js.map +++ b/dist/es2015/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2B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AC;QACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;QAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;KAC5C;IAED,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/es2015/middleware.d.ts b/dist/es2015/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/es2015/middleware.d.ts +++ b/dist/es2015/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/es2015/middleware.js.map b/dist/es2015/middleware.js.map index 58bd168..415b10b 100644 --- a/dist/es2015/middleware.js.map +++ b/dist/es2015/middleware.js.map @@ -1 +1 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,wBAA2B,KAAQ,EAAE,CAAI,EAAE,QAAc;IAC7D,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAA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AC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KACnC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,KAAQ,EAAE,CAAI,EAAE,QAAc;IACtE,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QAChC,IAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;YACtE,CAAC,CAAC,QAAQ,CAAC,GAAG;YACd,CAAC,CAAC,qBAAqB,CAAC;QAE1B,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAClE;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAI,KAAQ,EAAE,GAAY;IACjE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IAED,IAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IACvF,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IAED,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE,GAAG;IAEf,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/dist/es2015/store.d.ts b/dist/es2015/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/es2015/store.d.ts +++ b/dist/es2015/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/es2015/store.js b/dist/es2015/store.js index 627c4bc..69083ff 100644 --- a/dist/es2015/store.js +++ b/dist/es2015/store.js @@ -19,8 +19,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -271,7 +271,7 @@ var Store = /** @class */ (function () { if (PLATFORM.global.devToolsExtension) { this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe(function (message) { _this.logger[getLogType(_this.options, "devToolsStatus", LogLevel.debug)]("DevTools sent change " + message.type); diff --git a/dist/es2015/store.js.map b/dist/es2015/store.js.map index c421c97..1144e32 100644 --- a/dist/es2015/store.js.map +++ b/dist/es2015/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;AAEnD,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAkB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAc,mBAAmB,EAAiB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAkB,QAAQ,EAAE,UAAU,EAAiB,MAAM,WAAW,CAAC;AAIhF,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,+CAAqB,CAAA;IACrB,qCAAW,CAAA;AACb,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAkBD;IAaE,eAAoB,YAAe,EAAE,OAA+B;QAAhD,iBAAY,GAAZ,YAAY,CAAG;QAV3B,WAAM,G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ACJ;IACH,CAAC;IAEO,mCAAmB,GAA3B,UAA4B,MAAc,EAAE,KAAQ;QAClD,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;IAEO,sCAAsB,GAA9B;QACE,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,IAAyB,CAAC,CAAC;IACzD,CAAC;IArPU,KAAK;QADjB,UAAU,EAAE;OACA,KAAK,CAsPjB;IAAD,YAAC;CAAA,AAtPD,IAsPC;SAtPY,KAAK;AAwPlB,MAAM,UAAU,WAAW,CAAqB,MAA8B;IAC5E,IAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO;QAAU,gBAAY;aAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;YAAZ,2BAAY;;QAC3B,OAAO,KAAK,CAAC,QAAQ,OAAd,KAAK,GAAU,MAAM,SAAK,MAAM,EAAkB,CAAC;IAC5D,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/es2015/test-helpers.js b/dist/es2015/test-helpers.js index c50fae2..7f9c480 100644 --- a/dist/es2015/test-helpers.js +++ b/dist/es2015/test-helpers.js @@ -13,8 +13,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; diff --git a/dist/es2015/test-helpers.js.map b/dist/es2015/test-helpers.js.map index 07fcf72..2ba69c5 100644 --- a/dist/es2015/test-helpers.js.map +++ b/dist/es2015/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAOnD,MAAM,uBAAgC,KAAe,EAAE,gBAAyB;IAAE,eAAqB;SAArB,UAAqB,EAArB,qBAAqB,EAArB,IAAqB;QAArB,8BAAqB;;;;;YAC/F,OAAO,GAAG,UAAC,IAAe,EAAE,OAAe,IAAK,OAAA,UAAC,GAAM;gBAC3D,IAAI,gBAAgB,EAAE;oBACpB,OAAO,CAAC,KAAK,CAAC,UAAQ,OAAS,CAAC,CAAA;oBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;iBACpB;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,CAAC,EAPqD,CAOrD,CAAC;YAGI,OAAO,GAAG,UAAC,IAAe,EAAE,MAA8B;gBAC9D,OAAA,UAAC,GAAM;oBACL,IAAI;wBACF,IAAI,CAAC,GAAG,CAAC,CAAC;qBACX;oBAAC,OAAO,GAAG,EAAE;wBACZ,MAAM,CAAC,GAAG,CAAC,CAAC;qBACb;gBACH,CAAC;YAND,CAMC,CAAC;YAEE,QAAQ,GAAG,UAAC,IAAe,EAAE,OAAmB;gBACpD,OAAA,UAAC,GAAM;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC;oBACV,OAAO,EAAE,CAAC;gBACZ,CAAC;YAHD,CAGC,CAAC;YAEJ,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACjC,IAAI,WAAW,GAAG,CAAC,CAAC;oBAEpB,KAAK,CAAC,KAAK,CAAC,CAA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.map b/dist/es2017/aurelia-store.js.map index ac90d21..5e7cc9b 100644 --- a/dist/es2017/aurelia-store.js.map +++ b/dist/es2017/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,oBACJ,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,UAAU,SAAS,CACvB,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/es2017/decorator.js b/dist/es2017/decorator.js index a026ac6..0a6e1b9 100644 --- a/dist/es2017/decorator.js +++ b/dist/es2017/decorator.js @@ -3,6 +3,9 @@ import { Observable, Subscription } from "rxjs"; import { Store } from "./store"; const defaultSelector = (store) => store.state; export function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } const store = Container.instance.get(Store); const _settings = Object.assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { diff --git a/dist/es2017/decorator.js.map b/dist/es2017/decorator.js.map index 69f3766..7b3141b 100644 --- a/dist/es2017/decorator.js.map +++ b/dist/es2017/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAchC,MAAM,eAAe,GAAG,CAAI,KAAe,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;AAE5D,MAAM,oBAAgC,QAAyE;IAC7G,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAa,CAAC;IACxD,MAAM,SAAS,mBACb,QAAQ,EAAE,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,IAClE,QAAQ,CACZ,CAAC;IAEF,mBAAmB,QAAgD;QACjE,MAAM,MAAM,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;QAE7B,IAAI,MAAM,YAAY,UAAU,EAAE;YAChC,OAAO,MAAM,CAAC;SACf;QAEH,OAAO,KAAK,CAAC,KAAK,CAAC;IACrB,CAAC;IAED;QACE,MAAM,aAAa,GAAG,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ,CAAC;QAC7D,MAAM,gBAAgB,GAAG;YACvB,CAAC,SAAS,CAAC,MAAM,IAAI,OAAO,CAAC,EAAE,SAAS,CAAC,QAAQ,IAAI,eAAe;SACrE,CAAC;QAEF,OAAO,MAAM,CAAC,OAAO,mBACf,CAAC,aAAa,CAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAA8B,EACzF,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;YAC9B,OAAO,EA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B,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;aAChD;QACH,CAAC,CAAA;IACH,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/es2017/history.js.map b/dist/es2017/history.js.map index 56cc520..d6fa2ee 100644 --- a/dist/es2017/history.js.map +++ b/dist/es2017/history.js.map @@ -1 +1 @@ -{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":"AAWA,MAAM,eAAkB,KAAQ,EAAE,CAAS;IACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;QAC1B,OAAO,KAAK,CAAC;KACd;IAED,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;IAC5C,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAE1D,OAAO,KAAK,CAAC;AACf,CAAC;AAED,sBAAyB,KAAsB,EAAE,KAAa;IAC5D,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE;QAC7C,OAAO,KAAK,CAAC;KACd;IAED,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAExC,MAAM,OAAO,GAAG,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;IAC9D,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC;IACjC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAE1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;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,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;SAC1D;QAED,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE;YAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SAC7C;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,OAAY;IACzC,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;QAC3C,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;QACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;QACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC"} \ No newline at end of file diff --git a/dist/es2017/logging.d.ts b/dist/es2017/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/es2017/logging.d.ts +++ b/dist/es2017/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/es2017/logging.js.map b/dist/es2017/logging.js.map index 04e90a5..a728598 100644 --- a/dist/es2017/logging.js.map +++ b/dist/es2017/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uBAAW,CAAA;IACX,yBAAa,CAAA;IACb,2BAAe,CAAA;AACjB,CAA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,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/es2017/middleware.d.ts b/dist/es2017/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/es2017/middleware.d.ts +++ b/dist/es2017/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/es2017/middleware.js.map b/dist/es2017/middleware.js.map index e1621f8..5530acd 100644 --- a/dist/es2017/middleware.js.map +++ b/dist/es2017/middleware.js.map @@ -1 +1 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,wBAA2B,KAAQ,EAAE,CAAI,EAAE,QAAc;IAC7D,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KACnC;AACH,CAAC;AAED,MAAM,iCAAoC,KAAQ,EAAE,CAAI,EAAE,QAAc;IACtE,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QAChC,MAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GA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C;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,KAAQ,EAAE,CAAI,EAAE,QAAc;IACtE,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QAChC,MAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;YACtE,CAAC,CAAC,QAAQ,CAAC,GAAG;YACd,CAAC,CAAC,qBAAqB,CAAC;QAE1B,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAClE;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAI,KAAQ,EAAE,GAAY;IACjE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IAED,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IACvF,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IAED,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE,GAAG;IAEf,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/dist/es2017/store.d.ts b/dist/es2017/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/es2017/store.d.ts +++ b/dist/es2017/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/es2017/store.js b/dist/es2017/store.js index 8df8579..cfda9b8 100644 --- a/dist/es2017/store.js +++ b/dist/es2017/store.js @@ -178,7 +178,7 @@ let Store = class Store { if (PLATFORM.global.devToolsExtension) { this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe((message) => { this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)](`DevTools sent change ${message.type}`); diff --git a/dist/es2017/store.js.map b/dist/es2017/store.js.map index 4a4bbc6..b2c3723 100644 --- a/dist/es2017/store.js.map +++ b/dist/es2017/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store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AAW,CAAqB,MAA8B;IAC5E,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO,UAAU,GAAG,MAAS;QAC3B,OAAO,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,GAAG,MAAM,CAAkB,CAAC;IAC5D,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/es2017/test-helpers.js.map b/dist/es2017/test-helpers.js.map index 2499f23..9ef5965 100644 --- a/dist/es2017/test-helpers.js.map +++ b/dist/es2017/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAOnD,MAAM,CAAC,KAAK,uBAA0B,KAAe,EAAE,gBAAyB,EAAE,GAAG,KAAkB;IACrG,MAAM,OAAO,GAAG,CAAC,IAAe,EAAE,OAAe,EAAE,EAAE,CAAC,CAAC,GAAM,EAAE,EAAE;QAC/D,IAAI,gBAAgB,EAAE;YACpB,OAAO,CAAC,KAAK,CAAC,QAAQ,OAAO,EAAE,CAAC,CAAA;YAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;SACpB;QACD,IAAI,CAAC,GAAG,CAAC,CAAC;IACZ,CAAC,CAAC;IAEF,kCAAkC;IAClC,MAAM,OAAO,GAAG,CAAC,IAAe,EAAE,MAA8B,EAAE,EAAE,CAClE,CAAC,GAAM,EAAE,EAAE;QACT,IAAI;YACF,IAAI,CAAC,GAAG,CAAC,CAAC;SACX;QAAC,OAAO,GAAG,EAAE;YACZ,MAAM,CAAC,GAAG,CAAC,CAAC;SACb;IACH,CAAC,CAAC;IAEJ,MAAM,QAAQ,GAAG,CAAC,IAAe,EAAE,OAAmB,EAAE,EAAE,CACxD,CAA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,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,WAAW,CAAC,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IACvF,CAAC,CAAC,CAAC;AACL,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/aurelia-store.js.map b/dist/native-modules/aurelia-store.js.map index ac90d21..5e7cc9b 100644 --- a/dist/native-modules/aurelia-store.js.map +++ b/dist/native-modules/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,oBACJ,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAgB,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAM3C,MAAM,UAAU,SAAS,CACvB,OAA+B,EAC/B,OAAuC;IAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;QACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;KAC9D;IAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;IAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;KACrE;IAED,OAAO,OAAO,CAAC,YAAY,CAAC;IAE5B,OAAO,CAAC,SAAS;SACd,gBAAgB,CAAC,KAAK,EAAE,IAAI,KAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5D,CAAC;AAED,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/decorator.js b/dist/native-modules/decorator.js index a6f7f18..bfbb898 100644 --- a/dist/native-modules/decorator.js +++ b/dist/native-modules/decorator.js @@ -1,16 +1,22 @@ -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); }; import { Container } from "aurelia-dependency-injection"; import { Observable, Subscription } from "rxjs"; import { Store } from "./store"; var defaultSelector = function (store) { return store.state; }; export function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } var store = Container.instance.get(Store); var _settings = __assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { @@ -21,12 +27,14 @@ export function connectTo(settings) { return store.state; } function createSelectors() { + var _a; var isSelectorObj = typeof _settings.selector === "object"; var fallbackSelector = (_a = {}, _a[_settings.target || "state"] = _settings.selector || defaultSelector, _a); return Object.entries(__assign({}, (isSelectorObj ? _settings.selector : fallbackSelector))).map(function (_a) { var target = _a[0], selector = _a[1]; + var _b; return ({ targets: _settings.target && isSelectorObj ? [_settings.target, target] : [target], selector: selector, @@ -38,9 +46,7 @@ export function connectTo(settings) { _b["propertyChanged"] = 0, _b) }); - var _b; }); - var _a; } return function (target) { var originalSetup = typeof settings === "object" && settings.setup diff --git a/dist/native-modules/decorator.js.map b/dist/native-modules/decorator.js.map index 3e07dc9..90fb621 100644 --- a/dist/native-modules/decorator.js.map +++ b/dist/native-modules/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS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AAC,CAAC;gBAEH,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,UAAC,IAAI,EAAE,IAAI,EAAE,GAAG;oBAC/B,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,KAAK,aAAa,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;oBAC9D,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC;gBACpB,CAAC,EAAE,KAAI,CAAC,CAAC;YACX,CAAC,CAAC,EAdoD,CAcpD,CAAC,CAAC;YAEJ,IAAI,aAAa,EAAE;gBACjB,OAAO,aAAa,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;aAC7C;QACH,CAAC,CAAA;QAED,MAAM,CAAC,SAAS,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;YACnG,IAAI,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE;gBACvE,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAC,GAAiB;oBACjD,IAAI,GAAG,YAAY,YAAY,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;wBACvD,GAAG,CAAC,WAAW,EAAE,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACJ;YAED,IAAI,gBAAgB,EAAE;gBACpB,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;aAChD;QACH,CAAC,CAAA;IACH,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/history.js.map b/dist/native-modules/history.js.map index d68df04..fa91533 100644 --- a/dist/native-modules/history.js.map +++ b/dist/native-modules/history.js.map @@ -1 +1 @@ -{"version":3,"file":"history.js","sourceRoot":"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AAM,KAAK,WAAW;QACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;QACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;AAC/B,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/logging.d.ts b/dist/native-modules/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/native-modules/logging.d.ts +++ b/dist/native-modules/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/native-modules/logging.js b/dist/native-modules/logging.js index 9a19651..9bcc9fc 100644 --- a/dist/native-modules/logging.js +++ b/dist/native-modules/logging.js @@ -1,7 +1,10 @@ var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } diff --git a/dist/native-modules/logging.js.map b/dist/native-modules/logging.js.map index d0f391d..f82279a 100644 --- a/dist/native-modules/logging.js.map +++ b/dist/native-modules/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,MAAM,CAAN,IAAY,QAOX;AAPD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,2BAAe,CAAA;IACf,yBAAa,CAAA;IACb,uBAAW,C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AC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;QACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;KAC5C;IAED,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/middleware.d.ts b/dist/native-modules/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/native-modules/middleware.d.ts +++ b/dist/native-modules/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/native-modules/middleware.js.map b/dist/native-modules/middleware.js.map index 58bd168..415b10b 100644 --- a/dist/native-modules/middleware.js.map +++ b/dist/native-modules/middleware.js.map @@ -1 +1 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQvC,MAAM,CAAN,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,MAAM,wBAA2B,KAAQ,EAAE,CAAI,EAAE,QAAc;IAC7D,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KACnC;AACH,CAAC;AAED,MA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C,OAAO,CAAC,EAAE;QAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KAC1D;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;KACnC;AACH,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAI,KAAQ,EAAE,CAAI,EAAE,QAAc;IACtE,IAAI,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QAChC,IAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;YACtE,CAAC,CAAC,QAAQ,CAAC,GAAG;YACd,CAAC,CAAC,qBAAqB,CAAC;QAE1B,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;KAClE;AACH,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAI,KAAQ,EAAE,GAAY;IACjE,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;QACjC,OAAO,KAAK,CAAC;KACd;IAED,IAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;IACvF,IAAI,CAAC,WAAW,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IAED,IAAI;QACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;KACjC;IAAC,OAAO,CAAC,EAAE,GAAG;IAEf,OAAO,KAAK,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/store.d.ts b/dist/native-modules/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/native-modules/store.d.ts +++ b/dist/native-modules/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/native-modules/store.js b/dist/native-modules/store.js index 627c4bc..69083ff 100644 --- a/dist/native-modules/store.js +++ b/dist/native-modules/store.js @@ -19,8 +19,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -271,7 +271,7 @@ var Store = /** @class */ (function () { if (PLATFORM.global.devToolsExtension) { this.logger[getLogType(this.options, "devToolsStatus", LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe(function (message) { _this.logger[getLogType(_this.options, "devToolsStatus", LogLevel.debug)]("DevTools sent change " + message.type); diff --git a/dist/native-modules/store.js.map b/dist/native-modules/store.js.map index c421c97..1144e32 100644 --- a/dist/native-modules/store.js.map +++ b/dist/native-modules/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAc,MAAM,MAAM,CAAC;AAEnD,OAAO,EACL,UAAU,EACV,SAAS,EACT,UAAU,EACV,QAAQ,EACT,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,IAAI,EAAE,WAAW,EAAkB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC9E,OAAO,EAAc,mBAAmB,EAAiB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAkB,QAAQ,EAAE,UAAU,EAAiB,MAAM,WAAW,CAAC;AAIhF,MAAM,CAAN,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,+CAAqB,CAAA;IACrB,qCAAW,CAAA;AACb,CAAC,EAHW,sBAAsB,KAAtB,sBAAsB,QAGjC;AAkBD;IAaE,eAAoB,YAAe,EAAE,OAA+B;QAAhD,iBAAY,GAAZ,YAAY,CAAG;QAV3B,WAAM,GAAG,UAAU,CAAC,SAAS,CAAC,eAAe,C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,UAA4B,MAAc,EAAE,KAAQ;QAClD,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;IAEO,sCAAsB,GAA9B;QACE,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,IAAyB,CAAC,CAAC;IACzD,CAAC;IArPU,KAAK;QADjB,UAAU,EAAE;OACA,KAAK,CAsPjB;IAAD,YAAC;CAAA,AAtPD,IAsPC;SAtPY,KAAK;AAwPlB,MAAM,UAAU,WAAW,CAAqB,MAA8B;IAC5E,IAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAE5C,OAAO;QAAU,gBAAY;aAAZ,UAAY,EAAZ,qBAAY,EAAZ,IAAY;YAAZ,2BAAY;;QAC3B,OAAO,KAAK,CAAC,QAAQ,OAAd,KAAK,GAAU,MAAM,SAAK,MAAM,EAAkB,CAAC;IAC5D,CAAC,CAAA;AACH,CAAC"} \ No newline at end of file diff --git a/dist/native-modules/test-helpers.js b/dist/native-modules/test-helpers.js index c50fae2..7f9c480 100644 --- a/dist/native-modules/test-helpers.js +++ b/dist/native-modules/test-helpers.js @@ -13,8 +13,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; diff --git a/dist/native-modules/test-helpers.js.map b/dist/native-modules/test-helpers.js.map index 07fcf72..2ba69c5 100644 --- a/dist/native-modules/test-helpers.js.map +++ b/dist/native-modules/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAOnD,MAAM,uBAAgC,KAAe,EAAE,gBAAyB;IAAE,eAAqB;SAArB,UAAqB,EAArB,qBAAqB,EAArB,IAAqB;QAArB,8BAAqB;;;;;YAC/F,OAAO,GAAG,UAAC,IAAe,EAAE,OAAe,IAAK,OAAA,UAAC,GAAM;gBAC3D,IAAI,gBAAgB,EAAE;oBACpB,OAAO,CAAC,KAAK,CAAC,UAAQ,OAAS,CAAC,CAAA;oBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;iBACpB;gBACD,IAAI,CAAC,GAAG,CAAC,CAAC;YACZ,CAAC,EAPqD,CAOrD,CAAC;YAGI,OAAO,GAAG,UAAC,IAAe,EAAE,MAA8B;gBAC9D,OAAA,UAAC,GAAM;oBACL,IAAI;wBACF,IAAI,CAAC,GAAG,CAAC,CAAC;qBACX;oBAAC,OAAO,GAAG,EAAE;wBACZ,MAAM,CAAC,GAAG,CAAC,CAAC;qBACb;gBACH,CAAC;YAND,CAMC,CAAC;YAEE,QAAQ,GAAG,UAAC,IAAe,EAAE,OAAmB;gBACpD,OAAA,UAAC,GAAM;oBACL,IAAI,CAAC,GAAG,CAAC,CAAC;oBACV,OAAO,EAAE,CAAC;gBACZ,CAAC;YAHD,CAGC,CAAC;YAEJ,sBAAO,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;oBACjC,IAAI,WAAW,GAAG,CAAC,CAAC;oBAEpB,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,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ff2df6f 100644 --- a/dist/system/aurelia-store.js +++ b/dist/system/aurelia-store.js @@ -1,5 +1,6 @@ System.register(["./store", "./history", "./test-helpers", "./middleware", "./logging", "./decorator"], function (exports_1, context_1) { "use strict"; + var store_1, history_1; var __moduleName = context_1 && context_1.id; function configure(aurelia, options) { if (!options || !options.initialState) { @@ -14,7 +15,6 @@ System.register(["./store", "./history", "./test-helpers", "./middleware", "./lo .registerInstance(store_1.Store, new store_1.Store(initState, options)); } exports_1("configure", configure); - var store_1, history_1; var exportedNames_1 = { "configure": true }; diff --git a/dist/system/aurelia-store.js.map b/dist/system/aurelia-store.js.map index 06cb87a..8c1bf4f 100644 --- a/dist/system/aurelia-store.js.map +++ b/dist/system/aurelia-store.js.map @@ -1 +1 @@ -{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;IAQA,mBACE,OAA+B,EAC/B,OAAuC;QAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SACrE;QAED,OAAO,OAAO,CAAC,YAAY,CAAC;QAE5B,OAAO,CAAC,SAAS;aACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC"} \ No newline at end of file +{"version":3,"file":"aurelia-store.js","sourceRoot":"","sources":["../../src/aurelia-store.ts"],"names":[],"mappings":";;;;IAQA,SAAgB,SAAS,CACvB,OAA+B,EAC/B,OAAuC;QAEvC,IAAI,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,IAAI,SAAS,GAAQ,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,wBAAc,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;YACnG,SAAS,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC;SACrE;QAED,OAAO,OAAO,CAAC,YAAY,CAAC;QAE5B,OAAO,CAAC,SAAS;aACd,gBAAgB,CAAC,aAAK,EAAE,IAAI,aAAK,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;IAC5D,CAAC"} \ No newline at end of file diff --git a/dist/system/decorator.js b/dist/system/decorator.js index 24c089f..04f1e8a 100644 --- a/dist/system/decorator.js +++ b/dist/system/decorator.js @@ -1,15 +1,22 @@ System.register(["aurelia-dependency-injection", "rxjs", "./store"], function (exports_1, context_1) { "use strict"; - var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; + var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); }; + var aurelia_dependency_injection_1, rxjs_1, store_1, defaultSelector; var __moduleName = context_1 && context_1.id; function connectTo(settings) { + if (!Object.entries) { + throw new Error("You need a polyfill for Object.entries for browsers like Internet Explorer. Example: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries#Polyfill"); + } var store = aurelia_dependency_injection_1.Container.instance.get(store_1.Store); var _settings = __assign({ selector: typeof settings === "function" ? settings : defaultSelector }, settings); function getSource(selector) { @@ -20,12 +27,14 @@ System.register(["aurelia-dependency-injection", "rxjs", "./store"], function (e return store.state; } function createSelectors() { + var _a; var isSelectorObj = typeof _settings.selector === "object"; var fallbackSelector = (_a = {}, _a[_settings.target || "state"] = _settings.selector || defaultSelector, _a); return Object.entries(__assign({}, (isSelectorObj ? _settings.selector : fallbackSelector))).map(function (_a) { var target = _a[0], selector = _a[1]; + var _b; return ({ targets: _settings.target && isSelectorObj ? [_settings.target, target] : [target], selector: selector, @@ -37,9 +46,7 @@ System.register(["aurelia-dependency-injection", "rxjs", "./store"], function (e _b["propertyChanged"] = 0, _b) }); - var _b; }); - var _a; } return function (target) { var originalSetup = typeof settings === "object" && settings.setup @@ -91,7 +98,6 @@ System.register(["aurelia-dependency-injection", "rxjs", "./store"], function (e }; } exports_1("connectTo", connectTo); - var aurelia_dependency_injection_1, rxjs_1, store_1, defaultSelector; return { setters: [ function (aurelia_dependency_injection_1_1) { diff --git a/dist/system/decorator.js.map b/dist/system/decorator.js.map index c51bfc5..3382375 100644 --- a/dist/system/decorator.js.map +++ b/dist/system/decorator.js.map @@ -1 +1 @@ -{"version":3,"file":"decorator.js","sourceRoot":"","sources":["../../src/decorator.ts"],"names":[],"mappings":";;;;;;;;;;;IAmBA,mBAAsC,QAAyE;QAC7G,IAAM,KAAK,GAAG,wCAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,aAAK,CAAa,CAAC;QACxD,IAAM,SAAS,cACb,QAAQ,EAAE,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,IAClE,QAAQ,CACZ,CAAC;QAEF,mBAAmB,QAAgD;YACjE,IAAM,MAAM,GA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MAAM,CAAC,SAAS,CAAC,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG;gBACnG,IAAI,IAAI,CAAC,mBAAmB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,EAAE;oBACvE,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,UAAC,GAAiB;wBACjD,IAAI,GAAG,YAAY,mBAAY,IAAI,GAAG,CAAC,MAAM,KAAK,KAAK,EAAE;4BACvD,GAAG,CAAC,WAAW,EAAE,CAAC;yBACnB;oBACH,CAAC,CAAC,CAAC;iBACJ;gBAED,IAAI,gBAAgB,EAAE;oBACpB,OAAO,gBAAgB,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;iBAChD;YACH,CAAC,CAAA;QACH,CAAC,CAAA;IACH,CAAC;;;;;;;;;;;;;;;YA9FK,eAAe,GAAG,UAAI,KAAe,IAAK,OAAA,KAAK,CAAC,KAAK,EAAX,CAAW,CAAC"} \ No newline at end of file diff --git a/dist/system/history.js.map b/dist/system/history.js.map index bf86fc8..bf99955 100644 --- a/dist/system/history.js.map +++ b/dist/system/history.js.map @@ -1 +1 @@ -{"version":3,"file":"history.js","sourceRoot":"","sources":["../../src/history.ts"],"names":[],"mappings":";;;IAWA,cAAwB,KAAQ,EAAE,CAAS;QACzC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE;YAC1B,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,YAAY,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;QAC5C,IAAI,CAAC,GAAG,CAAC;YAAE,OAAO,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;QAE1D,OAAO,KAAK,CAAC;I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AAI,mBAAoC,EAAE,WAAc;QACtF,OAAO,MAAM,CAAC,MAAM,CAClB,EAAE,EACF,mBAAmB,EACnB;YACE,IAAI,EAAM,mBAAmB,CAAC,IAAI,SAAE,mBAAmB,CAAC,OAAO,EAAC;YAChE,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,EAAE;SACX,CACF,CAAC;IACJ,CAAC;;IAED,SAAgB,WAAW,CAAI,KAAQ,EAAE,KAAa;QACpD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;YACzB,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,EAAE;gBAC7B,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;aAC1D;YAED,IAAI,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,EAAE;gBAC/B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;aAC7C;SACF;QAED,OAAO,KAAK,CAAC;IACf,CAAC;;IAED,SAAgB,cAAc,CAAC,OAAY;QACzC,OAAO,OAAO,OAAO,CAAC,OAAO,KAAK,WAAW;YAC3C,OAAO,OAAO,CAAC,MAAM,KAAK,WAAW;YACrC,OAAO,OAAO,CAAC,IAAI,KAAK,WAAW;YACnC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;YAC7B,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAA;IAC/B,CAAC"} \ No newline at end of file diff --git a/dist/system/logging.d.ts b/dist/system/logging.d.ts index f440a22..aa5bdf2 100644 --- a/dist/system/logging.d.ts +++ b/dist/system/logging.d.ts @@ -6,7 +6,7 @@ export declare enum LogLevel { info = "info", log = "log", warn = "warn", - error = "error", + error = "error" } export declare class LoggerIndexed extends Logger { [key: string]: any; diff --git a/dist/system/logging.js b/dist/system/logging.js index 18b7733..b247f04 100644 --- a/dist/system/logging.js +++ b/dist/system/logging.js @@ -1,15 +1,19 @@ System.register(["aurelia-logging"], function (exports_1, context_1) { "use strict"; var __extends = (this && this.__extends) || (function () { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + } return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); + var aurelia_logging_1, LogLevel, LoggerIndexed; var __moduleName = context_1 && context_1.id; function getLogType(options, definition, defaultLevel) { if (definition && @@ -22,7 +26,6 @@ System.register(["aurelia-logging"], function (exports_1, context_1) { return defaultLevel; } exports_1("getLogType", getLogType); - var aurelia_logging_1, LogLevel, LoggerIndexed; return { setters: [ function (aurelia_logging_1_1) { diff --git a/dist/system/logging.js.map b/dist/system/logging.js.map index c40f210..1c7a5ec 100644 --- a/dist/system/logging.js.map +++ b/dist/system/logging.js.map @@ -1 +1 @@ -{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAsBA,oBACE,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;QAEtB,IAAI,UAAU;YACZ,OAAO,CAAC,cAAc;YACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;YACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;YACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;SAC5C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;;;;;;;;;;YAjCD,WAAY,QAAQ;gBAClB,2BAAe,CAAA;gBACf,2BAAe,CAAA;gBACf,yBAAa,CAAA;gBACb,uBAAW,CAAA;gBACX,yBAAa,CAAA;gBACb,2BAAe,CAAA;YACjB,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;;YAED;gBAAmC,iCAAM;gBAAzC;;gBAEA,CAAC;gBAAD,oBAAC;YAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC"} \ No newline at end of file +{"version":3,"file":"logging.js","sourceRoot":"","sources":["../../src/logging.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;IAsBA,SAAgB,UAAU,CACxB,OAA8B,EAC9B,UAAgC,EAChC,YAAsB;QAEtB,IAAI,UAAU;YACZ,OAAO,CAAC,cAAc;YACtB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,UAAU,CAAC;YACjD,OAAO,CAAC,cAAc,CAAC,UAAU,CAAC;YAClC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC,EAAE;YACvE,OAAO,OAAO,CAAC,cAAc,CAAC,UAAU,CAAE,CAAC;SAC5C;QAED,OAAO,YAAY,CAAC;IACtB,CAAC;;;;;;;;;YAjCD,WAAY,QAAQ;gBAClB,2BAAe,CAAA;gBACf,2BAAe,CAAA;gBACf,yBAAa,CAAA;gBACb,uBAAW,CAAA;gBACX,yBAAa,CAAA;gBACb,2BAAe,CAAA;YACjB,CAAC,EAPW,QAAQ,KAAR,QAAQ,QAOnB;;YAED;gBAAmC,iCAAM;gBAAzC;;gBAEA,CAAC;gBAAD,oBAAC;YAAD,CAAC,AAFD,CAAmC,wBAAM,GAExC"} \ No newline at end of file diff --git a/dist/system/middleware.d.ts b/dist/system/middleware.d.ts index 8d98038..5044195 100644 --- a/dist/system/middleware.d.ts +++ b/dist/system/middleware.d.ts @@ -5,7 +5,7 @@ export interface CallingAction { export declare type Middleware = (state: T, originalState?: T, settings?: any, action?: CallingAction) => T | Promise | void | false; export declare enum MiddlewarePlacement { Before = "before", - After = "after", + After = "after" } export declare function logMiddleware(state: T, _: T, settings?: any): void; export declare function localStorageMiddleware(state: T, _: T, settings?: any): void; diff --git a/dist/system/middleware.js b/dist/system/middleware.js index 73bffbf..e877d52 100644 --- a/dist/system/middleware.js +++ b/dist/system/middleware.js @@ -1,5 +1,6 @@ System.register(["aurelia-pal"], function (exports_1, context_1) { "use strict"; + var aurelia_pal_1, MiddlewarePlacement; var __moduleName = context_1 && context_1.id; function logMiddleware(state, _, settings) { if (settings && settings.logType && console.hasOwnProperty(settings.logType)) { @@ -34,7 +35,6 @@ System.register(["aurelia-pal"], function (exports_1, context_1) { return state; } exports_1("rehydrateFromLocalStorage", rehydrateFromLocalStorage); - var aurelia_pal_1, MiddlewarePlacement; return { setters: [ function (aurelia_pal_1_1) { diff --git a/dist/system/middleware.js.map b/dist/system/middleware.js.map index b13c942..b77428f 100644 --- a/dist/system/middleware.js.map +++ b/dist/system/middleware.js.map @@ -1 +1 @@ -{"version":3,"file":"middleware.js","sourceRoot":"","sources":["../../src/middleware.ts"],"names":[],"mappings":";;;IAaA,uBAAiC,KAAQ,EAAE,CAAI,EAAE,QAAc;QAC7D,IAAI,QAAQ,IAAI,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YAC3E,OAAe,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;SAC1D;aAAM;YACL,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;SACnC;IACH,CAAC;;IAED,gCAA0C,KAAQ,EAAE,CAAI,EAAE,QAAc;QACtE,IAAI,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE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AK,CAAC,CAAC;SACnC;IACH,CAAC;;IAED,SAAgB,sBAAsB,CAAI,KAAQ,EAAE,CAAI,EAAE,QAAc;QACtE,IAAI,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;YAChC,IAAM,GAAG,GAAG,QAAQ,IAAI,QAAQ,CAAC,GAAG,IAAI,OAAO,QAAQ,CAAC,GAAG,KAAK,QAAQ;gBACtE,CAAC,CAAC,QAAQ,CAAC,GAAG;gBACd,CAAC,CAAC,qBAAqB,CAAC;YAE1B,sBAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;SAClE;IACH,CAAC;;IAED,SAAgB,yBAAyB,CAAI,KAAQ,EAAE,GAAY;QACjE,IAAI,CAAC,sBAAQ,CAAC,MAAM,CAAC,YAAY,EAAE;YACjC,OAAO,KAAK,CAAC;SACd;QAED,IAAM,WAAW,GAAG,sBAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,GAAG,IAAI,qBAAqB,CAAC,CAAC;QACvF,IAAI,CAAC,WAAW,EAAE;YAChB,OAAO,KAAK,CAAC;SACd;QAED,IAAI;YACF,OAAO,IAAI,CAAC,KAAK,CAAC,WAAY,CAAC,CAAC;SACjC;QAAC,OAAO,CAAC,EAAE,GAAG;QAEf,OAAO,KAAK,CAAC;IACf,CAAC;;;;;;;;;YAtCD,WAAY,mBAAmB;gBAC7B,wCAAiB,CAAA;gBACjB,sCAAe,CAAA;YACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B"} \ No newline at end of file diff --git a/dist/system/store.d.ts b/dist/system/store.d.ts index 47ef11e..f78c074 100644 --- a/dist/system/store.d.ts +++ b/dist/system/store.d.ts @@ -2,10 +2,22 @@ import { Observable } from "rxjs"; import { HistoryOptions } from "./history"; import { Middleware, MiddlewarePlacement } from "./middleware"; import { LogDefinitions } from "./logging"; -export declare type Reducer = (state: T, ...params: any[]) => T | false | Promise; +export declare type Reducer = (state: T, ...params: P) => T | false | Promise; export declare enum PerformanceMeasurement { StartEnd = "startEnd", - All = "all", + All = "all" +} +export interface DevToolsOptions { + serialize?: boolean | { + date?: boolean; + regex?: boolean; + undefined?: boolean; + error?: boolean; + symbol?: boolean; + map?: boolean; + set?: boolean; + function?: boolean | Function; + }; } export interface StoreOptions { history: Partial; @@ -13,6 +25,7 @@ export interface StoreOptions { measurePerformance?: PerformanceMeasurement; propagateError?: boolean; logDefinitions?: LogDefinitions; + devToolsOptions?: DevToolsOptions; } export declare class Store { private initialState; @@ -32,12 +45,12 @@ export declare class Store { registerAction(name: string, reducer: Reducer): void; unregisterAction(reducer: Reducer): void; isActionRegistered(reducer: Reducer | string): boolean; - dispatch(reducer: Reducer | string, ...params: any[]): Promise; - private handleQueue(); - private internalDispatch(reducer, ...params); - private executeMiddlewares(state, placement, action); - private setupDevTools(); - private updateDevToolsState(action, state); - private registerHistoryMethods(); + dispatch

(reducer: Reducer | string, ...params: P): Promise; + private handleQueue; + private internalDispatch; + private executeMiddlewares; + private setupDevTools; + private updateDevToolsState; + private registerHistoryMethods; } -export declare function dispatchify(action: Reducer | string): (...params: any[]) => Promise; +export declare function dispatchify(action: Reducer | string): (...params: P) => Promise; diff --git a/dist/system/store.js b/dist/system/store.js index 3c85101..5b2da8e 100644 --- a/dist/system/store.js +++ b/dist/system/store.js @@ -21,8 +21,8 @@ System.register(["rxjs", "aurelia-framework", "./history", "./middleware", "./lo function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -41,6 +41,7 @@ System.register(["rxjs", "aurelia-framework", "./history", "./middleware", "./lo if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; + var rxjs_1, aurelia_framework_1, history_1, middleware_1, logging_1, PerformanceMeasurement, Store; var __moduleName = context_1 && context_1.id; function dispatchify(action) { var store = aurelia_framework_1.Container.instance.get(Store); @@ -53,7 +54,6 @@ System.register(["rxjs", "aurelia-framework", "./history", "./middleware", "./lo }; } exports_1("dispatchify", dispatchify); - var rxjs_1, aurelia_framework_1, history_1, middleware_1, logging_1, PerformanceMeasurement, Store; return { setters: [ function (rxjs_1_1) { @@ -300,7 +300,7 @@ System.register(["rxjs", "aurelia-framework", "./history", "./middleware", "./lo if (aurelia_framework_1.PLATFORM.global.devToolsExtension) { this.logger[logging_1.getLogType(this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools are available"); this.devToolsAvailable = true; - this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(); + this.devTools = aurelia_framework_1.PLATFORM.global.__REDUX_DEVTOOLS_EXTENSION__.connect(this.options.devToolsOptions); this.devTools.init(this.initialState); this.devTools.subscribe(function (message) { _this.logger[logging_1.getLogType(_this.options, "devToolsStatus", logging_1.LogLevel.debug)]("DevTools sent change " + message.type); diff --git a/dist/system/store.js.map b/dist/system/store.js.map index 9974adf..176442c 100644 --- a/dist/system/store.js.map +++ b/dist/system/store.js.map @@ -1 +1 @@ -{"version":3,"file":"store.js","sourceRoot":"","sources":["../../src/store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4RA,qBAA+B,MAA2B;QACxD,IAAM,KAAK,GAAG,6BAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QAE5C,OAAO;YAAU,gBAAgB;iBAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IA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AU,CAAC,KAAI,CAAC,OAAO,EAAE,gBAAgB,EAAE,kBAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,0BAAwB,OAAO,CAAC,IAAM,CAAC,CAAC;4BAEhH,IAAI,OAAO,CAAC,IAAI,KAAK,UAAU,EAAE;gCAC/B,KAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;6BAC7C;wBACH,CAAC,CAAC,CAAC;qBACJ;gBACH,CAAC;gBAEO,mCAAmB,GAA3B,UAA4B,MAAc,EAAE,KAAQ;oBAClD,IAAI,IAAI,CAAC,iBAAiB,EAAE;wBAC1B,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;qBACnC;gBACH,CAAC;gBAEO,sCAAsB,GAA9B;oBACE,IAAI,CAAC,cAAc,CAAC,MAAM,EAAE,cAAyB,CAAC,CAAC;gBACzD,CAAC;gBArPU,KAAK;oBADjB,8BAAU,EAAE;mBACA,KAAK,CAsPjB;gBAAD,YAAC;aAAA,AAtPD"} \ No newline at end of file diff --git a/dist/system/test-helpers.js b/dist/system/test-helpers.js index 9f71dab..2dbdba8 100644 --- a/dist/system/test-helpers.js +++ b/dist/system/test-helpers.js @@ -15,8 +15,8 @@ System.register(["rxjs/operators"], function (exports_1, context_1) { function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { - if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [0, t.value]; + if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; + if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; @@ -35,6 +35,7 @@ System.register(["rxjs/operators"], function (exports_1, context_1) { if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } }; + var operators_1; var __moduleName = context_1 && context_1.id; function executeSteps(store, shouldLogResults) { var steps = []; @@ -80,7 +81,6 @@ System.register(["rxjs/operators"], function (exports_1, context_1) { }); } exports_1("executeSteps", executeSteps); - var operators_1; return { setters: [ function (operators_1_1) { diff --git a/dist/system/test-helpers.js.map b/dist/system/test-helpers.js.map index ec90926..b4cf83b 100644 --- a/dist/system/test-helpers.js.map +++ b/dist/system/test-helpers.js.map @@ -1 +1 @@ -{"version":3,"file":"test-helpers.js","sourceRoot":"","sources":["../../src/test-helpers.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAOA,sBAAsC,KAAe,EAAE,gBAAyB;QAAE,eAAqB;aAArB,UAAqB,EAArB,qBAAqB,EAArB,IAAqB;YAArB,8BAAqB;;;;;gBAC/F,OAAO,GAAG,UAAC,IAAe,EAAE,OAAe,IAAK,OAAA,UAAC,GAAM;oBAC3D,IAAI,gBAAgB,EAAE;wBACpB,OAAO,CAAC,KAAK,CAAC,UAAQ,OAAS,CAAC,CAAA;wBAChC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;wBACjB,OAAO,CAAC,QAAQ,EAAE,CAAC;qBACpB;oBACD,IAAI,CAAC,GAAG,CAAC,CAAC;gBACZ,CAAC,EAPqD,CAOrD,CAAC;gBAGI,OAAO,GAAG,UAAC,IAAe,EAAE,MAA8B;oBAC9D,OAAA,UAAC,GAAM;wBACL,IAAI;4BACF,IAAI,CAAC,GAAG,CAAC,CAAC;yBACX;wBAAC,OAAO,GAAG,EAAE;4BACZ,MAAM,CAAC,GAAG,CAAC,CAAC;yBACb;oBACH,CAAC;gBAND,CAMC,CAAC;gBAEE,QAAQ,GAAG,UAAC,IAAe,EAAE,OAAmB;oBACpD,OAAA,UAAC,GAAM;wBACL,IAAI,CAAC,GAAG,CAAC,CAAC;wBACV,OAAO,EA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AE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;oBACvF,CAAC,CAAC,EAAC;;;KACJ"} \ No newline at end of file diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 59043b2..f210a49 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,3 +1,89 @@ + +# 1.0.0 (2018-08-09) + + +### Bug Fixes + +* **cli:** add missing cli auto configuration options ([2f58ce8](https://github.com/aurelia/store/commit/2f58ce8)) +* **cli:** auto-cli install fixed for rxjs v6 ([f3e89da](https://github.com/aurelia/store/commit/f3e89da)) +* **connectTo:** call handler before state assignment ([3c27c8a](https://github.com/aurelia/store/commit/3c27c8a)) +* **decorator:** better return types for decorator connectTo ([6b81e3b](https://github.com/aurelia/store/commit/6b81e3b)) +* **decorator:** proper error on missing polyfill ([40827a0](https://github.com/aurelia/store/commit/40827a0)) +* **decorator:** return original setup/teardown result ([af9db1b](https://github.com/aurelia/store/commit/af9db1b)) +* **dispatchify:** return promise from decorator ([c775f18](https://github.com/aurelia/store/commit/c775f18)) +* **middleware:** async waits ([43131a6](https://github.com/aurelia/store/commit/43131a6)) +* **pal:** update pal for proper performance api testing ([35d6db6](https://github.com/aurelia/store/commit/35d6db6)) +* **ssr:** remove direct access to window global ([21049e2](https://github.com/aurelia/store/commit/21049e2)) +* **store:** proper return type for dispatch ([0dcfcdf](https://github.com/aurelia/store/commit/0dcfcdf)) +* **store:** use registered name; refactor ([170b631](https://github.com/aurelia/store/commit/170b631)) +* **test:** properly expose test-helpers ([637a2c1](https://github.com/aurelia/store/commit/637a2c1)) + + +### Chores + +* **release:** new rxjs release ([593d4e9](https://github.com/aurelia/store/commit/593d4e9)) + + +### Code Refactoring + +* **types:** saner typesafety ([fd6fcea](https://github.com/aurelia/store/commit/fd6fcea)) + + +### Features + +* **actions:** unregistering actions ([296ecf0](https://github.com/aurelia/store/commit/296ecf0)) +* **all:** upgrade to `rxjs@6.2.0` ([598082a](https://github.com/aurelia/store/commit/598082a)) +* **connecTo:** setup and teardown functions ([8acfc89](https://github.com/aurelia/store/commit/8acfc89)) +* **connectTo:** onChanged callback ([d648391](https://github.com/aurelia/store/commit/d648391)) +* **connectTo:** support multiple selectors ([4b6ee0a](https://github.com/aurelia/store/commit/4b6ee0a)), closes [#36](https://github.com/aurelia/store/issues/36) +* **decorator:** complex settings object added ([0141dce](https://github.com/aurelia/store/commit/0141dce)) +* **decorator:** connectTo decorator ([61a1061](https://github.com/aurelia/store/commit/61a1061)) +* **decorator:** multiple selectors ([88fd6c3](https://github.com/aurelia/store/commit/88fd6c3)) +* **DevTools:** options to configure the Redux DevTools communication ([3aa2c18](https://github.com/aurelia/store/commit/3aa2c18)) +* **dispatch:** dispatch by registered name ([49f498e](https://github.com/aurelia/store/commit/49f498e)) +* **dispatch:** error on unregistered dispatch ([5188148](https://github.com/aurelia/store/commit/5188148)) +* **dispatch:** pass additional arguments to reducer ([c8d4840](https://github.com/aurelia/store/commit/c8d4840)) +* **dispatch:** propagateError option ([d5a0a80](https://github.com/aurelia/store/commit/d5a0a80)) +* **dispatch:** queued execution of dispatch ([5e63dea](https://github.com/aurelia/store/commit/5e63dea)) +* **dispatchify:** type-safe arguments ([4020b93](https://github.com/aurelia/store/commit/4020b93)) +* **history:** add time-traveling feature ([b8d3d85](https://github.com/aurelia/store/commit/b8d3d85)) +* **history:** added next state creation helper ([b614603](https://github.com/aurelia/store/commit/b614603)) +* **history:** history overflow via limit ([c005758](https://github.com/aurelia/store/commit/c005758)) +* **logging:** custom loglevels for various features ([8aaca77](https://github.com/aurelia/store/commit/8aaca77)) +* **middleware:** configurable localStorage middleware ([493cede](https://github.com/aurelia/store/commit/493cede)) +* **middleware:** localStorage middleware and action added ([5713cf9](https://github.com/aurelia/store/commit/5713cf9)) +* **middleware:** log middleware settings ([2a8abbb](https://github.com/aurelia/store/commit/2a8abbb)) +* **middleware:** originalState for after middleware ([865b6de](https://github.com/aurelia/store/commit/865b6de)) +* **middleware:** pass original state to all middleware positions ([b9a8b29](https://github.com/aurelia/store/commit/b9a8b29)) +* **middleware:** provide calling action name and params ([82736eb](https://github.com/aurelia/store/commit/82736eb)) +* **middleware:** register middleware settings ([d224a77](https://github.com/aurelia/store/commit/d224a77)) +* **middleware:** support middleware registration ([6927513](https://github.com/aurelia/store/commit/6927513)) +* **middleware:** unregister middleware ([1ac79b8](https://github.com/aurelia/store/commit/1ac79b8)) +* **performance:** added perf measurement option ([5578200](https://github.com/aurelia/store/commit/5578200)) +* **reducer:** stoppable reducers ([0be79a7](https://github.com/aurelia/store/commit/0be79a7)) +* **store:** check for registered actions and middlewares ([332a088](https://github.com/aurelia/store/commit/332a088)) +* **store:** dispatchify helper added ([3458b22](https://github.com/aurelia/store/commit/3458b22)) +* **store:** promise support; error-handling ([e146dee](https://github.com/aurelia/store/commit/e146dee)) +* **test:** added test helper for sequences ([7b29473](https://github.com/aurelia/store/commit/7b29473)) +* **TS:** typesafe dispatch ([f2c4f18](https://github.com/aurelia/store/commit/f2c4f18)) +* **undo:** added undo-redo feature ([1ca6a8f](https://github.com/aurelia/store/commit/1ca6a8f)) + + +### BREAKING CHANGES + +* **TS:** From here on the plugin requires TS >= 3.0.0 + +related issue https://github.com/aurelia/store/issues/53 +* **release:** updated to new major RxJS version ^6.2.0 +* **dispatch:** * Dispatches are now queued and do not run in parallel +* plugin initialization parameters changed +* after middlewares are awaited now +* **dispatch:** Dispatching unregistered actions will throw an error +* **types:** * NextState is dropped +* Plugin initialization handles lifting of state to statehistory for initial state, but the store itself doesn't anymore. + + + # 0.26.0 (2018-07-24) diff --git a/package-lock.json b/package-lock.json index aa84f6c..ed96a0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aurelia-store", - "version": "0.26.0", + "version": "1.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 489d2fe..ff6cda7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aurelia-store", - "version": "0.26.0", + "version": "1.0.0", "description": "Aurelia single state store based on RxJS", "keywords": [ "aurelia",