diff --git a/.vscode/settings.json b/.vscode/settings.json
index 6cef4a26..efcf9c60 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -20,13 +20,9 @@
"*.njk": "html",
"ssh-config": "ssh_config"
},
- "markdownlint.ignore": [
- "**/CHANGELOG.md"
- ],
+ "markdownlint.ignore": ["**/CHANGELOG.md"],
"cSpell.language": "en,fa,fa-IR",
- "cSpell.words": [
- "Alwatr"
- ],
+ "cSpell.words": ["Alwatr"],
"typescript.tsdk": "node_modules/typescript/lib",
"git.autoStash": true,
"git.branchProtection": ["main", "next"],
diff --git a/demo/server-context/index.html b/demo/server-context/index.html
index e5e18bd2..627535a8 100644
--- a/demo/server-context/index.html
+++ b/demo/server-context/index.html
@@ -1,13 +1,11 @@
-
+
-
-
-
-
- Server Context
-
-
-
-
-
+
+
+
+
+ Server Context
+
+
+
diff --git a/demo/signal/multithread-context/share-context.ts b/demo/signal/multithread-context/share-context.ts
index 6b41d313..a992d50d 100644
--- a/demo/signal/multithread-context/share-context.ts
+++ b/demo/signal/multithread-context/share-context.ts
@@ -4,6 +4,6 @@ import type {Stringifyable} from '@alwatr/type';
interface Message {
type: string;
- payload: Stringifyable
+ payload: Stringifyable;
}
export const messageContext = new AlwatrMultithreadContextSignal({name: 'demo.message'});
diff --git a/demo/signal/simple/index.ts b/demo/signal/simple/index.ts
index 7c2bd026..27814965 100644
--- a/demo/signal/simple/index.ts
+++ b/demo/signal/simple/index.ts
@@ -8,7 +8,6 @@ function clickEventSubscribeHandler(): void {
}
clickEvent.subscribe(clickEventSubscribeHandler);
-
// button 2
const clickEvent2 = new AlwatrSignal({name: 'button-2-click-event'});
document.getElementById('myButton2')?.addEventListener('click', () => clickEvent2.notify({clickedBy: 'BTN_2'}));
@@ -17,14 +16,12 @@ function clickEvent2SubscribeHandler(detail: unknown): void {
}
clickEvent2.subscribe(clickEvent2SubscribeHandler);
-
// button 3
document.getElementById('myButton3')?.addEventListener('click', () => {
clickEvent.subscribe(clickEventSubscribeHandler);
clickEvent2.subscribe(clickEvent2SubscribeHandler);
});
-
// button 4
document.getElementById('myButton4')?.addEventListener('click', () => {
clickEvent.unsubscribe(clickEventSubscribeHandler);
diff --git a/index.html b/index.html
index bd5cf0f4..aeacc29d 100644
--- a/index.html
+++ b/index.html
@@ -1,4 +1,4 @@
-
+
diff --git a/packages/fsm/CHANGELOG.md b/packages/fsm/CHANGELOG.md
index 120c9f90..998ee4d9 100644
--- a/packages/fsm/CHANGELOG.md
+++ b/packages/fsm/CHANGELOG.md
@@ -21,46 +21,46 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **fms:** import path ([f6770a0](https://github.com/AliMD/alwatr-signal/commit/f6770a07fdf6855ccd63a85822d44d5ef9c72dee))
-* **fsm:** action maybe async ([50efffa](https://github.com/AliMD/alwatr-signal/commit/50efffa34a2ea5a3515561d7425da0c109631f36))
-* **fsm:** autoSignalUnsubscribe type ([f7db30b](https://github.com/AliMD/alwatr-signal/commit/f7db30bf5a90ff3d163f036b313a412a5149ff2b))
-* **fsm:** call render states function in there own this ([a950478](https://github.com/AliMD/alwatr-signal/commit/a95047811366e375785b2cd8fb176b1176638cab))
-* **fsm:** fix order of `initFsmInstance` args ([3b60138](https://github.com/AliMD/alwatr-signal/commit/3b60138ecebcbcb4d732e4d1a3e79f5b8661ae47))
-* **fsm:** initial exec actions ([e7dd5c8](https://github.com/AliMD/alwatr-signal/commit/e7dd5c8aaf9760c9856e4392cc899020f7e796d9))
-* **fsm:** last reported bugs in set state ([e7435c8](https://github.com/AliMD/alwatr-signal/commit/e7435c870a054b0ec3e4004f13c6db7610610be0))
-* **fsm:** review reset process ([af6e81c](https://github.com/AliMD/alwatr-signal/commit/af6e81c068b467d8b3aa96f2431e13ac479f018c))
-* **fsm:** run init entry actions ([777ae45](https://github.com/AliMD/alwatr-signal/commit/777ae459f2b77f79696daf3a0ca355d6d78e57d3))
-* new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
+- **fms:** import path ([f6770a0](https://github.com/AliMD/alwatr-signal/commit/f6770a07fdf6855ccd63a85822d44d5ef9c72dee))
+- **fsm:** action maybe async ([50efffa](https://github.com/AliMD/alwatr-signal/commit/50efffa34a2ea5a3515561d7425da0c109631f36))
+- **fsm:** autoSignalUnsubscribe type ([f7db30b](https://github.com/AliMD/alwatr-signal/commit/f7db30bf5a90ff3d163f036b313a412a5149ff2b))
+- **fsm:** call render states function in there own this ([a950478](https://github.com/AliMD/alwatr-signal/commit/a95047811366e375785b2cd8fb176b1176638cab))
+- **fsm:** fix order of `initFsmInstance` args ([3b60138](https://github.com/AliMD/alwatr-signal/commit/3b60138ecebcbcb4d732e4d1a3e79f5b8661ae47))
+- **fsm:** initial exec actions ([e7dd5c8](https://github.com/AliMD/alwatr-signal/commit/e7dd5c8aaf9760c9856e4392cc899020f7e796d9))
+- **fsm:** last reported bugs in set state ([e7435c8](https://github.com/AliMD/alwatr-signal/commit/e7435c870a054b0ec3e4004f13c6db7610610be0))
+- **fsm:** review reset process ([af6e81c](https://github.com/AliMD/alwatr-signal/commit/af6e81c068b467d8b3aa96f2431e13ac479f018c))
+- **fsm:** run init entry actions ([777ae45](https://github.com/AliMD/alwatr-signal/commit/777ae459f2b77f79696daf3a0ca355d6d78e57d3))
+- new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
### Features
-* **fsm:** add `signalRecord` to config ([1a35291](https://github.com/AliMD/alwatr-signal/commit/1a352915fba978da141513517655d1e07350c3ec))
-* **fsm:** add unsubscribe ([85ed3c3](https://github.com/AliMD/alwatr-signal/commit/85ed3c3439e1f40c2760f6011df112242f10be06))
-* **fsm:** callback in provider signals ([772818b](https://github.com/AliMD/alwatr-signal/commit/772818baa7953b6fbb4d4128fcee76733f42cc2d))
-* **fsm:** custom signal callback ([47c22e9](https://github.com/AliMD/alwatr-signal/commit/47c22e92a8a8085148b44b316d649b695ff8071a))
-* **fsm:** destroy and expire api ([e1a1c15](https://github.com/AliMD/alwatr-signal/commit/e1a1c150d81f4428718bd18f039235c7fce9caf2))
-* **fsm:** new types ([2866e3b](https://github.com/AliMD/alwatr-signal/commit/2866e3bd5ff56fd2b5bddcaed3673a5868bae4bb))
-* **fsm:** rewrite state machine ([7f24695](https://github.com/AliMD/alwatr-signal/commit/7f246959e5a80b21c1c4b21e895e75f8fbe56798))
-* **fsm:** subscribe ([2af4f44](https://github.com/AliMD/alwatr-signal/commit/2af4f44f0e8a2dee39cde10dcaa3281075632e6a))
+- **fsm:** add `signalRecord` to config ([1a35291](https://github.com/AliMD/alwatr-signal/commit/1a352915fba978da141513517655d1e07350c3ec))
+- **fsm:** add unsubscribe ([85ed3c3](https://github.com/AliMD/alwatr-signal/commit/85ed3c3439e1f40c2760f6011df112242f10be06))
+- **fsm:** callback in provider signals ([772818b](https://github.com/AliMD/alwatr-signal/commit/772818baa7953b6fbb4d4128fcee76733f42cc2d))
+- **fsm:** custom signal callback ([47c22e9](https://github.com/AliMD/alwatr-signal/commit/47c22e92a8a8085148b44b316d649b695ff8071a))
+- **fsm:** destroy and expire api ([e1a1c15](https://github.com/AliMD/alwatr-signal/commit/e1a1c150d81f4428718bd18f039235c7fce9caf2))
+- **fsm:** new types ([2866e3b](https://github.com/AliMD/alwatr-signal/commit/2866e3bd5ff56fd2b5bddcaed3673a5868bae4bb))
+- **fsm:** rewrite state machine ([7f24695](https://github.com/AliMD/alwatr-signal/commit/7f246959e5a80b21c1c4b21e895e75f8fbe56798))
+- **fsm:** subscribe ([2af4f44](https://github.com/AliMD/alwatr-signal/commit/2af4f44f0e8a2dee39cde10dcaa3281075632e6a))
# 0.30.0 (2023-03-06)
### Bug Fixes
-* **fsm:** every signal mather ([0dc504d](https://github.com/AliMD/alwatr-signal/commit/0dc504dacbb1ec68f154244619d644ff8e43cc04))
-* **fsm:** remove additional import ([231337b](https://github.com/AliMD/alwatr-signal/commit/231337b95ee7b046fe35429f50931ddf85be291f))
-* **fsm:** update context in transition bug ([28a21d0](https://github.com/AliMD/alwatr-signal/commit/28a21d00d903b6189d814303c72ba6e784852f33))
+- **fsm:** every signal mather ([0dc504d](https://github.com/AliMD/alwatr-signal/commit/0dc504dacbb1ec68f154244619d644ff8e43cc04))
+- **fsm:** remove additional import ([231337b](https://github.com/AliMD/alwatr-signal/commit/231337b95ee7b046fe35429f50931ddf85be291f))
+- **fsm:** update context in transition bug ([28a21d0](https://github.com/AliMD/alwatr-signal/commit/28a21d00d903b6189d814303c72ba6e784852f33))
### Features
-* Alwatr Finite State Machines ([d5900b4](https://github.com/AliMD/alwatr-signal/commit/d5900b4ee8685b120188888871405853f5a69417))
-* **fsm:** $all and $self state ([69adf41](https://github.com/AliMD/alwatr-signal/commit/69adf41064ca0f55497484c50e298ebc26c42dcc))
-* **fsm:** enhance types ([3b13046](https://github.com/AliMD/alwatr-signal/commit/3b130463a102f59c38603b0de470be5c87ee88c9))
-* **fsm:** make simple state machine ([ff9ae1c](https://github.com/AliMD/alwatr-signal/commit/ff9ae1ca04156e8b811899ff0f62480e1c37af72))
-* **fsm:** new state context type with {to, from, by} ([11423e6](https://github.com/AliMD/alwatr-signal/commit/11423e6a89159b92e82cfd1e774ad37983581090))
-* **fsm:** rewrite with signal power ([01a1651](https://github.com/AliMD/alwatr-signal/commit/01a1651e231a817d5eebb54cf84d51d620bfd6e8))
-* **fsm:** share state events ([de42522](https://github.com/AliMD/alwatr-signal/commit/de42522a97fdf6be8bee73d91a35820e2a5e6efb))
-* **fsm:** transition with partial context set ([823377e](https://github.com/AliMD/alwatr-signal/commit/823377e65028ea3e713f060ae678776c609c1661))
+- Alwatr Finite State Machines ([d5900b4](https://github.com/AliMD/alwatr-signal/commit/d5900b4ee8685b120188888871405853f5a69417))
+- **fsm:** $all and $self state ([69adf41](https://github.com/AliMD/alwatr-signal/commit/69adf41064ca0f55497484c50e298ebc26c42dcc))
+- **fsm:** enhance types ([3b13046](https://github.com/AliMD/alwatr-signal/commit/3b130463a102f59c38603b0de470be5c87ee88c9))
+- **fsm:** make simple state machine ([ff9ae1c](https://github.com/AliMD/alwatr-signal/commit/ff9ae1ca04156e8b811899ff0f62480e1c37af72))
+- **fsm:** new state context type with {to, from, by} ([11423e6](https://github.com/AliMD/alwatr-signal/commit/11423e6a89159b92e82cfd1e774ad37983581090))
+- **fsm:** rewrite with signal power ([01a1651](https://github.com/AliMD/alwatr-signal/commit/01a1651e231a817d5eebb54cf84d51d620bfd6e8))
+- **fsm:** share state events ([de42522](https://github.com/AliMD/alwatr-signal/commit/de42522a97fdf6be8bee73d91a35820e2a5e6efb))
+- **fsm:** transition with partial context set ([823377e](https://github.com/AliMD/alwatr-signal/commit/823377e65028ea3e713f060ae678776c609c1661))
# [1.0.0](https://github.com/AliMD/alwatr-signal/compare/v0.32.0...v1.0.0) (2023-06-14)
diff --git a/packages/fsm/src/base.ts b/packages/fsm/src/base.ts
index 191869bf..ab035f5b 100644
--- a/packages/fsm/src/base.ts
+++ b/packages/fsm/src/base.ts
@@ -27,7 +27,7 @@ export abstract class FiniteStateMachineBase
protected _initialState: S;
- constructor(config: {name: string, loggerPrefix?: string, initialState: S}) {
+ constructor(config: {name: string; loggerPrefix?: string; initialState: S}) {
config.loggerPrefix ??= 'fsm';
super(config);
this._initialState = config.initialState;
@@ -53,20 +53,20 @@ export abstract class FiniteStateMachineBase
if (toState == null) {
this._logger.incident?.(
- 'transition',
- 'invalid_target_state',
- 'Defined target state for this event not found in state config',
- {
- fromState,
- event,
- },
+ 'transition',
+ 'invalid_target_state',
+ 'Defined target state for this event not found in state config',
+ {
+ fromState,
+ event,
+ },
);
return;
}
const eventDetail: StateEventDetail = {from: fromState, event, to: toState};
- if (await this._shouldTransition(eventDetail) !== true) return;
+ if ((await this._shouldTransition(eventDetail)) !== true) return;
this._notify(toState);
@@ -91,7 +91,7 @@ export abstract class FiniteStateMachineBase
if (`_on_${eventDetail.from}_${eventDetail.event}` in this) {
this._$execAction(`_on_${eventDetail.from}_${eventDetail.event}`, eventDetail);
}
- else {
+ else {
this._$execAction(`_on_all_${eventDetail.event}`, eventDetail);
}
}
diff --git a/packages/server-context/CHANGELOG.md b/packages/server-context/CHANGELOG.md
index 2e57abf8..2a34d9a8 100644
--- a/packages/server-context/CHANGELOG.md
+++ b/packages/server-context/CHANGELOG.md
@@ -15,13 +15,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **server-context:** convert some `super` to `this` ([3a79736](https://github.com/AliMD/alwatr-signal/commit/3a7973658daf2ee364aced0c7c4880041dfc9a1a))
-* **server-context:** export `server-context` to use ([b71c9a5](https://github.com/AliMD/alwatr-signal/commit/b71c9a5efa35ac4b5e53fd5cd966277abd7ff592))
+- **server-context:** convert some `super` to `this` ([3a79736](https://github.com/AliMD/alwatr-signal/commit/3a7973658daf2ee364aced0c7c4880041dfc9a1a))
+- **server-context:** export `server-context` to use ([b71c9a5](https://github.com/AliMD/alwatr-signal/commit/b71c9a5efa35ac4b5e53fd5cd966277abd7ff592))
### Features
-* **server-context:** AlwatrServerContext ([2ca976a](https://github.com/AliMD/alwatr-signal/commit/2ca976afd50b3022a264eef880274a9e1496056a))
-* **server-context:** dynamic extra state/event type ([1cb6db1](https://github.com/AliMD/alwatr-signal/commit/1cb6db1573f9349edecdc7d73e66243cadea40d4))
+- **server-context:** AlwatrServerContext ([2ca976a](https://github.com/AliMD/alwatr-signal/commit/2ca976afd50b3022a264eef880274a9e1496056a))
+- **server-context:** dynamic extra state/event type ([1cb6db1](https://github.com/AliMD/alwatr-signal/commit/1cb6db1573f9349edecdc7d73e66243cadea40d4))
# 1.0.0 (2023-06-14)
@@ -43,23 +43,23 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* **context:** compatible with new storage api ([5251ff0](https://github.com/AliMD/alwatr-signal/commit/5251ff005624720e091cdbc40e6b0142743428cb))
+- **context:** compatible with new storage api ([5251ff0](https://github.com/AliMD/alwatr-signal/commit/5251ff005624720e091cdbc40e6b0142743428cb))
# 0.31.0 (2023-05-08)
### Bug Fixes
-* build issues ([e1060bc](https://github.com/AliMD/alwatr-signal/commit/e1060bccbfe3c775c32b85e9b8eb601e48b2998c))
-* **context:** merge request option issue ([e24e695](https://github.com/AliMD/alwatr-signal/commit/e24e695a8c25ab1dcb1c351a3ae0434e921610d0))
-* new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
-* packages and refs ([eea2382](https://github.com/AliMD/alwatr-signal/commit/eea2382e459ccaa3e7b4b329d9c196eda146a08e))
+- build issues ([e1060bc](https://github.com/AliMD/alwatr-signal/commit/e1060bccbfe3c775c32b85e9b8eb601e48b2998c))
+- **context:** merge request option issue ([e24e695](https://github.com/AliMD/alwatr-signal/commit/e24e695a8c25ab1dcb1c351a3ae0434e921610d0))
+- new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
+- packages and refs ([eea2382](https://github.com/AliMD/alwatr-signal/commit/eea2382e459ccaa3e7b4b329d9c196eda146a08e))
### Features
-* **context:** add `requestIfNotComplete` ([580d5c9](https://github.com/AliMD/alwatr-signal/commit/580d5c9c74f1c8921b45d402641df9444f438547))
-* **context:** awesome server context ([c001c58](https://github.com/AliMD/alwatr-signal/commit/c001c58a2b1b4e13fd1c34b5128031fd640a98e1))
-* **context:** new package ([98ee43d](https://github.com/AliMD/alwatr-signal/commit/98ee43d83b1ad5b3806ec6053c5cac70912000b3))
-* **context:** simple context api ([2a1b152](https://github.com/AliMD/alwatr-signal/commit/2a1b152380f267a6b173f08bbbe10295325b1fd8))
+- **context:** add `requestIfNotComplete` ([580d5c9](https://github.com/AliMD/alwatr-signal/commit/580d5c9c74f1c8921b45d402641df9444f438547))
+- **context:** awesome server context ([c001c58](https://github.com/AliMD/alwatr-signal/commit/c001c58a2b1b4e13fd1c34b5128031fd640a98e1))
+- **context:** new package ([98ee43d](https://github.com/AliMD/alwatr-signal/commit/98ee43d83b1ad5b3806ec6053c5cac70912000b3))
+- **context:** simple context api ([2a1b152](https://github.com/AliMD/alwatr-signal/commit/2a1b152380f267a6b173f08bbbe10295325b1fd8))
# [1.0.0](https://github.com/AliMD/alwatr-signal/compare/v0.32.0...v1.0.0) (2023-06-14)
diff --git a/packages/server-context/src/api-request.ts b/packages/server-context/src/api-request.ts
index a6cc1a13..1c500cd7 100644
--- a/packages/server-context/src/api-request.ts
+++ b/packages/server-context/src/api-request.ts
@@ -10,7 +10,7 @@ import type {AlwatrServiceResponse} from '@alwatr/type';
export abstract class AlwatrApiRequestBase<
T extends AlwatrServiceResponse = AlwatrServiceResponse,
ExtraState extends string = never,
- ExtraEvent extends string = never
+ ExtraEvent extends string = never,
> extends AlwatrServerRequestBase {
protected _responseJson?: T;
diff --git a/packages/server-context/src/server-context.ts b/packages/server-context/src/server-context.ts
index 010a9f01..6da1c482 100644
--- a/packages/server-context/src/server-context.ts
+++ b/packages/server-context/src/server-context.ts
@@ -11,7 +11,7 @@ type ExtraEvent = 'cacheNotFound';
export type ServerContextEvent = ServerRequestEvent | ExtraEvent;
export abstract class AlwatrServerContextBase<
- T extends AlwatrServiceResponse = AlwatrServiceResponse
+ T extends AlwatrServiceResponse = AlwatrServiceResponse,
> extends AlwatrApiRequestBase {
protected _context?: T;
constructor(protected override _config: ServerRequestConfig) {
@@ -126,7 +126,7 @@ export abstract class AlwatrServerContextBase<
}
export class AlwatrServerContext<
- T extends AlwatrServiceResponse = AlwatrServiceResponse
+ T extends AlwatrServiceResponse = AlwatrServiceResponse,
> extends AlwatrServerContextBase {
/**
* Current state.
diff --git a/packages/server-context/src/server-request.ts b/packages/server-context/src/server-request.ts
index 41db7896..b5e2ab83 100644
--- a/packages/server-context/src/server-request.ts
+++ b/packages/server-context/src/server-request.ts
@@ -12,7 +12,7 @@ export type ServerRequestEvent = 'request' | 'requestFailed' | 'requestSuccess';
export abstract class AlwatrServerRequestBase<
ExtraState extends string = never,
- ExtraEvent extends string = never
+ ExtraEvent extends string = never,
> extends FiniteStateMachineBase {
protected _$fetchOptions?: FetchOptions;
protected _response?: Response;
diff --git a/packages/signal/CHANGELOG.md b/packages/signal/CHANGELOG.md
index 5eeed9eb..10bb733e 100644
--- a/packages/signal/CHANGELOG.md
+++ b/packages/signal/CHANGELOG.md
@@ -21,68 +21,68 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
-* **signal:** dont receivePrevious when listener is disabled ([68ae207](https://github.com/AliMD/alwatr-signal/commit/68ae207ce9ecf104922b24910d8dfcedb13acde7))
-* **signal:** requestableContextProvider.getValue ([0a7111d](https://github.com/AliMD/alwatr-signal/commit/0a7111da7b8eb004566922dc9b35edfc02a55147))
+- new logger api ([9d83a7d](https://github.com/AliMD/alwatr-signal/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300))
+- **signal:** dont receivePrevious when listener is disabled ([68ae207](https://github.com/AliMD/alwatr-signal/commit/68ae207ce9ecf104922b24910d8dfcedb13acde7))
+- **signal:** requestableContextProvider.getValue ([0a7111d](https://github.com/AliMD/alwatr-signal/commit/0a7111da7b8eb004566922dc9b35edfc02a55147))
### Features
-* **signal:** new RequestableContext with state ([b8a8e55](https://github.com/AliMD/alwatr-signal/commit/b8a8e550d3952863d85ba9d9d87513a668a9430d))
+- **signal:** new RequestableContext with state ([b8a8e55](https://github.com/AliMD/alwatr-signal/commit/b8a8e550d3952863d85ba9d9d87513a668a9430d))
# 0.30.0 (2023-03-06)
### Bug Fixes
-* **signal:** NextCycle with own detail ([01f3c79](https://github.com/AliMD/alwatr-signal/commit/01f3c79500927f6384a33abcc9b0cb2355794b3e))
-* **signal:** nodejs compatibility ([69d8a60](https://github.com/AliMD/alwatr-signal/commit/69d8a60ad64d44ee7c3ced002e702f13408a5a50))
-* **signal:** requestableContextConsumer bind issue ([66467f6](https://github.com/AliMD/alwatr-signal/commit/66467f6e5681d84d7f2e0b353206d4bb579b26f2))
-* **signal:** requestContext dispatch issue ([e937ebd](https://github.com/AliMD/alwatr-signal/commit/e937ebd3a90fc6a9946f5c35ef4f6f40b6ab4b00))
+- **signal:** NextCycle with own detail ([01f3c79](https://github.com/AliMD/alwatr-signal/commit/01f3c79500927f6384a33abcc9b0cb2355794b3e))
+- **signal:** nodejs compatibility ([69d8a60](https://github.com/AliMD/alwatr-signal/commit/69d8a60ad64d44ee7c3ced002e702f13408a5a50))
+- **signal:** requestableContextConsumer bind issue ([66467f6](https://github.com/AliMD/alwatr-signal/commit/66467f6e5681d84d7f2e0b353206d4bb579b26f2))
+- **signal:** requestContext dispatch issue ([e937ebd](https://github.com/AliMD/alwatr-signal/commit/e937ebd3a90fc6a9946f5c35ef4f6f40b6ab4b00))
### Features
-* **signal:** add untilChange for contextProvider ([cb44916](https://github.com/AliMD/alwatr-signal/commit/cb4491698fd5ddfbe055032fc2cb50691de31194))
-* **signal:** defineCommand return ListenerSpec ([21fecac](https://github.com/AliMD/alwatr-signal/commit/21fecacb6aa9423da9e3c177a4bbc59952d94e35))
-* **signal:** dispatch NextCycle option ([b30eb31](https://github.com/AliMD/alwatr-signal/commit/b30eb316d92f594034fc40d195c4033e38e4d2e2))
+- **signal:** add untilChange for contextProvider ([cb44916](https://github.com/AliMD/alwatr-signal/commit/cb4491698fd5ddfbe055032fc2cb50691de31194))
+- **signal:** defineCommand return ListenerSpec ([21fecac](https://github.com/AliMD/alwatr-signal/commit/21fecacb6aa9423da9e3c177a4bbc59952d94e35))
+- **signal:** dispatch NextCycle option ([b30eb31](https://github.com/AliMD/alwatr-signal/commit/b30eb316d92f594034fc40d195c4033e38e4d2e2))
# 0.29.0 (2023-02-10)
### Bug Fixes
-* **signal/core:** _getSignalObject ([1374188](https://github.com/AliMD/alwatr-signal/commit/1374188bdc7e689ded11d04bf4588a1162cc6d86))
-* **signal:** alert [#1455](https://github.com/AliMD/alwatr-signal/issues/1455) ([203307d](https://github.com/AliMD/alwatr-signal/commit/203307df308a12e6c38cb9e0e2301b2015b6ff45))
-* **signal:** clean old interfaces ([b2987ad](https://github.com/AliMD/alwatr-signal/commit/b2987add7bfe0cf609fa355403fb9fb5de3f6b8a))
-* **signal:** export all interfaces ([8704eac](https://github.com/AliMD/alwatr-signal/commit/8704eac6ae7a8a45e77c24ef5e602e36af3fd21e))
-* **signal:** export listeners ([fb05bfb](https://github.com/AliMD/alwatr-signal/commit/fb05bfb9b7eb30427442783677ce1d4da5401160))
-* **signal:** import types ([cc0b88b](https://github.com/AliMD/alwatr-signal/commit/cc0b88be420b1fe057a8640bbffb1af3bf327cef))
-* **signal:** interface bind type ([7b6c820](https://github.com/AliMD/alwatr-signal/commit/7b6c820da2ba216f36e089bf79bdeccf208df3b1))
-* **signal:** reported issues ([75f688f](https://github.com/AliMD/alwatr-signal/commit/75f688faf96a056a256603d05276f5731db86aee))
-* **signal:** TSignal on SignalControllerInterface ([ac42b7c](https://github.com/AliMD/alwatr-signal/commit/ac42b7c7023549e8dd07cd3d9e189f356ffa06ee))
+- **signal/core:** \_getSignalObject ([1374188](https://github.com/AliMD/alwatr-signal/commit/1374188bdc7e689ded11d04bf4588a1162cc6d86))
+- **signal:** alert [#1455](https://github.com/AliMD/alwatr-signal/issues/1455) ([203307d](https://github.com/AliMD/alwatr-signal/commit/203307df308a12e6c38cb9e0e2301b2015b6ff45))
+- **signal:** clean old interfaces ([b2987ad](https://github.com/AliMD/alwatr-signal/commit/b2987add7bfe0cf609fa355403fb9fb5de3f6b8a))
+- **signal:** export all interfaces ([8704eac](https://github.com/AliMD/alwatr-signal/commit/8704eac6ae7a8a45e77c24ef5e602e36af3fd21e))
+- **signal:** export listeners ([fb05bfb](https://github.com/AliMD/alwatr-signal/commit/fb05bfb9b7eb30427442783677ce1d4da5401160))
+- **signal:** import types ([cc0b88b](https://github.com/AliMD/alwatr-signal/commit/cc0b88be420b1fe057a8640bbffb1af3bf327cef))
+- **signal:** interface bind type ([7b6c820](https://github.com/AliMD/alwatr-signal/commit/7b6c820da2ba216f36e089bf79bdeccf208df3b1))
+- **signal:** reported issues ([75f688f](https://github.com/AliMD/alwatr-signal/commit/75f688faf96a056a256603d05276f5731db86aee))
+- **signal:** TSignal on SignalControllerInterface ([ac42b7c](https://github.com/AliMD/alwatr-signal/commit/ac42b7c7023549e8dd07cd3d9e189f356ffa06ee))
### Features
-* **signal-manager:** enhance provider, docs ([c4583a3](https://github.com/AliMD/alwatr-signal/commit/c4583a3b0fcbf38b5e426aaa2bc6e0f52ccac5fd))
-* **signal:** alias in SignalInterface & BoundSignalInterface ([053030b](https://github.com/AliMD/alwatr-signal/commit/053030b96c09d474794f32327d892f1d3690656c))
-* **signal:** bind signal ([de49a13](https://github.com/AliMD/alwatr-signal/commit/de49a13eaffce31660849dfc63285d97e9098c0c))
-* **signal:** command handler/provider interface ([3d23683](https://github.com/AliMD/alwatr-signal/commit/3d236837e13d8cfdcd44a1570bdc9659f48e7f47))
-* **signal:** command signals ([98c1d90](https://github.com/AliMD/alwatr-signal/commit/98c1d90978329e4c5c584e19edb1aaa365632162))
-* **signal:** command trigger interface ([dda9466](https://github.com/AliMD/alwatr-signal/commit/dda94666d9e8e490fea26038044df0e67c203583))
-* **signal:** commandSignal ([5a0d7e5](https://github.com/AliMD/alwatr-signal/commit/5a0d7e5498087620d28548ea5d90036a7b17483a))
-* **signal:** context prover and consumer ([081a51a](https://github.com/AliMD/alwatr-signal/commit/081a51a1ee88e66ebbcd0c58186c00a6aa9e1032))
-* **signal:** contextProvider.expire ([7d0ce93](https://github.com/AliMD/alwatr-signal/commit/7d0ce937f0eadcd9019e6047fbe07aa1a3b579a7))
-* **signal:** event listener interface ([4ca4079](https://github.com/AliMD/alwatr-signal/commit/4ca407938d444027cdbd435173c875fdd9ce8e28))
-* **signal:** event trigger interface ([9b90597](https://github.com/AliMD/alwatr-signal/commit/9b905979a5065640981433ec7d120ba2494966bb))
-* **signal:** new contextConsumer interface ([9ee4a62](https://github.com/AliMD/alwatr-signal/commit/9ee4a624211adb66d9c3d180470cca44ed7df382))
-* **signal:** new contextProvider interface ([e5d29eb](https://github.com/AliMD/alwatr-signal/commit/e5d29ebaa75d71bb5a87bedddb2be7600e68b210))
-* **signal:** new manager interface ([f028306](https://github.com/AliMD/alwatr-signal/commit/f028306f4d7932df65a1bbeade0d29377a370e2e))
-* **signal:** new requestable context consumer interface ([bf6845f](https://github.com/AliMD/alwatr-signal/commit/bf6845f35a98bb63bcfa42196c2f977d64aea59e))
-* **signal:** new requestable context provider interface ([2c8d576](https://github.com/AliMD/alwatr-signal/commit/2c8d57604dcb07a2831d85d4ef1e262863a5fae8))
-* **signal:** new signal dynamic types ([0f1a38e](https://github.com/AliMD/alwatr-signal/commit/0f1a38e356ab73e4e2e1a8f852585e50e86cff0e))
-* **signal:** new simple api ([eb1e478](https://github.com/AliMD/alwatr-signal/commit/eb1e47892d4478fb6c687f6d15e1a5c204b5666c))
-* **signal:** refactor all generic types with Stringifyable ([bdcef63](https://github.com/AliMD/alwatr-signal/commit/bdcef632c81fa5e7c7ae595a7a77092c53821850))
-* **signal:** separate request command with response ([47a779e](https://github.com/AliMD/alwatr-signal/commit/47a779e9a814d5d6a388f1a3e94c23e7fb977dce))
-* **signal:** signal.request ([d791b3e](https://github.com/AliMD/alwatr-signal/commit/d791b3eef846697020b76bfecfbf25a3e31eb3a5))
-* **signal:** signal.untilNext ([9df78c0](https://github.com/AliMD/alwatr-signal/commit/9df78c03dea243b467504fdf422388ab9d2b5660))
-* **signal:** signals.expire ([3591efd](https://github.com/AliMD/alwatr-signal/commit/3591efd5e42f7a981814fd59d7189b5066735302))
+- **signal-manager:** enhance provider, docs ([c4583a3](https://github.com/AliMD/alwatr-signal/commit/c4583a3b0fcbf38b5e426aaa2bc6e0f52ccac5fd))
+- **signal:** alias in SignalInterface & BoundSignalInterface ([053030b](https://github.com/AliMD/alwatr-signal/commit/053030b96c09d474794f32327d892f1d3690656c))
+- **signal:** bind signal ([de49a13](https://github.com/AliMD/alwatr-signal/commit/de49a13eaffce31660849dfc63285d97e9098c0c))
+- **signal:** command handler/provider interface ([3d23683](https://github.com/AliMD/alwatr-signal/commit/3d236837e13d8cfdcd44a1570bdc9659f48e7f47))
+- **signal:** command signals ([98c1d90](https://github.com/AliMD/alwatr-signal/commit/98c1d90978329e4c5c584e19edb1aaa365632162))
+- **signal:** command trigger interface ([dda9466](https://github.com/AliMD/alwatr-signal/commit/dda94666d9e8e490fea26038044df0e67c203583))
+- **signal:** commandSignal ([5a0d7e5](https://github.com/AliMD/alwatr-signal/commit/5a0d7e5498087620d28548ea5d90036a7b17483a))
+- **signal:** context prover and consumer ([081a51a](https://github.com/AliMD/alwatr-signal/commit/081a51a1ee88e66ebbcd0c58186c00a6aa9e1032))
+- **signal:** contextProvider.expire ([7d0ce93](https://github.com/AliMD/alwatr-signal/commit/7d0ce937f0eadcd9019e6047fbe07aa1a3b579a7))
+- **signal:** event listener interface ([4ca4079](https://github.com/AliMD/alwatr-signal/commit/4ca407938d444027cdbd435173c875fdd9ce8e28))
+- **signal:** event trigger interface ([9b90597](https://github.com/AliMD/alwatr-signal/commit/9b905979a5065640981433ec7d120ba2494966bb))
+- **signal:** new contextConsumer interface ([9ee4a62](https://github.com/AliMD/alwatr-signal/commit/9ee4a624211adb66d9c3d180470cca44ed7df382))
+- **signal:** new contextProvider interface ([e5d29eb](https://github.com/AliMD/alwatr-signal/commit/e5d29ebaa75d71bb5a87bedddb2be7600e68b210))
+- **signal:** new manager interface ([f028306](https://github.com/AliMD/alwatr-signal/commit/f028306f4d7932df65a1bbeade0d29377a370e2e))
+- **signal:** new requestable context consumer interface ([bf6845f](https://github.com/AliMD/alwatr-signal/commit/bf6845f35a98bb63bcfa42196c2f977d64aea59e))
+- **signal:** new requestable context provider interface ([2c8d576](https://github.com/AliMD/alwatr-signal/commit/2c8d57604dcb07a2831d85d4ef1e262863a5fae8))
+- **signal:** new signal dynamic types ([0f1a38e](https://github.com/AliMD/alwatr-signal/commit/0f1a38e356ab73e4e2e1a8f852585e50e86cff0e))
+- **signal:** new simple api ([eb1e478](https://github.com/AliMD/alwatr-signal/commit/eb1e47892d4478fb6c687f6d15e1a5c204b5666c))
+- **signal:** refactor all generic types with Stringifyable ([bdcef63](https://github.com/AliMD/alwatr-signal/commit/bdcef632c81fa5e7c7ae595a7a77092c53821850))
+- **signal:** separate request command with response ([47a779e](https://github.com/AliMD/alwatr-signal/commit/47a779e9a814d5d6a388f1a3e94c23e7fb977dce))
+- **signal:** signal.request ([d791b3e](https://github.com/AliMD/alwatr-signal/commit/d791b3eef846697020b76bfecfbf25a3e31eb3a5))
+- **signal:** signal.untilNext ([9df78c0](https://github.com/AliMD/alwatr-signal/commit/9df78c03dea243b467504fdf422388ab9d2b5660))
+- **signal:** signals.expire ([3591efd](https://github.com/AliMD/alwatr-signal/commit/3591efd5e42f7a981814fd59d7189b5066735302))
# 0.28.0 (2023-01-20)
@@ -92,12 +92,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
### Bug Fixes
-* set correct path ([d01ce6f](https://github.com/AliMD/alwatr-signal/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
-* tsconfig ([e96dcd3](https://github.com/AliMD/alwatr-signal/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))
+- set correct path ([d01ce6f](https://github.com/AliMD/alwatr-signal/commit/d01ce6ffa749a5e3e0e11e35b4ed61d75d61fec9))
+- tsconfig ([e96dcd3](https://github.com/AliMD/alwatr-signal/commit/e96dcd30774a9f06f7d051e0504192cbbe019e35))
### Features
-* improve error debugging ([1fba504](https://github.com/AliMD/alwatr-signal/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))
+- improve error debugging ([1fba504](https://github.com/AliMD/alwatr-signal/commit/1fba50400a1e8ececc10bbe8ea11cc8dcea2289c))
# [1.0.0](https://github.com/AliMD/alwatr-signal/compare/v0.32.0...v1.0.0) (2023-06-14)
diff --git a/packages/signal/src/context.ts b/packages/signal/src/context.ts
index 31fa80ca..5092cbdc 100644
--- a/packages/signal/src/context.ts
+++ b/packages/signal/src/context.ts
@@ -4,7 +4,7 @@ import {AlwatrObservable} from './observable.js';
* Alwatr context signal.
*/
export class AlwatrContextSignal extends AlwatrObservable {
- constructor(config: {name: string, loggerPrefix?: string}) {
+ constructor(config: {name: string; loggerPrefix?: string}) {
config.loggerPrefix ??= 'context-signal';
super(config);
}
diff --git a/packages/signal/src/multithread-context.ts b/packages/signal/src/multithread-context.ts
index 94851c5d..83ffd675 100644
--- a/packages/signal/src/multithread-context.ts
+++ b/packages/signal/src/multithread-context.ts
@@ -44,7 +44,7 @@ export class AlwatrMultithreadContextSignal extends AlwatrContextSignal<
} as AlwatrContextChangedMessage);
}
- constructor(config: {name: string, loggerPrefix?: string}) {
+ constructor(config: {name: string; loggerPrefix?: string}) {
super(config);
if (AlwatrMultithreadContextSignal._registry[this._name] !== undefined) {
diff --git a/packages/signal/src/signal.ts b/packages/signal/src/signal.ts
index 3289b6af..3ee5eb14 100644
--- a/packages/signal/src/signal.ts
+++ b/packages/signal/src/signal.ts
@@ -4,7 +4,7 @@ import {AlwatrObservable} from './observable.js';
* Alwatr event signal.
*/
export class AlwatrSignal extends AlwatrObservable {
- constructor(config: {name: string, loggerPrefix?: string}) {
+ constructor(config: {name: string; loggerPrefix?: string}) {
config.loggerPrefix ??= 'signal';
super(config);
}
diff --git a/packages/signal/src/simple-signal.ts b/packages/signal/src/simple-signal.ts
index 56ab0984..e2f01f03 100644
--- a/packages/signal/src/simple-signal.ts
+++ b/packages/signal/src/simple-signal.ts
@@ -4,7 +4,7 @@ import {AlwatrObservable} from './observable.js';
* Alwatr event signal without any data.
*/
export class AlwatrSimpleSignal extends AlwatrObservable {
- constructor(config: {name: string, loggerPrefix?: string}) {
+ constructor(config: {name: string; loggerPrefix?: string}) {
config.loggerPrefix ??= 'signal';
super(config);
}