@graphrefly/graphrefly 0.19.0 → 0.20.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.
Files changed (48) hide show
  1. package/dist/{chunk-XUOY3YKN.js → chunk-2L5J6RPM.js} +2 -2
  2. package/dist/{chunk-JC2SN46B.js → chunk-3N2Y6PCR.js} +3 -3
  3. package/dist/{chunk-OO5QOAXI.js → chunk-5PSVTDNZ.js} +22 -9
  4. package/dist/chunk-5PSVTDNZ.js.map +1 -0
  5. package/dist/{chunk-BER7UYLM.js → chunk-BJAOEU4D.js} +10 -6
  6. package/dist/{chunk-BER7UYLM.js.map → chunk-BJAOEU4D.js.map} +1 -1
  7. package/dist/{chunk-UW77D7SP.js → chunk-IAPLC4NR.js} +3 -3
  8. package/dist/{chunk-IRZAGZUB.js → chunk-OOA2UTXF.js} +26 -2
  9. package/dist/chunk-OOA2UTXF.js.map +1 -0
  10. package/dist/{chunk-AHRKWMNI.js → chunk-PGEU5MEH.js} +3 -3
  11. package/dist/{chunk-YLR5JUJZ.js → chunk-R2LPZIY2.js} +3 -3
  12. package/dist/{chunk-YXR3WW3Q.js → chunk-XYL3GLB3.js} +3 -3
  13. package/dist/{chunk-YXR3WW3Q.js.map → chunk-XYL3GLB3.js.map} +1 -1
  14. package/dist/compat/nestjs/index.cjs +14 -5
  15. package/dist/compat/nestjs/index.cjs.map +1 -1
  16. package/dist/compat/nestjs/index.js +7 -7
  17. package/dist/core/index.cjs +2 -2
  18. package/dist/core/index.cjs.map +1 -1
  19. package/dist/core/index.d.cts +1 -1
  20. package/dist/core/index.d.ts +1 -1
  21. package/dist/core/index.js +3 -3
  22. package/dist/extra/index.cjs +31 -5
  23. package/dist/extra/index.cjs.map +1 -1
  24. package/dist/extra/index.d.cts +1 -1
  25. package/dist/extra/index.d.ts +1 -1
  26. package/dist/extra/index.js +7 -3
  27. package/dist/graph/index.cjs.map +1 -1
  28. package/dist/graph/index.js +4 -4
  29. package/dist/{index-CvKzv0AW.d.ts → index-BHfg_Ez3.d.ts} +1 -1
  30. package/dist/{index-BBUYZfJ1.d.cts → index-Bc_diYYJ.d.cts} +1 -1
  31. package/dist/{index-BnkMgNNa.d.ts → index-DuN3bhtm.d.ts} +47 -2
  32. package/dist/{index-Bjh5C1Tp.d.cts → index-SFzE_KTa.d.cts} +47 -2
  33. package/dist/index.cjs +153 -87
  34. package/dist/index.cjs.map +1 -1
  35. package/dist/index.d.cts +75 -6
  36. package/dist/index.d.ts +75 -6
  37. package/dist/index.js +126 -90
  38. package/dist/index.js.map +1 -1
  39. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  40. package/dist/patterns/reactive-layout/index.js +4 -4
  41. package/package.json +2 -2
  42. package/dist/chunk-IRZAGZUB.js.map +0 -1
  43. package/dist/chunk-OO5QOAXI.js.map +0 -1
  44. /package/dist/{chunk-XUOY3YKN.js.map → chunk-2L5J6RPM.js.map} +0 -0
  45. /package/dist/{chunk-JC2SN46B.js.map → chunk-3N2Y6PCR.js.map} +0 -0
  46. /package/dist/{chunk-UW77D7SP.js.map → chunk-IAPLC4NR.js.map} +0 -0
  47. /package/dist/{chunk-AHRKWMNI.js.map → chunk-PGEU5MEH.js.map} +0 -0
  48. /package/dist/{chunk-YLR5JUJZ.js.map → chunk-R2LPZIY2.js.map} +0 -0
