@ersbeth/picoflow 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/picoflow.js +322 -314
- package/dist/types/api/base/flowSubscribable.d.ts +1 -1
- package/dist/types/api/base/flowSubscribable.d.ts.map +1 -1
- package/dist/types/api/nodes/async/flowDerivationAsync.d.ts +1 -1
- package/dist/types/api/nodes/async/flowDerivationAsync.d.ts.map +1 -1
- package/dist/types/api/nodes/flowEffect.d.ts +2 -1
- package/dist/types/api/nodes/flowEffect.d.ts.map +1 -1
- package/dist/types/api/nodes/flowSignal.d.ts +1 -1
- package/dist/types/api/nodes/flowSignal.d.ts.map +1 -1
- package/dist/types/api/nodes/flowValue.d.ts +2 -1
- package/dist/types/api/nodes/flowValue.d.ts.map +1 -1
- package/dist/types/api/nodes/sync/flowDerivation.d.ts +1 -1
- package/dist/types/api/nodes/sync/flowDerivation.d.ts.map +1 -1
- package/dist/types/api/nodes/utils.d.ts +2 -1
- package/dist/types/api/nodes/utils.d.ts.map +1 -1
- package/dist/types/base/disposable.d.ts +1 -1
- package/dist/types/base/disposable.d.ts.map +1 -1
- package/dist/types/base/node.d.ts +1 -1
- package/dist/types/base/node.d.ts.map +1 -1
- package/dist/types/base/observable.d.ts +1 -3
- package/dist/types/base/observable.d.ts.map +1 -1
- package/dist/types/converters/solid.d.ts +1 -1
- package/dist/types/converters/solid.d.ts.map +1 -1
- package/dist/types/nodes/arrayNode.d.ts +24 -1
- package/dist/types/nodes/arrayNode.d.ts.map +1 -1
- package/dist/types/nodes/effectNode.d.ts +15 -1
- package/dist/types/nodes/effectNode.d.ts.map +1 -1
- package/dist/types/nodes/index.d.ts +0 -1
- package/dist/types/nodes/index.d.ts.map +1 -1
- package/dist/types/nodes/mapNode.d.ts +18 -1
- package/dist/types/nodes/mapNode.d.ts.map +1 -1
- package/dist/types/nodes/signalNode.d.ts +9 -1
- package/dist/types/nodes/signalNode.d.ts.map +1 -1
- package/dist/types/nodes/valueAsyncNode.d.ts +22 -1
- package/dist/types/nodes/valueAsyncNode.d.ts.map +1 -1
- package/dist/types/nodes/valueNode.d.ts +19 -1
- package/dist/types/nodes/valueNode.d.ts.map +1 -1
- package/dist/types/nodes/valueSyncNode.d.ts +22 -1
- package/dist/types/nodes/valueSyncNode.d.ts.map +1 -1
- package/dist/types/schedulers/asyncResolver.d.ts +18 -1
- package/dist/types/schedulers/asyncResolver.d.ts.map +1 -1
- package/dist/types/schedulers/asyncScheduler.d.ts +19 -1
- package/dist/types/schedulers/asyncScheduler.d.ts.map +1 -1
- package/dist/types/schedulers/pendingError.d.ts +8 -1
- package/dist/types/schedulers/pendingError.d.ts.map +1 -1
- package/dist/types/schedulers/scheduler.d.ts +9 -1
- package/dist/types/schedulers/scheduler.d.ts.map +1 -1
- package/dist/types/schedulers/syncResolver.d.ts +18 -1
- package/dist/types/schedulers/syncResolver.d.ts.map +1 -1
- package/dist/types/schedulers/syncScheduler.d.ts +18 -1
- package/dist/types/schedulers/syncScheduler.d.ts.map +1 -1
- package/docs/api/typedoc-sidebar.json +65 -1
- package/package.json +1 -1
- package/src/api/base/flowSubscribable.ts +1 -1
- package/src/api/nodes/async/flowConstantAsync.ts +1 -1
- package/src/api/nodes/async/flowDerivationAsync.ts +2 -2
- package/src/api/nodes/async/flowStateAsync.ts +1 -1
- package/src/api/nodes/async/flowWritableDerivationAsync.ts +1 -1
- package/src/api/nodes/collections/flowArray.ts +1 -1
- package/src/api/nodes/collections/flowMap.ts +1 -1
- package/src/api/nodes/flowEffect.ts +3 -3
- package/src/api/nodes/flowSignal.ts +2 -2
- package/src/api/nodes/flowValue.ts +2 -1
- package/src/api/nodes/sync/flowConstant.ts +1 -1
- package/src/api/nodes/sync/flowDerivation.ts +2 -2
- package/src/api/nodes/sync/flowState.ts +1 -1
- package/src/api/nodes/sync/flowWritableDerivation.ts +1 -1
- package/src/api/nodes/utils.ts +3 -1
- package/src/base/disposable.ts +1 -1
- package/src/base/node.ts +1 -1
- package/src/base/observable.ts +8 -3
- package/src/converters/solid.ts +2 -2
- package/src/nodes/arrayNode.ts +12 -4
- package/src/nodes/effectNode.ts +4 -5
- package/src/nodes/index.ts +0 -1
- package/src/nodes/mapNode.ts +2 -4
- package/src/nodes/signalNode.ts +2 -4
- package/src/nodes/valueAsyncNode.ts +2 -5
- package/src/nodes/valueNode.ts +10 -6
- package/src/nodes/valueSyncNode.ts +2 -5
- package/test/base/pendingError.test.ts +1 -1
- package/tsconfig.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowDerivationAsync.d.ts","sourceRoot":"","sources":["../../../../../src/api/nodes/async/flowDerivationAsync.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flowDerivationAsync.d.ts","sourceRoot":"","sources":["../../../../../src/api/nodes/async/flowDerivationAsync.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,wGAAwG;AACxG,MAAM,MAAM,uBAAuB,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAEpH;;;;;;;;;;GAUG;AACH,MAAM,WAAW,mBAAmB,CAAC,CAAC,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACxD;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,OAAO,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,mBAAmB,CAAC,CAAC,CAAC,CAE9F"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FlowDisposable } from '../base/flowDisposable';
|
|
2
|
+
import { FlowDataTracker, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener } from '../base/flowSubscribable';
|
|
2
3
|
/**
|
|
3
4
|
* Handle to a reactive effect that automatically tracks dependencies and re-executes when they change.
|
|
4
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowEffect.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowEffect.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flowEffect.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowEffect.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EACR,eAAe,EACf,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,0BAA0B,CAAC;AAElC;;;;;;;GAOG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc;CAAG;AAErD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,SAAS,CAAC,CAAC,EACvB,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU,CAEZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowSignal.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowSignal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flowSignal.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowSignal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE7D;;;;;;;;GAQG;AACH,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,IAAI,CAAC;CAAG;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,IAAI,UAAU,CAEnC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FlowObservable
|
|
1
|
+
import { FlowObservable } from '../base/flowObservable';
|
|
2
|
+
import { FlowTracker } from '../base/flowTracker';
|
|
2
3
|
/**
|
|
3
4
|
* Base interface for reactive values that can be read synchronously or asynchronously.
|
|
4
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowValue.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"flowValue.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/flowValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;GASG;AACH,MAAM,WAAW,SAAS,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACnD;;;;;;;;;OASG;IACH,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,CAAC,CAAC;IAE7B;;;;;;;;OAQG;IACH,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;CACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlowTracker } from '../../base';
|
|
1
|
+
import { FlowTracker } from '../../base/flowTracker';
|
|
2
2
|
import { FlowValue } from '../flowValue';
|
|
3
3
|
import { NotPromise } from '../utils';
|
|
4
4
|
/** Function that derives a value from dependencies and optionally the previous value. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flowDerivation.d.ts","sourceRoot":"","sources":["../../../../../src/api/nodes/sync/flowDerivation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"flowDerivation.d.ts","sourceRoot":"","sources":["../../../../../src/api/nodes/sync/flowDerivation.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,yFAAyF;AACzF,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC;AAElH;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IACnD;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACnB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAE/E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FlowValue } from './flowValue';
|
|
1
2
|
/**
|
|
2
3
|
* Type that excludes Promise values from a type union.
|
|
3
4
|
*
|
|
@@ -18,5 +19,5 @@ export type NotPromise<T> = T extends Promise<unknown> ? never : T;
|
|
|
18
19
|
*
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
|
-
export type FlowReadonly<T> = Omit<T
|
|
22
|
+
export type FlowReadonly<T> = Omit<FlowValue<T>, "set" | "refresh" | "trigger">;
|
|
22
23
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/api/nodes/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;;GAQG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,CAAC,OAAO,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC;AAEnE;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../../src/base/disposable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"disposable.d.ts","sourceRoot":"","sources":["../../../src/base/disposable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAE7C;;;GAGG;AACH,qBAAa,UAAW,YAAW,cAAc;IAC7C,SAAS,CAAC,SAAS,UAAS;IAE5B,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,IAAI,IAAI;CAIlB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlowEffect, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener, FlowTracker } from '
|
|
1
|
+
import { FlowEffect, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener, FlowTracker } from '../api';
|
|
2
2
|
import { Disposable } from './disposable';
|
|
3
3
|
import { IObservable, ObservableStatus } from './observable';
|
|
4
4
|
import { IObserver } from './observer';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/base/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/base/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACtH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,8BAAsB,IAAI,CAAC,CAAC,CAAE,SAAQ,UAAW,YAAW,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS;IACjF,OAAO,CAAC,aAAa,CAAmC;IACxD,OAAO,CAAC,WAAW,CAAwB;IAC3C,SAAS,CAAC,OAAO,EAAE,gBAAgB,CAAc;IAEjD,IAAI,MAAM,IAAI,gBAAgB,CAG7B;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAGlC;IAED,kBAAkB,CAAC,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAM1D,oBAAoB,CAAC,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,GAAG,IAAI;IAM5D,iBAAiB,IAAI,IAAI;IAQzB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAK7C,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAK/C,gBAAgB,IAAI,IAAI;IAOxB,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAKjC,OAAO,IAAI,IAAI;IAKf,MAAM,IAAI,IAAI;IAOL,OAAO,IAAI,IAAI;IAaxB,QAAQ,CAAC,OAAO,IAAI,IAAI;IAExB,QAAQ,CAAC,SAAS,CACd,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU;CAChB"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { FlowEffect, FlowTracker } from '
|
|
2
|
-
import { FlowObservable } from '../../api/base/flowObservable';
|
|
3
|
-
import { FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener } from '../../api/base/flowSubscribable';
|
|
1
|
+
import { FlowEffect, FlowObservable, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener, FlowTracker } from '../api';
|
|
4
2
|
import { Disposable } from './disposable';
|
|
5
3
|
import { IObserver } from './observer';
|
|
6
4
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../../src/base/observable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"observable.d.ts","sourceRoot":"","sources":["../../../src/base/observable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,WAAW,EACd,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,WAAW,CAAC,CAAC,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACrD,IAAI,MAAM,IAAI,gBAAgB,CAAC;IAC/B,IAAI,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE;IACrC,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAC9C,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI,CAAC;IAChD,gBAAgB,IAAI,IAAI,CAAC;IACzB,SAAS,CACL,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU,CAAC;CACjB;AAED;;GAEG;AACH,8BAAsB,UAAU,CAAC,CAAC,CAAE,SAAQ,UAAW,YAAW,WAAW,CAAC,CAAC,CAAC;IAC5E,OAAO,CAAC,WAAW,CAAwB;IAC3C,SAAS,CAAC,OAAO,EAAE,gBAAgB,CAAc;IAEjD,IAAI,MAAM,IAAI,gBAAgB,CAG7B;IAED,IAAI,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAGlC;IAED,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAK7C,mBAAmB,CAAC,SAAS,EAAE,SAAS,GAAG,IAAI;IAK/C,gBAAgB,IAAI,IAAI;IAOxB,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAKjC,OAAO,IAAI,IAAI;IAKN,OAAO,IAAI,IAAI;IAUxB,QAAQ,CAAC,SAAS,CACd,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU;CAChB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../../../src/converters/solid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,QAAQ,EAAwB,MAAM,UAAU,CAAC;AACjH,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAa,MAAM,
|
|
1
|
+
{"version":3,"file":"solid.d.ts","sourceRoot":"","sources":["../../../src/converters/solid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoD,KAAK,QAAQ,EAAwB,MAAM,UAAU,CAAC;AACjH,OAAO,EAAmB,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,UAAU,EAAa,MAAM,QAAQ,CAAC;AAsD5G;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC9D,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,2 +1,25 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlowArray, FlowArrayAction, FlowTracker, NotPromise, UpdateFunction } from '../api';
|
|
2
|
+
import { ValueSyncNode } from './valueSyncNode';
|
|
3
|
+
/**
|
|
4
|
+
* Internal implementation of reactive array with mutation tracking.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class ArrayNode<T> extends ValueSyncNode<T[]> implements FlowArray<T> {
|
|
8
|
+
$lastAction: ValueSyncNode<FlowArrayAction<T>>;
|
|
9
|
+
protected _value: T[];
|
|
10
|
+
constructor(value?: T[]);
|
|
11
|
+
get(tracker: FlowTracker): T[];
|
|
12
|
+
pick(): Promise<T[]>;
|
|
13
|
+
get length(): number;
|
|
14
|
+
set(items: NotPromise<T[]>): T[];
|
|
15
|
+
set(updater: UpdateFunction<T[]>): T[];
|
|
16
|
+
update(index: number, item: T): T | undefined;
|
|
17
|
+
push(item: T): void;
|
|
18
|
+
pop(): T | undefined;
|
|
19
|
+
unshift(item: T): void;
|
|
20
|
+
shift(): T | undefined;
|
|
21
|
+
splice(start: number, deleteCount: number, ...newItems: T[]): T[];
|
|
22
|
+
clear(): T[];
|
|
23
|
+
dispose(): void;
|
|
24
|
+
}
|
|
2
25
|
//# sourceMappingURL=arrayNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arrayNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/arrayNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"arrayNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/arrayNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAElG,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;GAGG;AACH,qBAAa,SAAS,CAAC,CAAC,CAAE,SAAQ,aAAa,CAAC,CAAC,EAAE,CAAE,YAAW,SAAS,CAAC,CAAC,CAAC;IACxE,WAAW,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,UAAkB,MAAM,EAAE,CAAC,EAAE,CAAC;gBAElB,KAAK,GAAE,CAAC,EAAO;IASlB,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,CAAC,EAAE;IAKxB,IAAI,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC;IAKnC,IAAI,MAAM,IAAI,MAAM,CAGnB;IAEQ,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;IAChC,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;IAsB/C,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,SAAS;IA0B7C,IAAI,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAWnB,GAAG,IAAI,CAAC,GAAG,SAAS;IAcpB,OAAO,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI;IAWtB,KAAK,IAAI,CAAC,GAAG,SAAS;IActB,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE;IAoBjE,KAAK,IAAI,CAAC,EAAE;IAiBH,OAAO,IAAI,IAAI;CAO3B"}
|
|
@@ -1,2 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlowDataTracker, FlowEffect, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener } from '../api';
|
|
2
|
+
import { Observer } from '../base';
|
|
3
|
+
/**
|
|
4
|
+
* Reactive effect that automatically re-executes when its dependencies change.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class EffectNode<T> extends Observer implements FlowEffect {
|
|
8
|
+
private _data;
|
|
9
|
+
private _onData;
|
|
10
|
+
private _onError?;
|
|
11
|
+
private _onPending?;
|
|
12
|
+
constructor(data: FlowDataTracker<T>, onData: FlowOnDataListener<T>, onError?: FlowOnErrorListener, onPending?: FlowOnPendingListener);
|
|
13
|
+
notify(): void;
|
|
14
|
+
execute(): void;
|
|
15
|
+
}
|
|
2
16
|
//# sourceMappingURL=effectNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effectNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/effectNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"effectNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/effectNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,eAAe,EACf,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAkB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnD;;;GAGG;AACH,qBAAa,UAAU,CAAC,CAAC,CAAE,SAAQ,QAAS,YAAW,UAAU;IAC7D,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,OAAO,CAAwB;IACvC,OAAO,CAAC,QAAQ,CAAC,CAAsB;IACvC,OAAO,CAAC,UAAU,CAAC,CAAwB;gBAGvC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,EACxB,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC7B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB;IAUrC,MAAM,IAAI,IAAI;IAKd,OAAO,IAAI,IAAI;CAkBlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlowMap, FlowMapAction, NotPromise, UpdateFunction } from '../api';
|
|
2
|
+
import { ValueSyncNode } from './valueSyncNode';
|
|
3
|
+
/**
|
|
4
|
+
* Internal implementation of reactive map with mutation tracking.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class MapNode<K, V> extends ValueSyncNode<Map<K, V>> implements FlowMap<K, V> {
|
|
8
|
+
$lastAction: ValueSyncNode<FlowMapAction<K, V>>;
|
|
9
|
+
protected _value: Map<K, V>;
|
|
10
|
+
constructor(value?: Map<K, V>);
|
|
11
|
+
add(key: K, value: V): void;
|
|
12
|
+
update(key: K, value: V): V;
|
|
13
|
+
delete(key: K): V;
|
|
14
|
+
set(map: NotPromise<Map<K, V>>): Map<K, V>;
|
|
15
|
+
set(updater: UpdateFunction<Map<K, V>>): Map<K, V>;
|
|
16
|
+
clear(): Map<K, V>;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
2
19
|
//# sourceMappingURL=mapNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/mapNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"mapNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/mapNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD;;;GAGG;AACH,qBAAa,OAAO,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAE,YAAW,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;IACzE,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACvD,UAAkB,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAExB,KAAK,GAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAa;IASxC,GAAG,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;IAiBpB,MAAM,CAAC,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC;IAuB3B,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC;IAkBR,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1C,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAoB3D,KAAK,IAAI,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;IAiBT,OAAO,IAAI,IAAI;CAO3B"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlowEffect, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener, FlowSignal } from '../api';
|
|
2
|
+
import { Observable } from '../base';
|
|
3
|
+
/**
|
|
4
|
+
* Manual trigger that notifies subscribers without carrying data.
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare class SignalNode extends Observable<void> implements FlowSignal {
|
|
8
|
+
subscribe(onTrigger: FlowOnDataListener<void>, onError?: FlowOnErrorListener, onPending?: FlowOnPendingListener): FlowEffect;
|
|
9
|
+
}
|
|
2
10
|
//# sourceMappingURL=signalNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signalNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/signalNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"signalNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/signalNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACrH,OAAO,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAC;AAGpD;;;GAGG;AACH,qBAAa,UAAW,SAAQ,UAAU,CAAC,IAAI,CAAE,YAAW,UAAU;IAClE,SAAS,CACL,SAAS,EAAE,kBAAkB,CAAC,IAAI,CAAC,EACnC,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU;CAKhB"}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { DerivationFunctionAsync, InitFunctionAsync, NotPromise, UpdateFunctionAsync } from '../api';
|
|
2
|
+
import { AsyncScheduler } from '../schedulers';
|
|
3
|
+
import { ValueNode } from './valueNode';
|
|
4
|
+
/**
|
|
5
|
+
* Function that computes a value asynchronously (either initialization or derivation).
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export type ComputeFunctionAsync<T> = InitFunctionAsync<T> | DerivationFunctionAsync<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Asynchronous reactive value that resolves promises and propagates results when settled.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class ValueAsyncNode<T extends NotPromise<unknown>> extends ValueNode<T> {
|
|
14
|
+
protected _scheduler: AsyncScheduler<T>;
|
|
15
|
+
private _compute;
|
|
16
|
+
constructor(promiseOrCompute: Promise<T> | ComputeFunctionAsync<T>);
|
|
17
|
+
private _onResolve;
|
|
18
|
+
private _onReject;
|
|
19
|
+
set(promise: Promise<T>): void;
|
|
20
|
+
set(updater: UpdateFunctionAsync<T>): void;
|
|
21
|
+
refresh(): void;
|
|
22
|
+
}
|
|
2
23
|
//# sourceMappingURL=valueAsyncNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueAsyncNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueAsyncNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"valueAsyncNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueAsyncNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AAC1G,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC,GAAG,uBAAuB,CAAC,CAAC,CAAC,CAAC;AACxF;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAC3E,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;IACxC,OAAO,CAAC,QAAQ,CAAmB;gBAEvB,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAiBlE,OAAO,CAAC,UAAU;IAOlB,OAAO,CAAC,SAAS;IAMjB,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAC9B,GAAG,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,IAAI;IAgC1C,OAAO,IAAI,IAAI;CAIlB"}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { FlowEffect, FlowOnDataListener, FlowOnErrorListener, FlowOnPendingListener, FlowTracker, NotPromise } from '../api';
|
|
2
|
+
import { Node } from '../base';
|
|
3
|
+
import { Scheduler } from '../schedulers';
|
|
4
|
+
/**
|
|
5
|
+
* Base class for reactive values that compute, cache, and propagate changes through the dependency graph.
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare abstract class ValueNode<T> extends Node<T> {
|
|
9
|
+
protected abstract _scheduler: Scheduler;
|
|
10
|
+
protected _value?: NotPromise<T>;
|
|
11
|
+
protected _error?: unknown;
|
|
12
|
+
watch(tracker: FlowTracker): void;
|
|
13
|
+
notify(): void;
|
|
14
|
+
dispose(): void;
|
|
15
|
+
get(tracker: FlowTracker): T;
|
|
16
|
+
pick(): Promise<T>;
|
|
17
|
+
execute(): void;
|
|
18
|
+
subscribe(onValue: FlowOnDataListener<T>, onError?: FlowOnErrorListener, onPending?: FlowOnPendingListener): FlowEffect;
|
|
19
|
+
}
|
|
2
20
|
//# sourceMappingURL=valueNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"valueNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,UAAU,EACV,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,WAAW,EACX,UAAU,EACb,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAkB,IAAI,EAAwC,MAAM,SAAS,CAAC;AACrF,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAG7D;;;GAGG;AACH,8BAAsB,SAAS,CAAC,CAAC,CAAE,SAAQ,IAAI,CAAC,CAAC,CAAC;IAC9C,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,SAAS,CAAC;IACzC,SAAS,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACjC,SAAS,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAElB,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IA6BjC,MAAM,IAAI,IAAI;IAUd,OAAO,IAAI,IAAI;IAKxB,GAAG,CAAC,OAAO,EAAE,WAAW,GAAG,CAAC;IA8BtB,IAAI,IAAI,OAAO,CAAC,CAAC,CAAC;IAkCxB,OAAO,IAAI,IAAI;IASf,SAAS,CACL,OAAO,EAAE,kBAAkB,CAAC,CAAC,CAAC,EAC9B,OAAO,CAAC,EAAE,mBAAmB,EAC7B,SAAS,CAAC,EAAE,qBAAqB,GAClC,UAAU;CAKhB"}
|
|
@@ -1,2 +1,23 @@
|
|
|
1
|
-
|
|
1
|
+
import { DerivationFunction, InitFunction, NotPromise, UpdateFunction } from '../api';
|
|
2
|
+
import { SyncScheduler } from '../schedulers';
|
|
3
|
+
import { ValueNode } from './valueNode';
|
|
4
|
+
/**
|
|
5
|
+
* Function that computes a value (either initialization or derivation).
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export type ComputeFunction<T> = InitFunction<T> | DerivationFunction<T>;
|
|
9
|
+
/**
|
|
10
|
+
* Synchronous reactive value that computes immediately without async scheduling.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
export declare class ValueSyncNode<T extends NotPromise<unknown>> extends ValueNode<T> {
|
|
14
|
+
protected _scheduler: SyncScheduler<T>;
|
|
15
|
+
private _compute;
|
|
16
|
+
constructor(valueOrCompute: NotPromise<T> | ComputeFunction<T>);
|
|
17
|
+
private _onResolve;
|
|
18
|
+
private _onReject;
|
|
19
|
+
set(value: NotPromise<T>): void;
|
|
20
|
+
set(updater: UpdateFunction<T>): void;
|
|
21
|
+
refresh(): void;
|
|
22
|
+
}
|
|
2
23
|
//# sourceMappingURL=valueSyncNode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valueSyncNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueSyncNode.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"valueSyncNode.d.ts","sourceRoot":"","sources":["../../../src/nodes/valueSyncNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAEzE;;;GAGG;AACH,qBAAa,aAAa,CAAC,CAAC,SAAS,UAAU,CAAC,OAAO,CAAC,CAAE,SAAQ,SAAS,CAAC,CAAC,CAAC;IAC1E,SAAS,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IACvC,OAAO,CAAC,QAAQ,CAAU;gBAEd,cAAc,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;IAuB9D,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,SAAS;IAKjB,GAAG,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI;IAC/B,GAAG,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;IAiDrC,OAAO,IAAI,IAAI;CAsBlB"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Manages asynchronous computation lifecycle with iteration tracking to prevent race conditions.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class AsyncResolver<T> {
|
|
6
|
+
private readonly _compute;
|
|
7
|
+
private readonly _computed;
|
|
8
|
+
private _iteration;
|
|
9
|
+
private _aborted;
|
|
10
|
+
private _finished;
|
|
11
|
+
constructor(compute: () => Promise<T>);
|
|
12
|
+
get computed(): Promise<T>;
|
|
13
|
+
get aborted(): boolean;
|
|
14
|
+
get finished(): boolean;
|
|
15
|
+
compute(): void;
|
|
16
|
+
overwrite(promise: Promise<T>): void;
|
|
17
|
+
abort(): void;
|
|
18
|
+
}
|
|
2
19
|
//# sourceMappingURL=asyncResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncResolver.d.ts","sourceRoot":"","sources":["../../../src/schedulers/asyncResolver.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"asyncResolver.d.ts","sourceRoot":"","sources":["../../../src/schedulers/asyncResolver.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,aAAa,CAAC,CAAC;IACxB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA8B;IACxD,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAYrC,IAAI,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,CAEzB;IAED,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,IAAI,IAAI;IAmBf,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAiBpC,KAAK,IAAI,IAAI;CAIhB"}
|
|
@@ -1,2 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
import { Scheduler } from './scheduler';
|
|
2
|
+
/**
|
|
3
|
+
* Scheduler that manages asynchronous computation lifecycle with resolver instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class AsyncScheduler<T> implements Scheduler {
|
|
7
|
+
private readonly _compute;
|
|
8
|
+
private _resolver;
|
|
9
|
+
private _onResolve;
|
|
10
|
+
private _onReject;
|
|
11
|
+
private _settled;
|
|
12
|
+
private _disposed;
|
|
13
|
+
constructor(compute: () => Promise<T>, onResolve: (value: T) => void, onReject: (error: unknown) => void);
|
|
14
|
+
get settled(): Promise<void>;
|
|
15
|
+
get disposed(): boolean;
|
|
16
|
+
overwrite(promise: Promise<T>): void;
|
|
17
|
+
compute(): void;
|
|
18
|
+
dispose(): void;
|
|
19
|
+
}
|
|
2
20
|
//# sourceMappingURL=asyncScheduler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asyncScheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/asyncScheduler.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"asyncScheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/asyncScheduler.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;GAGG;AACH,qBAAa,cAAc,CAAC,CAAC,CAAE,YAAW,SAAS;IAC/C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,SAAS,CAAmB;IACpC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAWxG,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAG3B;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAapC,OAAO,IAAI,IAAI;IAaf,OAAO,IAAI,IAAI;CAIlB"}
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Error thrown when an async computation is pending, encapsulating its promise for cascading dependencies.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class PendingError extends Error {
|
|
6
|
+
readonly pendingPromise: Promise<unknown>;
|
|
7
|
+
constructor(promise: Promise<unknown>);
|
|
8
|
+
}
|
|
2
9
|
//# sourceMappingURL=pendingError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendingError.d.ts","sourceRoot":"","sources":["../../../src/schedulers/pendingError.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"pendingError.d.ts","sourceRoot":"","sources":["../../../src/schedulers/pendingError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,qBAAa,YAAa,SAAQ,KAAK;IACnC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;gBAE9B,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC;CAKxC"}
|
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Contract for schedulers that coordinate reactive computations and their lifecycle.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export interface Scheduler {
|
|
6
|
+
compute(): void;
|
|
7
|
+
dispose(): void;
|
|
8
|
+
settled: Promise<void>;
|
|
9
|
+
}
|
|
2
10
|
//# sourceMappingURL=scheduler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/scheduler.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"scheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/scheduler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,SAAS;IACtB,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,IAAI,IAAI,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Manages synchronous computation lifecycle with iteration tracking to prevent race conditions.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare class SyncResolver<T> {
|
|
6
|
+
private readonly _compute;
|
|
7
|
+
private _iteration;
|
|
8
|
+
private _aborted;
|
|
9
|
+
private _finished;
|
|
10
|
+
private _onValue;
|
|
11
|
+
private _onError;
|
|
12
|
+
constructor(compute: () => T, onValue: (value: T) => void, onError: (error: unknown) => void);
|
|
13
|
+
get aborted(): boolean;
|
|
14
|
+
get finished(): boolean;
|
|
15
|
+
compute(): void;
|
|
16
|
+
overwrite(value: T): void;
|
|
17
|
+
abort(): void;
|
|
18
|
+
}
|
|
2
19
|
//# sourceMappingURL=syncResolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncResolver.d.ts","sourceRoot":"","sources":["../../../src/schedulers/syncResolver.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"syncResolver.d.ts","sourceRoot":"","sources":["../../../src/schedulers/syncResolver.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,qBAAa,YAAY,CAAC,CAAC;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,UAAU,CAAK;IACvB,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,SAAS,CAAS;IAE1B,OAAO,CAAC,QAAQ,CAAqB;IACrC,OAAO,CAAC,QAAQ,CAA2B;gBAE/B,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAM5F,IAAI,OAAO,IAAI,OAAO,CAErB;IAED,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,OAAO,IAAI,IAAI;IAsBf,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IAazB,KAAK,IAAI,IAAI;CAIhB"}
|
|
@@ -1,2 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { Scheduler } from './scheduler';
|
|
2
|
+
/**
|
|
3
|
+
* Scheduler that manages synchronous computation lifecycle with resolver instances.
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare class SyncScheduler<T> implements Scheduler {
|
|
7
|
+
private readonly _compute;
|
|
8
|
+
private _resolver;
|
|
9
|
+
private _onResolve;
|
|
10
|
+
private _onReject;
|
|
11
|
+
private _settled;
|
|
12
|
+
private _disposed;
|
|
13
|
+
constructor(compute: () => T, onResolve: (value: T) => void, onReject: (error: unknown) => void);
|
|
14
|
+
get settled(): Promise<void>;
|
|
15
|
+
overwrite(value: T): void;
|
|
16
|
+
compute(): void;
|
|
17
|
+
dispose(): void;
|
|
18
|
+
}
|
|
2
19
|
//# sourceMappingURL=syncScheduler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syncScheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/syncScheduler.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"syncScheduler.d.ts","sourceRoot":"","sources":["../../../src/schedulers/syncScheduler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C;;;GAGG;AACH,qBAAa,aAAa,CAAC,CAAC,CAAE,YAAW,SAAS;IAC9C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAU;IACnC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,UAAU,CAAqB;IACvC,OAAO,CAAC,SAAS,CAA2B;IAC5C,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,SAAS,CAAS;gBAEd,OAAO,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI;IAa/F,IAAI,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAE3B;IAED,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;IASzB,OAAO,IAAI,IAAI;IASf,OAAO,IAAI,IAAI;CAIlB"}
|
|
@@ -1 +1,65 @@
|
|
|
1
|
-
[
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"text": "Interfaces",
|
|
4
|
+
"collapsed": true,
|
|
5
|
+
"items": [
|
|
6
|
+
{ "text": "FlowArray", "link": "/api/interfaces/FlowArray.md" },
|
|
7
|
+
{ "text": "FlowConstant", "link": "/api/interfaces/FlowConstant.md" },
|
|
8
|
+
{ "text": "FlowConstantAsync", "link": "/api/interfaces/FlowConstantAsync.md" },
|
|
9
|
+
{ "text": "FlowDerivation", "link": "/api/interfaces/FlowDerivation.md" },
|
|
10
|
+
{ "text": "FlowDerivationAsync", "link": "/api/interfaces/FlowDerivationAsync.md" },
|
|
11
|
+
{ "text": "FlowDisposable", "link": "/api/interfaces/FlowDisposable.md" },
|
|
12
|
+
{ "text": "FlowEffect", "link": "/api/interfaces/FlowEffect.md" },
|
|
13
|
+
{ "text": "FlowMap", "link": "/api/interfaces/FlowMap.md" },
|
|
14
|
+
{ "text": "FlowObservable", "link": "/api/interfaces/FlowObservable.md" },
|
|
15
|
+
{ "text": "FlowSignal", "link": "/api/interfaces/FlowSignal.md" },
|
|
16
|
+
{ "text": "FlowState", "link": "/api/interfaces/FlowState.md" },
|
|
17
|
+
{ "text": "FlowStateAsync", "link": "/api/interfaces/FlowStateAsync.md" },
|
|
18
|
+
{ "text": "FlowSubscribable", "link": "/api/interfaces/FlowSubscribable.md" },
|
|
19
|
+
{ "text": "FlowTracker", "link": "/api/interfaces/FlowTracker.md" },
|
|
20
|
+
{ "text": "FlowValue", "link": "/api/interfaces/FlowValue.md" },
|
|
21
|
+
{ "text": "FlowWritableDerivation", "link": "/api/interfaces/FlowWritableDerivation.md" },
|
|
22
|
+
{ "text": "FlowWritableDerivationAsync", "link": "/api/interfaces/FlowWritableDerivationAsync.md" }
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"text": "Type Aliases",
|
|
27
|
+
"collapsed": true,
|
|
28
|
+
"items": [
|
|
29
|
+
{ "text": "DerivationFunction", "link": "/api/type-aliases/DerivationFunction.md" },
|
|
30
|
+
{ "text": "DerivationFunctionAsync", "link": "/api/type-aliases/DerivationFunctionAsync.md" },
|
|
31
|
+
{ "text": "FlowArrayAction", "link": "/api/type-aliases/FlowArrayAction.md" },
|
|
32
|
+
{ "text": "FlowDataTracker", "link": "/api/type-aliases/FlowDataTracker.md" },
|
|
33
|
+
{ "text": "FlowMapAction", "link": "/api/type-aliases/FlowMapAction.md" },
|
|
34
|
+
{ "text": "FlowOnDataListener", "link": "/api/type-aliases/FlowOnDataListener.md" },
|
|
35
|
+
{ "text": "FlowOnErrorListener", "link": "/api/type-aliases/FlowOnErrorListener.md" },
|
|
36
|
+
{ "text": "FlowOnPendingListener", "link": "/api/type-aliases/FlowOnPendingListener.md" },
|
|
37
|
+
{ "text": "FlowReadonly", "link": "/api/type-aliases/FlowReadonly.md" },
|
|
38
|
+
{ "text": "InitFunction", "link": "/api/type-aliases/InitFunction.md" },
|
|
39
|
+
{ "text": "InitFunctionAsync", "link": "/api/type-aliases/InitFunctionAsync.md" },
|
|
40
|
+
{ "text": "NotPromise", "link": "/api/type-aliases/NotPromise.md" },
|
|
41
|
+
{ "text": "UpdateFunction", "link": "/api/type-aliases/UpdateFunction.md" },
|
|
42
|
+
{ "text": "UpdateFunctionAsync", "link": "/api/type-aliases/UpdateFunctionAsync.md" }
|
|
43
|
+
]
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"text": "Functions",
|
|
47
|
+
"collapsed": true,
|
|
48
|
+
"items": [
|
|
49
|
+
{ "text": "array", "link": "/api/functions/array.md" },
|
|
50
|
+
{ "text": "constant", "link": "/api/functions/constant.md" },
|
|
51
|
+
{ "text": "constantAsync", "link": "/api/functions/constantAsync.md" },
|
|
52
|
+
{ "text": "derivation", "link": "/api/functions/derivation.md" },
|
|
53
|
+
{ "text": "derivationAsync", "link": "/api/functions/derivationAsync.md" },
|
|
54
|
+
{ "text": "from", "link": "/api/functions/from.md" },
|
|
55
|
+
{ "text": "isDisposable", "link": "/api/functions/isDisposable.md" },
|
|
56
|
+
{ "text": "map", "link": "/api/functions/map.md" },
|
|
57
|
+
{ "text": "signal", "link": "/api/functions/signal.md" },
|
|
58
|
+
{ "text": "state", "link": "/api/functions/state.md" },
|
|
59
|
+
{ "text": "stateAsync", "link": "/api/functions/stateAsync.md" },
|
|
60
|
+
{ "text": "subscribe", "link": "/api/functions/subscribe.md" },
|
|
61
|
+
{ "text": "writableDerivation", "link": "/api/functions/writableDerivation.md" },
|
|
62
|
+
{ "text": "writableDerivationAsync", "link": "/api/functions/writableDerivationAsync.md" }
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
package/package.json
CHANGED