@raphy-js/raph 1.0.1-dev.26 → 1.0.1-dev.54
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/README.md +100 -0
- package/dist/api/Raph.d.ts +15 -15
- package/dist/api/RaphFacadeSession.d.ts +4 -4
- package/dist/api/RaphReactivityInstance.d.ts +4 -4
- package/dist/api/types.d.ts +11 -11
- package/dist/compact.cjs +1 -0
- package/dist/compact.js +4 -0
- package/dist/debug/reactivity/engine-core.cjs +1 -0
- package/dist/debug/reactivity/engine-core.js +1760 -0
- package/dist/debug/reactivity/engine.cjs +1 -1
- package/dist/debug/reactivity/engine.js +25 -1689
- package/dist/debug/reactivity/reactive-object.cjs +1 -1
- package/dist/debug/reactivity/reactive-object.js +604 -167
- package/dist/debug/runtime/RaphCompactExecutionRuntime.cjs +1 -0
- package/dist/debug/runtime/RaphCompactExecutionRuntime.js +9 -0
- package/dist/debug/runtime/RaphExecutionRuntime.cjs +1 -0
- package/dist/debug/runtime/RaphExecutionRuntime.js +11 -0
- package/dist/debug/runtime/RaphRuntime.cjs +1 -1
- package/dist/debug/runtime/RaphRuntime.js +115 -1176
- package/dist/debug/runtime/RaphRuntimeBase.cjs +1 -0
- package/dist/debug/runtime/RaphRuntimeBase.js +941 -0
- package/dist/debug/runtime/diagnostics/RaphDebug.cjs +1 -1
- package/dist/debug/runtime/diagnostics/RaphDebug.js +72 -66
- package/dist/debug/runtime/ownership/RaphNode.cjs +1 -1
- package/dist/debug/runtime/ownership/RaphNode.js +11 -0
- package/dist/debug/runtime/ownership/RaphScope.cjs +1 -1
- package/dist/debug/runtime/ownership/RaphScope.js +12 -12
- package/dist/debug/runtime/phases/RaphPhasePipeline.cjs +1 -1
- package/dist/debug/runtime/phases/RaphPhasePipeline.js +361 -242
- package/dist/debug/runtime/phases/RaphPhaseTaskRecord.cjs +1 -1
- package/dist/debug/runtime/phases/RaphPhaseTaskRecord.js +23 -22
- package/dist/debug/runtime/reactivity/RaphSelector.cjs +1 -1
- package/dist/debug/runtime/reactivity/RaphSelector.js +111 -90
- package/dist/debug/runtime/reactivity/RuntimeObjectSupport.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeObjectSupport.js +11 -0
- package/dist/debug/runtime/reactivity/RuntimeReactivity.cjs +1 -1
- package/dist/debug/runtime/reactivity/RuntimeReactivity.js +118 -103
- package/dist/debug/runtime/reactivity/RuntimeSelectorSupport.cjs +1 -0
- package/dist/debug/runtime/reactivity/RuntimeSelectorSupport.js +12 -0
- package/dist/entrypoints/compact.d.ts +2 -0
- package/dist/entrypoints/execution.d.ts +2 -0
- package/dist/entrypoints/machine-testing.d.ts +2 -2
- package/dist/entrypoints/machine.d.ts +5 -5
- package/dist/entrypoints/observable.d.ts +4 -0
- package/dist/entrypoints/path.d.ts +14 -14
- package/dist/entrypoints/reactivity.d.ts +1 -1
- package/dist/entrypoints/runtime.d.ts +19 -18
- package/dist/execution.cjs +1 -0
- package/dist/execution.js +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +23 -21
- package/dist/machine/compiler.d.ts +1 -1
- package/dist/machine/core.d.ts +2 -2
- package/dist/machine/persistence.d.ts +1 -1
- package/dist/machine/runtime.d.ts +3 -3
- package/dist/machine/testing.d.ts +1 -1
- package/dist/machine/types.d.ts +3 -3
- package/dist/main.d.ts +19 -19
- package/dist/observable/buffer.d.ts +6 -0
- package/dist/observable/class-admin.d.ts +63 -0
- package/dist/observable/class-plan.d.ts +46 -0
- package/dist/observable/classes.d.ts +10 -0
- package/dist/observable/context.d.ts +73 -0
- package/dist/observable/native.d.ts +2 -0
- package/dist/observable/observable.d.ts +13 -0
- package/dist/observable/types.d.ts +60 -0
- package/dist/observable.cjs +1 -0
- package/dist/observable.js +1187 -0
- package/dist/path/DataPath.d.ts +2 -2
- package/dist/path/PathRouter.d.ts +1 -1
- package/dist/path/RaphKernel.d.ts +6 -6
- package/dist/path/data-path.types.d.ts +1 -1
- package/dist/path/data-path.utils.d.ts +2 -2
- package/dist/path/derived/DerivedRegistry.d.ts +3 -3
- package/dist/path/derived/RaphDerivedHandle.d.ts +3 -3
- package/dist/path/derived/derived-collection.types.d.ts +1 -1
- package/dist/path/derived/derived-collection.utils.d.ts +3 -3
- package/dist/path/derived/derived-strategy.utils.d.ts +1 -1
- package/dist/path/meta/MetaController.d.ts +5 -5
- package/dist/path/meta/RaphMeta.d.ts +3 -3
- package/dist/path/meta/RaphMetaStore.d.ts +1 -1
- package/dist/path/meta/meta.types.d.ts +2 -2
- package/dist/path/path.types.d.ts +2 -2
- package/dist/path/pathSegmentKey.d.ts +1 -1
- package/dist/path/storage/AdapterPathStore.d.ts +2 -2
- package/dist/path/storage/DefaultDataAdapter.d.ts +2 -2
- package/dist/path/storage/PathEventHub.d.ts +1 -1
- package/dist/path/storage/PathStore.d.ts +2 -2
- package/dist/path/storage/data-adapter.types.d.ts +1 -1
- package/dist/raph.cjs +1 -1
- package/dist/raph.js +23 -21
- package/dist/reactivity/engine-core.d.ts +600 -0
- package/dist/reactivity/engine.d.ts +6 -550
- package/dist/reactivity/reactive-object.d.ts +143 -2
- package/dist/reactivity/scope.d.ts +7 -6
- package/dist/reactivity/types.d.ts +9 -12
- package/dist/reactivity/watch.d.ts +1 -1
- package/dist/runtime/RaphCompactExecutionRuntime.d.ts +7 -0
- package/dist/runtime/RaphExecutionRuntime.d.ts +6 -0
- package/dist/runtime/RaphRuntime.d.ts +19 -403
- package/dist/runtime/RaphRuntimeBase.d.ts +194 -0
- package/dist/runtime/diagnostics/RaphDebug.d.ts +8 -5
- package/dist/runtime/errors.d.ts +1 -1
- package/dist/runtime/ownership/RaphEffectScope.d.ts +13 -12
- package/dist/runtime/ownership/RaphNode.d.ts +28 -21
- package/dist/runtime/ownership/RaphScope.d.ts +32 -19
- package/dist/runtime/ownership/parent-graph.types.d.ts +1 -1
- package/dist/runtime/ownership/parentGraph.d.ts +2 -2
- package/dist/runtime/phases/RaphFrameLoop.d.ts +1 -1
- package/dist/runtime/phases/RaphPhasePipeline.d.ts +80 -29
- package/dist/runtime/phases/RaphPhaseTaskRecord.d.ts +21 -21
- package/dist/runtime/phases/RaphPhaseWatch.d.ts +3 -3
- package/dist/runtime/phases/orderPhaseTasks.d.ts +4 -2
- package/dist/runtime/phases/phase.types.d.ts +36 -35
- package/dist/runtime/reactivity/PathHandle.d.ts +5 -5
- package/dist/runtime/reactivity/RaphMetaSource.d.ts +7 -7
- package/dist/runtime/reactivity/RaphSelector.d.ts +27 -6
- package/dist/runtime/reactivity/RaphWorkGraph.d.ts +40 -39
- package/dist/runtime/reactivity/RuntimeObjectSupport.d.ts +9 -0
- package/dist/runtime/reactivity/RuntimeReactivity.d.ts +27 -19
- package/dist/runtime/reactivity/RuntimeSelectorSupport.d.ts +10 -0
- package/dist/runtime/reactivity/RuntimeWatch.d.ts +1 -1
- package/dist/runtime/reactivity/disposal-sweep.utils.d.ts +1 -1
- package/dist/runtime/reactivity/runtime-reactivity.types.d.ts +3 -3
- package/dist/runtime.cjs +1 -1
- package/dist/runtime.js +13 -11
- package/package.json +22 -62
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { OwnedSourceEntry } from '../../reactivity/scope';
|
|
2
|
-
import { EffectCallback, OwnedSourceHooks, ReactiveNode, ReactivityOptions, ReadonlySignal, Signal } from '../../reactivity/types';
|
|
3
|
-
import { RaphScope } from '../ownership/RaphScope';
|
|
4
|
-
import { RaphSelectorOptions, RuntimeSelector } from './RaphSelector';
|
|
5
|
-
import { RaphProducerDescription, RaphProducerKind, RaphProducer } from './RaphWorkGraph';
|
|
6
|
-
import { ReleasedGraphShapes, RuntimeSignalLifecycle, RuntimeSignalWriteTap } from './runtime-reactivity.types';
|
|
7
|
-
import {
|
|
1
|
+
import { OwnedSourceEntry } from '../../reactivity/scope.js';
|
|
2
|
+
import { EffectCallback, OwnedSourceHooks, ReactiveNode, ReactivityOptions, ReadonlySignal, Signal } from '../../reactivity/types.js';
|
|
3
|
+
import { RaphScope } from '../ownership/RaphScope.js';
|
|
4
|
+
import { RaphSelectorOptions, RuntimeSelector } from './RaphSelector.js';
|
|
5
|
+
import { RaphProducerDescription, RaphProducerKind, RaphProducer } from './RaphWorkGraph.js';
|
|
6
|
+
import { ReleasedGraphShapes, RuntimeSignalLifecycle, RuntimeSignalWriteTap } from './runtime-reactivity.types.js';
|
|
7
|
+
import { RuntimeSelectorSupport } from './RuntimeSelectorSupport.js';
|
|
8
|
+
import { ReactivityEngine } from '../../reactivity/engine-core.js';
|
|
8
9
|
/**
|
|
9
10
|
* Компактное описание Runtime signal, которое возвращает его toJSON().
|
|
10
11
|
*
|
|
@@ -47,7 +48,7 @@ export declare class RuntimeSignal<T> extends RaphProducer implements Signal<T>,
|
|
|
47
48
|
* Создаёт signal своим собственным handle. Регистрацию у владельца
|
|
48
49
|
* выполняет вызывающий код.
|
|
49
50
|
*/
|
|
50
|
-
constructor(owner: RaphScope
|
|
51
|
+
constructor(owner: RaphScope<any>, kind: RaphProducerKind, includeRuntime: boolean, value: T);
|
|
51
52
|
/**
|
|
52
53
|
* Identity producer для задач implicit effects: сам signal.
|
|
53
54
|
* @internal
|
|
@@ -58,7 +59,7 @@ export declare class RuntimeSignal<T> extends RaphProducer implements Signal<T>,
|
|
|
58
59
|
* потребителем не бывает; getter сохраняет полный контракт source hooks.
|
|
59
60
|
* @internal
|
|
60
61
|
*/
|
|
61
|
-
get dependencyOwner(): RaphScope
|
|
62
|
+
get dependencyOwner(): RaphScope<any>;
|
|
62
63
|
/**
|
|
63
64
|
* Возвращает компактное описание signal для JSON.stringify, логов и diff
|
|
64
65
|
* неуспешной проверки. К описанию producer добавлен номер signal среди
|
|
@@ -155,9 +156,10 @@ export declare class RuntimeSignal<T> extends RaphProducer implements Signal<T>,
|
|
|
155
156
|
/**
|
|
156
157
|
* Внутренний policy adapter, наследующий реактивные алгоритмы без дублирования.
|
|
157
158
|
*/
|
|
158
|
-
export declare class RuntimeReactivity extends
|
|
159
|
+
export declare class RuntimeReactivity extends ReactivityEngine {
|
|
159
160
|
/** @internal */
|
|
160
161
|
readonly _lifecycle: RuntimeSignalLifecycle;
|
|
162
|
+
private readonly _selectors?;
|
|
161
163
|
/**
|
|
162
164
|
* Удерживает формы, которые записи графа получают только при освобождении.
|
|
163
165
|
* Создаётся первым графом Runtime в isolate и дальше не заменяется.
|
|
@@ -192,11 +194,17 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
192
194
|
*/
|
|
193
195
|
constructor(
|
|
194
196
|
/** @internal */
|
|
195
|
-
_lifecycle: RuntimeSignalLifecycle, options?: Pick<ReactivityOptions, 'adaptiveDependencyIndex'
|
|
197
|
+
_lifecycle: RuntimeSignalLifecycle, options?: Pick<ReactivityOptions, 'adaptiveDependencyIndex'>, _selectors?: RuntimeSelectorSupport | undefined);
|
|
196
198
|
/**
|
|
197
199
|
* Выполняет untracked-операцию, сохраняя runtime owner context.
|
|
198
200
|
*/
|
|
199
201
|
untrackedWithOwner<T>(operation: () => T): T;
|
|
202
|
+
/**
|
|
203
|
+
* `_probeReads` вне Runtime owner context: проба не наследует контекст
|
|
204
|
+
* потребителя, внутри которого её вызвали.
|
|
205
|
+
* @internal
|
|
206
|
+
*/
|
|
207
|
+
_probeReadsWithOwner(operation: () => void): boolean;
|
|
200
208
|
/**
|
|
201
209
|
* Вызывает операцию с её аргументами вне Runtime owner context и вне graph
|
|
202
210
|
* consumer: форма `untrackedWithOwner(() => operation(...args))` без closure.
|
|
@@ -205,7 +213,7 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
205
213
|
*
|
|
206
214
|
* @internal
|
|
207
215
|
*/
|
|
208
|
-
_applyUntrackedWithOwner<Args extends unknown[], Result>(operation: (...args: Args) => Result, args: Args): Result;
|
|
216
|
+
_applyUntrackedWithOwner<Args extends unknown[], Result>(operation: (...args: Args) => Result, args: ArrayLike<Args[number]>, receiver?: unknown): Result;
|
|
209
217
|
/**
|
|
210
218
|
* Выполняет одну открытую доставку phase effect вне Runtime owner context и
|
|
211
219
|
* вне graph consumer: форма untrackedWithOwner() без closure для записи,
|
|
@@ -219,7 +227,7 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
219
227
|
*/
|
|
220
228
|
getActiveOwner(): object | undefined;
|
|
221
229
|
/** Returns the Runtime resource owner whose implicit dependencies are being collected. */
|
|
222
|
-
getActiveConsumerOwner(): RaphScope | undefined;
|
|
230
|
+
getActiveConsumerOwner(): RaphScope<any> | undefined;
|
|
223
231
|
/**
|
|
224
232
|
* Сообщает, должен ли untracked work очищать graph consumer или Runtime owner context.
|
|
225
233
|
*/
|
|
@@ -227,7 +235,7 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
227
235
|
/**
|
|
228
236
|
* Выполняет операцию с указанным active owner.
|
|
229
237
|
*/
|
|
230
|
-
runWithOwner<T>(lifecycle: RuntimeSignalLifecycle | undefined, consumerOwner: RaphScope | undefined, operation: () => T): T;
|
|
238
|
+
runWithOwner<T>(lifecycle: RuntimeSignalLifecycle | undefined, consumerOwner: RaphScope<any> | undefined, operation: () => T): T;
|
|
231
239
|
/**
|
|
232
240
|
* Ищет среди текущих потребителей Runtime signals владельца `sourceOwner`
|
|
233
241
|
* первого, чьего владельца принимает accept, и возвращает этого владельца.
|
|
@@ -238,7 +246,7 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
238
246
|
*
|
|
239
247
|
* @internal
|
|
240
248
|
*/
|
|
241
|
-
_findSignalConsumerOwner<Context>(sourceOwner: RaphScope
|
|
249
|
+
_findSignalConsumerOwner<Context>(sourceOwner: RaphScope<any>, accept: (consumerOwner: object, context: Context) => boolean, context: Context): object | undefined;
|
|
242
250
|
/**
|
|
243
251
|
* Проверяет отслеживаемое чтение источника владельца `sourceOwner` теми же
|
|
244
252
|
* правилами, что и чтение его Runtime signal: Runtime жив, активный
|
|
@@ -247,7 +255,7 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
247
255
|
*
|
|
248
256
|
* @internal
|
|
249
257
|
*/
|
|
250
|
-
_assertTrackedRead(sourceOwner: RaphScope): void;
|
|
258
|
+
_assertTrackedRead(sourceOwner: RaphScope<any>): void;
|
|
251
259
|
/**
|
|
252
260
|
* Сообщает, что у записи ровно один потребитель. Внутри cleanup связи,
|
|
253
261
|
* который engine вызывает до снятия этой связи со списка, ответ `true`
|
|
@@ -280,14 +288,14 @@ export declare class RuntimeReactivity extends RaphReactivity {
|
|
|
280
288
|
* чтения: принадлежать ему самому, его предку или root scope. Тогда source
|
|
281
289
|
* переживает selector, а потребители selector могли бы читать source сами.
|
|
282
290
|
*/
|
|
283
|
-
selectorForOwner<Key>(source: Signal<Key>, owner: RaphScope
|
|
291
|
+
selectorForOwner<Key>(source: Signal<Key>, owner: RaphScope<any>, options?: RaphSelectorOptions<Key>): RuntimeSelector<Key>;
|
|
284
292
|
/**
|
|
285
293
|
* Создаёт Runtime signal и ставит его в список источников владельца. Signal
|
|
286
294
|
* одним объектом является handle, producer WorkGraph и записью источника.
|
|
287
295
|
*/
|
|
288
|
-
signalForOwner<T>(initialValue: T, owner: RaphScope
|
|
296
|
+
signalForOwner<T>(initialValue: T, owner: RaphScope<any>, kind?: RaphProducerKind, includeRuntime?: boolean): RuntimeSignal<T>;
|
|
289
297
|
/**
|
|
290
298
|
* Создаёт owned computed с runtime lifecycle policy.
|
|
291
299
|
*/
|
|
292
|
-
computedForOwner<T>(getter: () => T, owner: RaphScope
|
|
300
|
+
computedForOwner<T>(getter: () => T, owner: RaphScope<any>, sourceHooks?: OwnedSourceHooks): ReadonlySignal<T>;
|
|
293
301
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OwnedSourceEntry } from '../../reactivity/scope.js';
|
|
2
|
+
import { RaphScope } from '../ownership/RaphScope.js';
|
|
3
|
+
import { RuntimeReactivity, RuntimeSignal } from './RuntimeReactivity.js';
|
|
4
|
+
import { RuntimeSelector } from './RaphSelector.js';
|
|
5
|
+
/** Optional selector construction; graph, source validation and ownership remain shared. */
|
|
6
|
+
export interface RuntimeSelectorSupport {
|
|
7
|
+
readonly create: <Key>(owner: RaphScope<any>, engine: RuntimeReactivity, source: RuntimeSignal<Key>, equals: ((key: Key, value: Key) => boolean) | undefined) => RuntimeSelector<Key>;
|
|
8
|
+
readonly is: (entry: OwnedSourceEntry) => entry is RuntimeSelector<unknown>;
|
|
9
|
+
}
|
|
10
|
+
export declare const RUNTIME_SELECTOR_SUPPORT: RuntimeSelectorSupport;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ReactiveEdge, ReactiveNode } from '../../reactivity/types';
|
|
2
|
-
import { RaphScope } from '../ownership/RaphScope';
|
|
1
|
+
import { ReactiveEdge, ReactiveNode } from '../../reactivity/types.js';
|
|
2
|
+
import { RaphScope } from '../ownership/RaphScope.js';
|
|
3
3
|
export interface RuntimeSignalLifecycle {
|
|
4
4
|
owner: object | undefined;
|
|
5
5
|
assertWriteAllowed?: () => void;
|
|
6
|
-
assertDependencyAllowed: (sourceOwner: RaphScope
|
|
6
|
+
assertDependencyAllowed: (sourceOwner: RaphScope<any>, consumerOwner: RaphScope<any>) => void;
|
|
7
7
|
throwDisposed: () => never;
|
|
8
8
|
throwCrossRuntime: (owner: object) => never;
|
|
9
9
|
}
|
package/dist/runtime.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./debug/runtime/errors.cjs"),r=require("./debug/runtime/ownership/parentGraph.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./debug/runtime/errors.cjs"),r=require("./debug/runtime/ownership/parentGraph.cjs"),t=require("./debug/runtime/ownership/RaphEffectScope.cjs"),a=require("./debug/runtime/ownership/RaphNode.cjs"),o=require("./debug/runtime/ownership/RaphScope.cjs"),p=require("./debug/runtime/phases/orderPhaseTasks.cjs"),s=require("./debug/runtime/phases/phase.types.cjs"),h=require("./debug/runtime/RaphRuntime.cjs"),i=require("./debug/runtime/reactivity/PathHandle.cjs"),n=require("./debug/runtime/reactivity/RaphSelector.cjs");exports.RaphActionError=e.RaphActionError;exports.RaphCrossRuntimeError=e.RaphCrossRuntimeError;exports.RaphDisposedError=e.RaphDisposedError;exports.RaphPhaseProcessError=e.RaphPhaseProcessError;exports.parentGraph=r.parentGraph;exports.RaphEffectScope=t.RaphEffectScope;exports.RaphNode=a.RaphNode;exports.RaphScope=o.RaphScope;exports.orderPhaseTasks=p.orderPhaseTasks;exports.RaphSchedulerType=s.RaphSchedulerType;exports.RaphRuntime=h.RaphRuntime;exports.PathHandle=i.PathHandle;exports.inspectSelector=n.inspectSelector;
|
package/dist/runtime.js
CHANGED
|
@@ -1,23 +1,25 @@
|
|
|
1
|
-
import { RaphActionError as e, RaphCrossRuntimeError as p, RaphDisposedError as
|
|
1
|
+
import { RaphActionError as e, RaphCrossRuntimeError as p, RaphDisposedError as t, RaphPhaseProcessError as a } from "./debug/runtime/errors.js";
|
|
2
2
|
import { parentGraph as f } from "./debug/runtime/ownership/parentGraph.js";
|
|
3
|
-
import { RaphEffectScope as
|
|
3
|
+
import { RaphEffectScope as s } from "./debug/runtime/ownership/RaphEffectScope.js";
|
|
4
4
|
import { RaphNode as x } from "./debug/runtime/ownership/RaphNode.js";
|
|
5
|
-
import { RaphScope as
|
|
6
|
-
import { orderPhaseTasks as
|
|
5
|
+
import { RaphScope as n } from "./debug/runtime/ownership/RaphScope.js";
|
|
6
|
+
import { orderPhaseTasks as i } from "./debug/runtime/phases/orderPhaseTasks.js";
|
|
7
7
|
import { RaphSchedulerType as P } from "./debug/runtime/phases/phase.types.js";
|
|
8
|
-
import { RaphRuntime as
|
|
8
|
+
import { RaphRuntime as l } from "./debug/runtime/RaphRuntime.js";
|
|
9
9
|
import { PathHandle as T } from "./debug/runtime/reactivity/PathHandle.js";
|
|
10
|
+
import { inspectSelector as y } from "./debug/runtime/reactivity/RaphSelector.js";
|
|
10
11
|
export {
|
|
11
12
|
T as PathHandle,
|
|
12
13
|
e as RaphActionError,
|
|
13
14
|
p as RaphCrossRuntimeError,
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
t as RaphDisposedError,
|
|
16
|
+
s as RaphEffectScope,
|
|
16
17
|
x as RaphNode,
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
a as RaphPhaseProcessError,
|
|
19
|
+
l as RaphRuntime,
|
|
19
20
|
P as RaphSchedulerType,
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
n as RaphScope,
|
|
22
|
+
y as inspectSelector,
|
|
23
|
+
i as orderPhaseTasks,
|
|
22
24
|
f as parentGraph
|
|
23
25
|
};
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@raphy-js/raph",
|
|
3
|
-
"repository": {
|
|
4
|
-
"type": "git",
|
|
5
|
-
"url": "https://gitlab.com/raphyjs/raphy-js-raph.git"
|
|
6
|
-
},
|
|
7
3
|
"type": "module",
|
|
8
|
-
"version": "1.0.1-dev.
|
|
4
|
+
"version": "1.0.1-dev.54",
|
|
9
5
|
"private": false,
|
|
10
6
|
"description": "Reactive signals, paths and application runtime",
|
|
11
7
|
"license": "Apache-2.0",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://gitlab.com/raphyjs/raphy-js-raph.git"
|
|
11
|
+
},
|
|
12
12
|
"sideEffects": false,
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -55,15 +55,30 @@
|
|
|
55
55
|
"types": "./dist/entrypoints/machine-testing.d.ts",
|
|
56
56
|
"import": "./dist/machine-testing.js",
|
|
57
57
|
"require": "./dist/machine-testing.cjs"
|
|
58
|
+
},
|
|
59
|
+
"./execution": {
|
|
60
|
+
"types": "./dist/entrypoints/execution.d.ts",
|
|
61
|
+
"import": "./dist/execution.js",
|
|
62
|
+
"require": "./dist/execution.cjs"
|
|
63
|
+
},
|
|
64
|
+
"./observable": {
|
|
65
|
+
"types": "./dist/entrypoints/observable.d.ts",
|
|
66
|
+
"import": "./dist/observable.js",
|
|
67
|
+
"require": "./dist/observable.cjs"
|
|
68
|
+
},
|
|
69
|
+
"./compact": {
|
|
70
|
+
"types": "./dist/entrypoints/compact.d.ts",
|
|
71
|
+
"import": "./dist/compact.js",
|
|
72
|
+
"require": "./dist/compact.cjs"
|
|
58
73
|
}
|
|
59
74
|
},
|
|
60
75
|
"main": "./dist/index.cjs",
|
|
61
76
|
"module": "./dist/index.js",
|
|
62
77
|
"types": "./dist/main.d.ts",
|
|
63
78
|
"files": [
|
|
64
|
-
"
|
|
79
|
+
"LICENSE",
|
|
65
80
|
"README.md",
|
|
66
|
-
"
|
|
81
|
+
"dist"
|
|
67
82
|
],
|
|
68
83
|
"scripts": {
|
|
69
84
|
"clean": "rimraf dist tsconfig.tsbuildinfo",
|
|
@@ -75,63 +90,8 @@
|
|
|
75
90
|
"test:coverage": "vitest run --coverage",
|
|
76
91
|
"test:memory": "node --expose-gc ./node_modules/vitest/vitest.mjs run --config vitest.memory.config.ts",
|
|
77
92
|
"test:distribution": "node --test src/test/distribution.node.mjs",
|
|
78
|
-
"test:benchmark:reactivity": "pnpm --ignore-workspace run bench:reactivity:correctness",
|
|
79
|
-
"bench:install": "pnpm --ignore-workspace run bench:reactivity:install",
|
|
80
|
-
"bench": "pnpm --ignore-workspace run bench:reactivity:performance",
|
|
81
|
-
"bench:churn:install": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run install:lab",
|
|
82
|
-
"bench:churn:test": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn test",
|
|
83
|
-
"bench:churn:correctness": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run correctness",
|
|
84
|
-
"bench:churn:light": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run light",
|
|
85
|
-
"bench:churn:balanced": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run balanced",
|
|
86
|
-
"bench:churn:parts": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run parts",
|
|
87
|
-
"bench:churn:paired": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run paired",
|
|
88
|
-
"bench:churn:aa": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/runtime-churn run aa",
|
|
89
93
|
"bench:path": "node src/test/benchmarks/path/run.mjs",
|
|
90
|
-
"bench:reactivity:install": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run install:lab",
|
|
91
|
-
"bench:reactivity:correctness": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run correctness",
|
|
92
|
-
"bench:reactivity:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run performance",
|
|
93
|
-
"bench:reactivity:memory": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run memory",
|
|
94
|
-
"bench:reactivity:balanced:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run performance -- --balanced",
|
|
95
|
-
"bench:reactivity:api-tax": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run api-tax",
|
|
96
|
-
"bench:reactivity:summarize": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run summarize",
|
|
97
|
-
"bench:reactivity": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run lab",
|
|
98
|
-
"bench:reactivity:raph-only": "pnpm --ignore-workspace run bench:reactivity --raph-only",
|
|
99
|
-
"bench:reactivity:balanced": "pnpm --ignore-workspace run bench:reactivity --balanced",
|
|
100
|
-
"bench:reactivity:light:correctness": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run correctness -- --light",
|
|
101
|
-
"bench:reactivity:light:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run performance -- --light",
|
|
102
|
-
"bench:reactivity:light:balanced:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run performance -- --light --balanced",
|
|
103
|
-
"bench:reactivity:light:api-tax": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run api-tax -- --light",
|
|
104
|
-
"bench:reactivity:light:report": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactivity run report -- --light",
|
|
105
|
-
"bench:reactivity:light": "pnpm --ignore-workspace run bench:reactivity --light",
|
|
106
|
-
"bench:reactivity:light:balanced": "pnpm --ignore-workspace run bench:reactivity --light --balanced",
|
|
107
|
-
"bench:reactive-object:install": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run install:lab",
|
|
108
|
-
"bench:reactive-object:correctness": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run correctness",
|
|
109
|
-
"bench:reactive-object:gc": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run gc",
|
|
110
|
-
"bench:reactive-object:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run performance",
|
|
111
|
-
"bench:reactive-object:memory": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run memory",
|
|
112
|
-
"bench:reactive-object:browsers": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run browsers",
|
|
113
|
-
"bench:reactive-object:report": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run report",
|
|
114
|
-
"bench:reactive-object:quick": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run quick",
|
|
115
|
-
"bench:reactive-object": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/reactive-object run lab",
|
|
116
|
-
"bench:machine:install": "node src/test/benchmarks/labs/machine/scripts/install.mjs",
|
|
117
|
-
"bench:machine:correctness": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run correctness",
|
|
118
|
-
"bench:machine:performance": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run performance",
|
|
119
|
-
"bench:machine:browsers": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run browsers",
|
|
120
|
-
"bench:machine:memory": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run memory",
|
|
121
|
-
"bench:machine:report": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run report",
|
|
122
|
-
"bench:machine:light": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run light",
|
|
123
|
-
"bench:machine": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/machine run lab",
|
|
124
94
|
"bench:native:machine": "node src/test/benchmarks/machine/run.mjs",
|
|
125
|
-
"bench:ecosystem:install": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run install:lab",
|
|
126
|
-
"bench:ecosystem:typecheck": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run typecheck",
|
|
127
|
-
"bench:ecosystem:build": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run build",
|
|
128
|
-
"bench:ecosystem:test-cli": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run test:cli",
|
|
129
|
-
"bench:ecosystem:list": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run list",
|
|
130
|
-
"bench:ecosystem:light": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run light",
|
|
131
|
-
"bench:ecosystem:balanced": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run balanced",
|
|
132
|
-
"bench:ecosystem:full": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run full",
|
|
133
|
-
"bench:ecosystem:curves": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run curves",
|
|
134
|
-
"bench:ecosystem": "pnpm --ignore-workspace --dir src/test/benchmarks/labs/ecosystem run lab",
|
|
135
95
|
"lint-check": "eslint src vite.config.ts vitest.config.ts vitest.memory.config.ts --cache",
|
|
136
96
|
"lint-fix": "eslint src vite.config.ts vitest.config.ts vitest.memory.config.ts --fix --cache",
|
|
137
97
|
"build:portable": "node scripts/build-portable.mjs"
|