@graphrefly/graphrefly 0.15.0 → 0.17.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/dist/{chunk-4APC3AFN.js → chunk-2PORF4RP.js} +22 -49
- package/dist/chunk-2PORF4RP.js.map +1 -0
- package/dist/{chunk-QVYZD65U.js → chunk-646OG3PO.js} +10 -38
- package/dist/chunk-646OG3PO.js.map +1 -0
- package/dist/{chunk-H243FWYP.js → chunk-BV3TPSBK.js} +1 -2
- package/dist/chunk-BV3TPSBK.js.map +1 -0
- package/dist/chunk-EBNKJULL.js +231 -0
- package/dist/chunk-EBNKJULL.js.map +1 -0
- package/dist/{chunk-XQ4UMAU7.js → chunk-F2ULI3Q3.js} +2 -2
- package/dist/{chunk-CRACCCJY.js → chunk-IHJHBADD.js} +29 -5
- package/dist/chunk-IHJHBADD.js.map +1 -0
- package/dist/{chunk-YW6LFCFS.js → chunk-R6OHUUYB.js} +3 -3
- package/dist/{chunk-2ZICUAUJ.js → chunk-XJ6EMQ22.js} +10 -12
- package/dist/chunk-XJ6EMQ22.js.map +1 -0
- package/dist/{chunk-GKRKDYNT.js → chunk-YXROQFXZ.js} +3 -3
- package/dist/compat/nestjs/index.cjs +38 -42
- package/dist/compat/nestjs/index.cjs.map +1 -1
- package/dist/compat/nestjs/index.d.cts +4 -4
- package/dist/compat/nestjs/index.d.ts +4 -4
- package/dist/compat/nestjs/index.js +7 -7
- package/dist/core/index.cjs +0 -1
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +3 -3
- package/dist/extra/index.cjs +27 -79
- package/dist/extra/index.cjs.map +1 -1
- package/dist/extra/index.d.cts +4 -4
- package/dist/extra/index.d.ts +4 -4
- package/dist/extra/index.js +3 -3
- package/dist/graph/index.cjs +151 -5
- package/dist/graph/index.cjs.map +1 -1
- package/dist/graph/index.d.cts +3 -3
- package/dist/graph/index.d.ts +3 -3
- package/dist/graph/index.js +10 -6
- package/dist/{graph-BXIK5Dq5.d.ts → graph-Dc-P9BVm.d.ts} +15 -3
- package/dist/{graph-BhADtuFU.d.cts → graph-fCsaaVIa.d.cts} +15 -3
- package/dist/{index-BkToATim.d.ts → index-4OIX-q0C.d.cts} +88 -3
- package/dist/{index-DSp5R3Xq.d.ts → index-BBVBYPxr.d.cts} +4 -4
- package/dist/{index-BNB0KjKe.d.ts → index-BmoUvOGN.d.ts} +1 -1
- package/dist/{index-DBhLjWSV.d.cts → index-ClaKZFPl.d.cts} +100 -31
- package/dist/{index-Wa8jXne6.d.cts → index-D7y9Q8W4.d.ts} +88 -3
- package/dist/{index-Dqemj9q0.d.cts → index-DWq0P9T6.d.ts} +4 -4
- package/dist/{index-fYObbpUw.d.ts → index-DhXznWyH.d.ts} +2 -2
- package/dist/{index-DANO9Gg7.d.cts → index-DlGMf_Qe.d.cts} +2 -2
- package/dist/{index-CKyYg4IP.d.ts → index-N704txAA.d.ts} +100 -31
- package/dist/{index-DKIyo4Bq.d.cts → index-YlOH1Gw6.d.cts} +1 -1
- package/dist/index.cjs +302 -231
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +71 -41
- package/dist/index.d.ts +71 -41
- package/dist/index.js +131 -151
- package/dist/index.js.map +1 -1
- package/dist/{meta-CrZUQAJ6.d.cts → meta-BV4pj9ML.d.cts} +6 -0
- package/dist/{meta-CrZUQAJ6.d.ts → meta-BV4pj9ML.d.ts} +6 -0
- package/dist/observable-Cz-AWhwR.d.cts +42 -0
- package/dist/observable-DCqlwGyl.d.ts +42 -0
- package/dist/patterns/reactive-layout/index.cjs +26 -3
- package/dist/patterns/reactive-layout/index.cjs.map +1 -1
- package/dist/patterns/reactive-layout/index.d.cts +3 -3
- package/dist/patterns/reactive-layout/index.d.ts +3 -3
- package/dist/patterns/reactive-layout/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-2ZICUAUJ.js.map +0 -1
- package/dist/chunk-4APC3AFN.js.map +0 -1
- package/dist/chunk-CRACCCJY.js.map +0 -1
- package/dist/chunk-H243FWYP.js.map +0 -1
- package/dist/chunk-QVYZD65U.js.map +0 -1
- package/dist/chunk-ZHTHUX5D.js +0 -107
- package/dist/chunk-ZHTHUX5D.js.map +0 -1
- package/dist/reactive-log-ChbpUrY2.d.cts +0 -137
- package/dist/reactive-log-DV--7BWd.d.ts +0 -137
- /package/dist/{chunk-XQ4UMAU7.js.map → chunk-F2ULI3Q3.js.map} +0 -0
- /package/dist/{chunk-YW6LFCFS.js.map → chunk-R6OHUUYB.js.map} +0 -0
- /package/dist/{chunk-GKRKDYNT.js.map → chunk-YXROQFXZ.js.map} +0 -0
package/dist/extra/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AdapterHandlers,
|
|
2
|
-
export {
|
|
3
|
-
import '../meta-
|
|
4
|
-
import '../graph-
|
|
1
|
+
export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, D as DistillBundle, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, E as Extraction, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, N as NodeInput, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from '../index-ClaKZFPl.cjs';
|
|
2
|
+
export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../observable-Cz-AWhwR.cjs';
|
|
3
|
+
import '../meta-BV4pj9ML.cjs';
|
|
4
|
+
import '../graph-fCsaaVIa.cjs';
|
|
5
5
|
import 'rxjs';
|
package/dist/extra/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AdapterHandlers,
|
|
2
|
-
export {
|
|
3
|
-
import '../meta-
|
|
4
|
-
import '../graph-
|
|
1
|
+
export { A as AdapterHandlers, a as AsyncSourceOpts, B as BackoffPreset, b as BackoffStrategy, c as BatchMessage, d as BridgeMessage, e as BufferedSinkHandle, C as CSVRow, f as CacheEvictionPolicy, g as CacheTier, h as CascadingCache, i as CascadingCacheOptions, j as CheckpointAdapter, k as CheckpointToRedisOptions, l as CheckpointToS3Options, m as CircuitBreaker, n as CircuitBreakerOptions, o as CircuitOpenError, p as CircuitState, q as ClickHouseClientLike, r as ClickHouseInsertClientLike, s as ClickHouseRow, t as CronSchedule, u as DictCheckpointAdapter, D as DistillBundle, v as DistillOptions, w as DrizzleQueryLike, x as ErrorMessage, y as EventTargetLike, z as ExponentialBackoffOptions, E as Extraction, F as FSEvent, G as FSEventType, H as FileCheckpointAdapter, I as FileWriterLike, J as FromCSVOptions, K as FromClickHouseWatchOptions, L as FromCronOptions, M as FromDrizzleOptions, O as FromFSWatchOptions, P as FromGitHookOptions, Q as FromHTTPOptions, R as FromKafkaOptions, S as FromKyselyOptions, T as FromMCPOptions, U as FromNATSOptions, V as FromNDJSONOptions, W as FromOTelOptions, X as FromPrismaOptions, Y as FromPrometheusOptions, Z as FromPulsarOptions, _ as FromRabbitMQOptions, $ as FromRedisStreamOptions, a0 as FromSqliteOptions, a1 as FromStatsDOptions, a2 as FromSyslogOptions, a3 as GitEvent, a4 as GitHookType, a5 as HTTPBundle, a6 as IndexRow, a7 as IndexedDbCheckpointSpec, a8 as InitMessage, a9 as JitterMode, aa as KafkaConsumerLike, ab as KafkaMessage, ac as KafkaProducerLike, ad as KyselyQueryLike, ae as LokiClientLike, af as LokiStream, ag as MCPClientLike, ah as MemoryCheckpointAdapter, ai as MergeMapOptions, aj as MongoCollectionLike, ak as NATSClientLike, al as NATSMessage, am as NATSSubscriptionLike, an as NS_PER_MS, ao as NS_PER_SEC, N as NodeInput, ap as OTelBundle, aq as OTelLog, ar as OTelMetric, as as OTelRegister, at as OTelSpan, au as PostgresClientLike, av as PrismaModelLike, aw as PrometheusMetric, ax as PubSubHub, ay as PulsarConsumerLike, az as PulsarMessage, aA as PulsarProducerLike, aB as RabbitMQChannelLike, aC as RabbitMQMessage, aD as ReactiveIndexBundle, aE as ReactiveIndexOptions, aF as ReactiveListBundle, aG as ReactiveListOptions, aH as ReactiveLogBundle, aI as ReactiveLogOptions, aJ as ReactiveMapBundle, aK as ReactiveMapOptions, aL as ReadyMessage, aM as RedisCheckpointClientLike, aN as RedisClientLike, aO as RedisStreamEntry, aP as RetryOptions, aQ as S3ClientLike, aR as SignalMessage, aS as SinkHandle, aT as SinkTransportError, aU as SqliteCheckpointAdapter, aV as SqliteDbLike, aW as StatsDMetric, aX as StatsDRegister, aY as StatusValue, aZ as SyslogMessage, a_ as SyslogRegister, a$ as TapObserver, b0 as TempoClientLike, b1 as ThrottleOptions, b2 as TieredStorage, b3 as TieredStorageOptions, b4 as TimeoutError, b5 as ToCSVOptions, b6 as ToClickHouseOptions, b7 as ToFileOptions, b8 as ToKafkaOptions, b9 as ToLokiOptions, ba as ToMongoOptions, bb as ToNATSOptions, bc as ToPostgresOptions, bd as ToPulsarOptions, be as ToRabbitMQOptions, bf as ToRedisStreamOptions, bg as ToS3Options, bh as ToSSEOptions, bi as ToSqliteOptions, bj as ToTempoOptions, bk as ToWebSocketOptions, bl as ToWebSocketTransportError, bm as TokenBucket, bn as ValueMessage, bo as VerifiableBundle, bp as VerifiableOptions, bq as VerifyValue, br as WatermarkController, bs as WatermarkOptions, bt as WebSocketLike, bu as WebSocketMessageEventLike, bv as WebSocketRegister, bw as WebhookRegister, bx as WithBreakerBundle, by as WithStatusBundle, bz as WorkerBridge, bA as WorkerBridgeOptions, bB as WorkerSelfHandle, bC as WorkerSelfOptions, bD as WorkerTransport, bE as audit, bF as buffer, bG as bufferCount, bH as bufferTime, bI as cache, bJ as cached, bK as cascadingCache, bL as catchError, bM as checkpointNodeValue, bN as checkpointToRedis, bO as checkpointToS3, bP as circuitBreaker, bQ as combine, bR as combineLatest, bS as concat, bT as concatMap, bU as constant, bV as createTransport, bW as createWatermarkController, bX as debounce, bY as debounceTime, bZ as decorrelatedJitter, b_ as delay, b$ as deserializeError, c0 as distill, c1 as distinctUntilChanged, c2 as elementAt, c3 as empty, c4 as escapeRegexChar, c5 as exhaustMap, c6 as exponential, c8 as fallback, c9 as fibonacci, ca as filter, cb as find, cc as first, cd as firstValueFrom, ce as flatMap, cf as forEach, cg as fromAny, ch as fromAsyncIter, ci as fromCSV, cj as fromClickHouseWatch, ck as fromCron, cl as fromDrizzle, cm as fromEvent, cn as fromFSWatch, co as fromGitHook, cp as fromHTTP, cq as fromIDBRequest, cr as fromIDBTransaction, cs as fromIter, ct as fromKafka, cu as fromKysely, cv as fromMCP, cw as fromNATS, cx as fromNDJSON, cy as fromOTel, cz as fromPrisma, cA as fromPrometheus, cB as fromPromise, cC as fromPulsar, cD as fromRabbitMQ, cE as fromRedisStream, cF as fromSqlite, cG as fromStatsD, cH as fromSyslog, cI as fromTimer, cJ as fromWebSocket, cK as fromWebhook, cL as globToRegExp, cM as interval, cN as last, cO as linear, cP as logSlice, cQ as lru, cR as map, cS as matchesAnyPattern, cT as matchesCron, cU as merge, cV as mergeMap, cW as nameToSignal, cX as never, cY as of, cZ as pairwise, c_ as parseCron, c$ as parsePrometheusText, d0 as parseStatsD, d1 as parseSyslog, d2 as pausable, d3 as pubsub, d4 as race, d5 as rateLimiter, d6 as reactiveIndex, d7 as reactiveList, d8 as reactiveLog, d9 as reactiveMap, da as reduce, db as repeat, dc as replay, dd as rescue, de as resolveBackoffPreset, df as restoreGraphCheckpoint, dg as restoreGraphCheckpointIndexedDb, dh as retry, di as sample, dj as saveGraphCheckpoint, dk as saveGraphCheckpointIndexedDb, dl as scan, dm as serializeError, dn as share, dp as shareReplay, dq as signalToName, dr as skip, ds as startWith, dt as switchMap, du as take, dv as takeUntil, dw as takeWhile, dx as tap, dy as throttle, dz as throttleTime, dA as throwError, dB as tieredStorage, dC as timeout, dD as toArray, dE as toCSV, dF as toClickHouse, dG as toFile, dH as toKafka, dI as toLoki, dJ as toMongo, dK as toNATS, dL as toPostgres, dM as toPulsar, dN as toRabbitMQ, dO as toRedisStream, dP as toS3, dQ as toSSE, dR as toSqlite, dS as toTempo, dT as toWebSocket, dU as tokenBucket, dV as tokenTracker, dW as valve, dX as verifiable, dY as window, dZ as windowCount, d_ as windowTime, d$ as withBreaker, e0 as withLatestFrom, e1 as withMaxAttempts, e2 as withStatus, e3 as workerBridge, e4 as workerSelf, e5 as zip } from '../index-N704txAA.js';
|
|
2
|
+
export { o as observeGraph$, a as observeNode$, t as toMessages$, b as toObservable } from '../observable-DCqlwGyl.js';
|
|
3
|
+
import '../meta-BV4pj9ML.js';
|
|
4
|
+
import '../graph-Dc-P9BVm.js';
|
|
5
5
|
import 'rxjs';
|
package/dist/extra/index.js
CHANGED
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
workerBridge,
|
|
137
137
|
workerSelf,
|
|
138
138
|
zip
|
|
139
|
-
} from "../chunk-
|
|
139
|
+
} from "../chunk-2PORF4RP.js";
|
|
140
140
|
import {
|
|
141
141
|
cached,
|
|
142
142
|
createWatermarkController,
|
|
@@ -169,9 +169,9 @@ import {
|
|
|
169
169
|
toArray,
|
|
170
170
|
toMessages$,
|
|
171
171
|
toObservable
|
|
172
|
-
} from "../chunk-
|
|
172
|
+
} from "../chunk-646OG3PO.js";
|
|
173
173
|
import "../chunk-WZ2Z2CRV.js";
|
|
174
|
-
import "../chunk-
|
|
174
|
+
import "../chunk-BV3TPSBK.js";
|
|
175
175
|
export {
|
|
176
176
|
CircuitOpenError,
|
|
177
177
|
DictCheckpointAdapter,
|
package/dist/graph/index.cjs
CHANGED
|
@@ -25,9 +25,11 @@ __export(graph_exports, {
|
|
|
25
25
|
JsonCodec: () => JsonCodec,
|
|
26
26
|
createDagCborCodec: () => createDagCborCodec,
|
|
27
27
|
createDagCborZstdCodec: () => createDagCborZstdCodec,
|
|
28
|
+
graphProfile: () => graphProfile,
|
|
28
29
|
negotiateCodec: () => negotiateCodec,
|
|
29
30
|
reachable: () => reachable,
|
|
30
|
-
replayWAL: () => replayWAL
|
|
31
|
+
replayWAL: () => replayWAL,
|
|
32
|
+
sizeof: () => sizeof
|
|
31
33
|
});
|
|
32
34
|
module.exports = __toCommonJS(graph_exports);
|
|
33
35
|
|
|
@@ -787,7 +789,6 @@ var NodeImpl = class {
|
|
|
787
789
|
this._downInternal(wasDirty ? [[RESOLVED]] : [[DIRTY], [RESOLVED]]);
|
|
788
790
|
return;
|
|
789
791
|
}
|
|
790
|
-
this._cached = value;
|
|
791
792
|
this._downInternal(wasDirty ? [[DATA, value]] : [[DIRTY], [DATA, value]]);
|
|
792
793
|
}
|
|
793
794
|
_runFn() {
|
|
@@ -1823,6 +1824,7 @@ var Graph = class _Graph {
|
|
|
1823
1824
|
/** @internal — exposed for {@link teardownMountedGraph}. */
|
|
1824
1825
|
_mounts = /* @__PURE__ */ new Map();
|
|
1825
1826
|
_autoCheckpointDisposers = /* @__PURE__ */ new Set();
|
|
1827
|
+
_disposers = /* @__PURE__ */ new Set();
|
|
1826
1828
|
_defaultVersioningLevel;
|
|
1827
1829
|
static registerFactory(pattern, factory) {
|
|
1828
1830
|
if (!pattern) {
|
|
@@ -2958,10 +2960,33 @@ var Graph = class _Graph {
|
|
|
2958
2960
|
// Lifecycle & persistence (§3.7–§3.8)
|
|
2959
2961
|
// ——————————————————————————————————————————————————————————————
|
|
2960
2962
|
/**
|
|
2961
|
-
*
|
|
2962
|
-
*
|
|
2963
|
+
* Register a cleanup function to be called on {@link Graph.destroy}.
|
|
2964
|
+
*
|
|
2965
|
+
* Factories use this to attach teardown logic for internal nodes, keepalive
|
|
2966
|
+
* subscriptions, or other resources that are not registered on the graph and
|
|
2967
|
+
* would otherwise leak on repeated create/destroy cycles.
|
|
2968
|
+
*
|
|
2969
|
+
* Returns a removal function — call it to unregister the disposer early.
|
|
2970
|
+
*/
|
|
2971
|
+
addDisposer(fn) {
|
|
2972
|
+
this._disposers.add(fn);
|
|
2973
|
+
return () => {
|
|
2974
|
+
this._disposers.delete(fn);
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2977
|
+
/**
|
|
2978
|
+
* Drains disposers (registered via {@link addDisposer}), then sends `[[TEARDOWN]]` to all
|
|
2979
|
+
* nodes and clears registries on this graph and every mounted subgraph (§3.7).
|
|
2980
|
+
* The instance is left empty and may be reused with {@link Graph.add}.
|
|
2963
2981
|
*/
|
|
2964
2982
|
destroy() {
|
|
2983
|
+
for (const dispose of [...this._disposers]) {
|
|
2984
|
+
try {
|
|
2985
|
+
dispose();
|
|
2986
|
+
} catch {
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
this._disposers.clear();
|
|
2965
2990
|
this.signal([[TEARDOWN]], { internal: true });
|
|
2966
2991
|
for (const dispose of [...this._autoCheckpointDisposers]) {
|
|
2967
2992
|
try {
|
|
@@ -3430,6 +3455,125 @@ function reachable(described, from, direction, options = {}) {
|
|
|
3430
3455
|
}
|
|
3431
3456
|
return [...out].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
3432
3457
|
}
|
|
3458
|
+
|
|
3459
|
+
// src/graph/sizeof.ts
|
|
3460
|
+
var OVERHEAD = {
|
|
3461
|
+
object: 56,
|
|
3462
|
+
array: 64,
|
|
3463
|
+
string: 40,
|
|
3464
|
+
// header; content added separately
|
|
3465
|
+
number: 8,
|
|
3466
|
+
boolean: 4,
|
|
3467
|
+
null: 0,
|
|
3468
|
+
undefined: 0,
|
|
3469
|
+
symbol: 40,
|
|
3470
|
+
bigint: 16,
|
|
3471
|
+
function: 120,
|
|
3472
|
+
map: 72,
|
|
3473
|
+
set: 72,
|
|
3474
|
+
mapEntry: 40,
|
|
3475
|
+
setEntry: 24
|
|
3476
|
+
};
|
|
3477
|
+
function sizeof(value) {
|
|
3478
|
+
const seen = /* @__PURE__ */ new WeakSet();
|
|
3479
|
+
return _sizeof(value, seen);
|
|
3480
|
+
}
|
|
3481
|
+
function _sizeof(value, seen) {
|
|
3482
|
+
if (value == null) return 0;
|
|
3483
|
+
const t = typeof value;
|
|
3484
|
+
switch (t) {
|
|
3485
|
+
case "number":
|
|
3486
|
+
return OVERHEAD.number;
|
|
3487
|
+
case "boolean":
|
|
3488
|
+
return OVERHEAD.boolean;
|
|
3489
|
+
case "string":
|
|
3490
|
+
return OVERHEAD.string + value.length * 2;
|
|
3491
|
+
// UTF-16
|
|
3492
|
+
case "bigint":
|
|
3493
|
+
return OVERHEAD.bigint;
|
|
3494
|
+
case "symbol":
|
|
3495
|
+
return OVERHEAD.symbol;
|
|
3496
|
+
case "function":
|
|
3497
|
+
if (seen.has(value)) return 0;
|
|
3498
|
+
seen.add(value);
|
|
3499
|
+
return OVERHEAD.function;
|
|
3500
|
+
case "undefined":
|
|
3501
|
+
return 0;
|
|
3502
|
+
}
|
|
3503
|
+
const obj = value;
|
|
3504
|
+
if (seen.has(obj)) return 0;
|
|
3505
|
+
seen.add(obj);
|
|
3506
|
+
if (obj instanceof Map) {
|
|
3507
|
+
let size2 = OVERHEAD.map;
|
|
3508
|
+
for (const [k, v] of obj) {
|
|
3509
|
+
size2 += OVERHEAD.mapEntry + _sizeof(k, seen) + _sizeof(v, seen);
|
|
3510
|
+
}
|
|
3511
|
+
return size2;
|
|
3512
|
+
}
|
|
3513
|
+
if (obj instanceof Set) {
|
|
3514
|
+
let size2 = OVERHEAD.set;
|
|
3515
|
+
for (const v of obj) {
|
|
3516
|
+
size2 += OVERHEAD.setEntry + _sizeof(v, seen);
|
|
3517
|
+
}
|
|
3518
|
+
return size2;
|
|
3519
|
+
}
|
|
3520
|
+
if (Array.isArray(obj)) {
|
|
3521
|
+
let size2 = OVERHEAD.array + obj.length * 8;
|
|
3522
|
+
for (const item of obj) {
|
|
3523
|
+
size2 += _sizeof(item, seen);
|
|
3524
|
+
}
|
|
3525
|
+
return size2;
|
|
3526
|
+
}
|
|
3527
|
+
if (obj instanceof ArrayBuffer) return obj.byteLength;
|
|
3528
|
+
if (ArrayBuffer.isView(obj)) return obj.byteLength;
|
|
3529
|
+
let size = OVERHEAD.object;
|
|
3530
|
+
const keys = Object.keys(obj);
|
|
3531
|
+
for (const key of keys) {
|
|
3532
|
+
size += OVERHEAD.string + key.length * 2;
|
|
3533
|
+
size += _sizeof(obj[key], seen);
|
|
3534
|
+
}
|
|
3535
|
+
return size;
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
// src/graph/profile.ts
|
|
3539
|
+
function graphProfile(graph, opts) {
|
|
3540
|
+
const topN = opts?.topN ?? 10;
|
|
3541
|
+
const desc = graph.describe({ detail: "standard" });
|
|
3542
|
+
const targets = [];
|
|
3543
|
+
if (typeof graph._collectObserveTargets === "function") {
|
|
3544
|
+
graph._collectObserveTargets("", targets);
|
|
3545
|
+
}
|
|
3546
|
+
const pathToNode = /* @__PURE__ */ new Map();
|
|
3547
|
+
for (const [p, n] of targets) {
|
|
3548
|
+
pathToNode.set(p, n);
|
|
3549
|
+
}
|
|
3550
|
+
const profiles = [];
|
|
3551
|
+
for (const [path, nodeDesc] of Object.entries(desc.nodes)) {
|
|
3552
|
+
const nd = pathToNode.get(path);
|
|
3553
|
+
const impl = nd instanceof NodeImpl ? nd : null;
|
|
3554
|
+
const valueSizeBytes = impl ? sizeof(impl.get()) : 0;
|
|
3555
|
+
const subscriberCount = impl ? impl._sinkCount : 0;
|
|
3556
|
+
const depCount = nodeDesc.deps?.length ?? 0;
|
|
3557
|
+
profiles.push({
|
|
3558
|
+
path,
|
|
3559
|
+
type: nodeDesc.type,
|
|
3560
|
+
status: nodeDesc.status ?? "unknown",
|
|
3561
|
+
valueSizeBytes,
|
|
3562
|
+
subscriberCount,
|
|
3563
|
+
depCount
|
|
3564
|
+
});
|
|
3565
|
+
}
|
|
3566
|
+
const totalValueSizeBytes = profiles.reduce((sum, p) => sum + p.valueSizeBytes, 0);
|
|
3567
|
+
const hotspots = [...profiles].sort((a, b) => b.valueSizeBytes - a.valueSizeBytes).slice(0, topN);
|
|
3568
|
+
return {
|
|
3569
|
+
nodeCount: profiles.length,
|
|
3570
|
+
edgeCount: desc.edges.length,
|
|
3571
|
+
subgraphCount: desc.subgraphs.length,
|
|
3572
|
+
nodes: profiles,
|
|
3573
|
+
totalValueSizeBytes,
|
|
3574
|
+
hotspots
|
|
3575
|
+
};
|
|
3576
|
+
}
|
|
3433
3577
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3434
3578
|
0 && (module.exports = {
|
|
3435
3579
|
GRAPH_META_SEGMENT,
|
|
@@ -3437,8 +3581,10 @@ function reachable(described, from, direction, options = {}) {
|
|
|
3437
3581
|
JsonCodec,
|
|
3438
3582
|
createDagCborCodec,
|
|
3439
3583
|
createDagCborZstdCodec,
|
|
3584
|
+
graphProfile,
|
|
3440
3585
|
negotiateCodec,
|
|
3441
3586
|
reachable,
|
|
3442
|
-
replayWAL
|
|
3587
|
+
replayWAL,
|
|
3588
|
+
sizeof
|
|
3443
3589
|
});
|
|
3444
3590
|
//# sourceMappingURL=index.cjs.map
|