@@ -1,2 +1,2 @@
1
1
  export { A as Actor, C as CLEANUP_RESULT, c as COMPLETE, d as CleanupResult, D as DATA, e as DEFAULT_ACTOR, f as DIRTY, g as DescribeDetail, h as DescribeField, i as DescribeNodeOutput, E as ERROR, G as GuardAction, j as GuardDenied, k as GuardDeniedDetails, H as HashFn, I as INVALIDATE, M as Message, l as Messages, N as Node, b as NodeActions, m as NodeDescribeKind, n as NodeGuard, a as NodeOptions, o as NodeSink, p as NodeStatus, q as NodeTransportOptions, r as NodeVersionInfo, O as OnMessageHandler, P as PAUSE, s as PolicyAllow, t as PolicyDeny, u as PolicyRuleData, R as RESOLVED, v as RESUME, S as START, w as SubscribeHints, T as TEARDOWN, V as V0, x as V1, y as VersioningLevel, z as VersioningOptions, B as accessHintForGuard, F as advanceVersion, J as cleanupResult, K as createVersioning, L as defaultHash, Q as isKnownMessageType, U as isLocalOnly, W as isPhase2Message, X as isTerminalMessage, Y as isV1, Z as knownMessageTypes, _ as messageTier, $ as normalizeActor, a0 as policy, a1 as policyFromRules, a2 as propagatesToMeta, a3 as resolveDescribeFields } from '../meta-BnG7XAaE.cjs';
2
- export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, N as NodeFn, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from '../index-BBUYZfJ1.cjs';
2
+ export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, N as NodeFn, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from '../index-Bc_diYYJ.cjs';
@@ -1,2 +1,2 @@
1
1
  export { A as Actor, C as CLEANUP_RESULT, c as COMPLETE, d as CleanupResult, D as DATA, e as DEFAULT_ACTOR, f as DIRTY, g as DescribeDetail, h as DescribeField, i as DescribeNodeOutput, E as ERROR, G as GuardAction, j as GuardDenied, k as GuardDeniedDetails, H as HashFn, I as INVALIDATE, M as Message, l as Messages, N as Node, b as NodeActions, m as NodeDescribeKind, n as NodeGuard, a as NodeOptions, o as NodeSink, p as NodeStatus, q as NodeTransportOptions, r as NodeVersionInfo, O as OnMessageHandler, P as PAUSE, s as PolicyAllow, t as PolicyDeny, u as PolicyRuleData, R as RESOLVED, v as RESUME, S as START, w as SubscribeHints, T as TEARDOWN, V as V0, x as V1, y as VersioningLevel, z as VersioningOptions, B as accessHintForGuard, F as advanceVersion, J as cleanupResult, K as createVersioning, L as defaultHash, Q as isKnownMessageType, U as isLocalOnly, W as isPhase2Message, X as isTerminalMessage, Y as isV1, Z as knownMessageTypes, _ as messageTier, $ as normalizeActor, a0 as policy, a1 as policyFromRules, a2 as propagatesToMeta, a3 as resolveDescribeFields } from '../meta-BnG7XAaE.js';
2
- export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, N as NodeFn, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from '../index-CvKzv0AW.js';
2
+ export { B as BridgeOptions, D as DEFAULT_DOWN, a as DownStrategy, b as DynGet, c as DynamicNodeFn, d as DynamicNodeImpl, e as DynamicNodeOptions, N as NodeFn, P as PipeOperator, R as ResettableTimer, f as batch, g as bridge, h as derived, j as downWithBatch, k as dynamicNode, l as effect, m as isBatching, n as monotonicNs, o as node, p as partitionForBatch, q as pipe, r as producer, s as state, w as wallClockNs } from '../index-BHfg_Ez3.js';
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DEFAULT_DOWN,
3
3
  bridge
4
- } from "../chunk-AHRKWMNI.js";
4
+ } from "../chunk-PGEU5MEH.js";
5
5
  import {
6
6
  ResettableTimer
7
7
  } from "../chunk-WZ2Z2CRV.js";
