@endge/core 12.0.3 → 13.0.0
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/LICENSE +202 -0
- package/dist/core.js +3992 -3984
- package/dist/features/core/modules/runtime/domain/runtime-host.types.d.ts +1 -1
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts +2 -2
- package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts +1 -1
- package/package.json +2 -2
- package/dist/features/core/modules/runtime/helpers/raph-phases/endge-runtime-boundary.d.ts +0 -13
|
@@ -6,7 +6,7 @@ import { RuntimeKind } from './runtime.types';
|
|
|
6
6
|
export type RuntimeHostStatus = 'created' | 'mounted' | 'running' | 'active' | 'pausing' | 'paused' | 'stopping' | 'stopped' | 'unmounted' | 'destroyed' | 'error';
|
|
7
7
|
/** Возможность, которую runtime-host предоставляет внешним consumers. */
|
|
8
8
|
export type RuntimeHostCapability = 'renderable';
|
|
9
|
-
export type RuntimeHostResourceKind = 'raph-node' | 'event-subscription' | 'scope' | 'meta';
|
|
9
|
+
export type RuntimeHostResourceKind = 'raph-node' | 'derived' | 'event-subscription' | 'scope' | 'meta';
|
|
10
10
|
export interface RuntimeHostResource {
|
|
11
11
|
/** Уникальный идентификатор ресурса внутри host. */
|
|
12
12
|
id: string;
|
package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-boundary-update-phase.d.ts
CHANGED
|
@@ -12,9 +12,9 @@ export interface RuntimeBoundaryUpdatePhaseOptions {
|
|
|
12
12
|
}
|
|
13
13
|
/** Универсальная Raph-фаза обновления runtime-сущностей через верхние dirty boundaries. */
|
|
14
14
|
export declare class RuntimeBoundaryUpdatePhase {
|
|
15
|
-
static readonly PHASE_NAME:
|
|
15
|
+
static readonly PHASE_NAME: string;
|
|
16
16
|
/** Создает Raph-фазу, которая вызывает update у runtime-host верхних dirty boundaries. */
|
|
17
17
|
static make(options?: RuntimeBoundaryUpdatePhaseOptions): RaphPhase;
|
|
18
18
|
}
|
|
19
19
|
/** Агрегирует dirty runtime-ноды к минимальному списку верхних dirty boundaries. */
|
|
20
|
-
export declare function aggregateRuntimeBoundaryUpdates(graph: DepGraph<RaphNode>, ctxs: PhaseExecutorContext[]): RuntimeBoundaryAggregatedUpdate[];
|
|
20
|
+
export declare function aggregateRuntimeBoundaryUpdates(graph: DepGraph<RaphNode>, ctxs: readonly PhaseExecutorContext[]): RuntimeBoundaryAggregatedUpdate[];
|
package/dist/features/core/modules/runtime/helpers/raph-phases/runtime-node-update-phase.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ export interface RuntimeNodeUpdatePhaseOptions {
|
|
|
11
11
|
* накопленные Raph events root-ноды соответствующему RuntimeHost.
|
|
12
12
|
*/
|
|
13
13
|
export declare class RuntimeNodeUpdatePhase {
|
|
14
|
-
static readonly PHASE_NAME:
|
|
14
|
+
static readonly PHASE_NAME: string;
|
|
15
15
|
static make(options?: RuntimeNodeUpdatePhaseOptions): RaphPhase;
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@endge/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "13.0.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"packageManager": "pnpm@8.8.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lint-fix": "eslint . --fix --cache"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@endge/raph": "
|
|
33
|
+
"@endge/raph": "4.0.0",
|
|
34
34
|
"class-transformer": "^0.5.1",
|
|
35
35
|
"class-validator": "^0.14.1",
|
|
36
36
|
"reflect-metadata": "^0.2.2"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DepGraph, PhaseExecutorContext, PhaseName, RaphNode, RaphPhase } from '../../../../../../../../@endge-raph/dist/main.d.ts';
|
|
2
|
-
/** Опции фабрики */
|
|
3
|
-
export interface BoundaryPhaseOptions {
|
|
4
|
-
isBoundary: (n: RaphNode) => boolean;
|
|
5
|
-
toRoot?: (boundary: RaphNode, graph: DepGraph) => RaphNode | null;
|
|
6
|
-
emitToRoot: (root: RaphNode, children: PhaseExecutorContext[]) => void;
|
|
7
|
-
onBoundary?: (boundary: RaphNode) => void;
|
|
8
|
-
name?: PhaseName;
|
|
9
|
-
routes?: string[];
|
|
10
|
-
nodes?: (n: RaphNode) => boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function invalidateBoundaryCache(): void;
|
|
13
|
-
export declare function createBoundaryAggregationPhase(graph: DepGraph, opts: BoundaryPhaseOptions): RaphPhase;
|