diff --git a/CHANGELOG.md b/CHANGELOG.md index a2dc29e..41541bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -260,3 +260,9 @@ Inital commit, which is working with the browser - `loadFunctions` in `lib\loader\loadPackages.ts` to match the interface of `loadPackages` and add the functions to the package-loader. - added the function `addDecoratedElements` in the package-loader and the interface. +# 1.4.1 + - Fixes: + - Fixing time based issue in `ConnectivityManager` (using the now synced time for checkups) + - `dispatchers.ConnectivityManager.ConnectivityManager`: fixing `_checkDispatcherHealth` + - Fixing `extractUniqueValues` now it is possible to use different pathes for the `key` and `value` + - `lib\helpers\mapMethods.ts` has been adapted \ No newline at end of file diff --git a/lib/dispatcher/ConnectivityManager/ConnectivityManager.ts b/lib/dispatcher/ConnectivityManager/ConnectivityManager.ts index d6b676f..10da45f 100644 --- a/lib/dispatcher/ConnectivityManager/ConnectivityManager.ts +++ b/lib/dispatcher/ConnectivityManager/ConnectivityManager.ts @@ -440,7 +440,7 @@ export class NopeConnectivityManager implements INopeConnectivityManager { * @memberof NopeConnectivityManager */ protected _checkDispatcherHealth(): void { - const currentTime = Date.now(); + const currentTime = this.now; let changes = false; for (const status of this._externalDispatchers.values()) { diff --git a/lib/helpers/getSubject.ts b/lib/helpers/getSubject.ts index b4daf9c..893f553 100644 --- a/lib/helpers/getSubject.ts +++ b/lib/helpers/getSubject.ts @@ -7,7 +7,7 @@ import { BehaviorSubject, ReplaySubject, Subject } from "rxjs"; export interface TSubjectOptions { /** - * Definitin whether to use the history or not. + * Definition whether to show the current value on subscription. * * @author M.Karkowski * @type {boolean} diff --git a/lib/helpers/mapMethods.ts b/lib/helpers/mapMethods.ts index ef1ed11..8fe3784 100644 --- a/lib/helpers/mapMethods.ts +++ b/lib/helpers/mapMethods.ts @@ -42,13 +42,13 @@ export function extractUniqueValues( if (path !== pathKey) { // Get the Common segment of the item. - const commonSegment = getLeastCommonPathSegment([path, pathKey], { + let commonSegment = getLeastCommonPathSegment([path, pathKey], { considerSingleLevel: false, considerMultiLevel: false, }); if (commonSegment == false) { - return new Set(); + commonSegment = ""; } const commonSegmentLength = commonSegment.split(SPLITCHAR).length; @@ -188,6 +188,9 @@ export function tranformMap< value: null, }; + // We migt adapt the key and the Value. Therefore we will use + // the next if statements + if (typeof pathExtractedKey === "string") { if (pathExtractedKey.length > 0) { data.key = rgetattr(v, pathExtractedKey); diff --git a/lib/types/ui/helpers.interface.ts b/lib/types/ui/helpers.interface.ts index 82c7473..e70679e 100644 --- a/lib/types/ui/helpers.interface.ts +++ b/lib/types/ui/helpers.interface.ts @@ -76,6 +76,9 @@ export type TLibraries = { w2confirm: (...args) => any; w2prompt: (...args) => any; w2utils: any; + /** + * The Custom W2UI-Helper provided by the nope-ui package. + */ nopeW2ui: any; }; w2ui: any;