8
8
  import {
9
9
  resolveDescribeFields
10
- } from "../chunk-XUOY3YKN.js";
10
+ } from "../chunk-2L5J6RPM.js";
11
11
  import {
12
12
  CLEANUP_RESULT,
13
13
  COMPLETE,
@@ -52,7 +52,7 @@ import {
52
52
  propagatesToMeta,
53
53
  state,
54
54
  wallClockNs
55
- } from "../chunk-YXR3WW3Q.js";
55
+ } from "../chunk-XYL3GLB3.js";
56
56
  export {
57
57
  CLEANUP_RESULT,
58
58
  COMPLETE,
@@ -101,6 +101,7 @@ __export(extra_exports, {
101
101
  fromWebhook: () => fromWebhook,
102
102
  globToRegExp: () => globToRegExp,
103
103
  interval: () => interval,
104
+ keepalive: () => keepalive,
104
105
  last: () => last,
105
106
  linear: () => linear,
106
107
  logSlice: () => logSlice,
@@ -122,6 +123,7 @@ __export(extra_exports, {
122
123
  pubsub: () => pubsub,
123
124
  race: () => race,
124
125
  rateLimiter: () => rateLimiter,
126
+ reactiveCounter: () => reactiveCounter,
125
127
  reactiveIndex: () => reactiveIndex,
126
128
  reactiveList: () => reactiveList,
127
129
  reactiveLog: () => reactiveLog,
@@ -1285,8 +1287,8 @@ function producer(fn, opts) {
1285
1287
  function derived(deps, fn, opts) {
1286
1288
  return node(deps, fn, { describeKind: "derived", ...opts });
1287
1289
  }
1288
- function effect(deps, fn) {
1289
- return node(deps, fn, { describeKind: "effect" });
1290
+ function effect(deps, fn, opts) {
1291
+ return node(deps, fn, { describeKind: "effect", ...opts });
1290
1292
  }
1291
1293
 
1292
1294
  // src/extra/backoff.ts
@@ -2436,6 +2438,28 @@ function firstWhere(source, predicate) {
2436
2438
  });
2437
2439
  }
2438
2440
  var shareReplay = replay;
2441
+ function keepalive(n) {
2442
+ return n.subscribe(() => {
2443
+ });
2444
+ }
2445
+ function reactiveCounter(cap) {
2446
+ const counter = state(0);
2447
+ return {
2448
+ node: counter,
2449
+ increment() {
2450
+ const current = counter.get() ?? 0;
2451
+ if (current >= cap) return false;
2452
+ counter.down([[DIRTY], [DATA, current + 1]]);
2453
+ return true;
2454
+ },
2455
+ get() {
2456
+ return counter.get() ?? 0;
2457
+ },
2458
+ atCap() {
2459
+ return (counter.get() ?? 0) >= cap;
2460
+ }
2461
+ };
2462
+ }
2439
2463
 
2440
2464
  // src/extra/adapters.ts
2441
2465
  function createSinkErrorHandler(userHandler) {
@@ -7364,7 +7388,7 @@ function verifiable(source, verifyFn, opts) {
7364
7388
  }
7365
7389
  return { node: sourceNode, verified, trigger: triggerNode };
7366
7390
  }
7367
- function keepalive(node2) {
7391
+ function keepalive2(node2) {
7368
7392
  node2.subscribe(() => void 0);
7369
7393
  }
7370
7394
  function mapFromSnapshot(snapshot) {
@@ -7449,8 +7473,8 @@ function distill(source, extractFn, opts) {
7449
7473
  return packed;
7450
7474
  });
7451
7475
  const size = derived([store.entries], ([snapshot]) => mapFromSnapshot(snapshot).size);
7452
- keepalive(compact);
7453
- keepalive(size);
7476
+ keepalive2(compact);
7477
+ keepalive2(size);
7454
7478
  return { store, compact, size };
7455
7479
  }
7456
7480
 
@@ -8327,6 +8351,7 @@ function workerSelf(target, opts) {
8327
8351
  fromWebhook,
8328
8352
  globToRegExp,
8329
8353
  interval,
8354
+ keepalive,
8330
8355
  last,
8331
8356
  linear,
8332
8357
  logSlice,
@@ -8348,6 +8373,7 @@ function workerSelf(target, opts) {
8348
8373
  pubsub,
8349
8374
  race,
8350
8375
  rateLimiter,
8376
+ reactiveCounter,
8351
8377
  reactiveIndex,
8352
8378
  reactiveList,
8353
8379
  reactiveLog,