@graphrefly/graphrefly 0.13.0 → 0.15.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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/{chunk-HA6QMDKQ.js → chunk-2ZICUAUJ.js} +4 -4
  3. package/dist/{chunk-H4UFM6WD.js → chunk-4APC3AFN.js} +3 -3
  4. package/dist/{chunk-UQI4GAHD.js → chunk-CRACCCJY.js} +3 -3
  5. package/dist/{chunk-UPC5OEB5.js → chunk-GKRKDYNT.js} +3 -3
  6. package/dist/{chunk-6B2ZCCNN.js → chunk-H243FWYP.js} +12 -13
  7. package/dist/chunk-H243FWYP.js.map +1 -0
  8. package/dist/{chunk-KNGOJEYP.js → chunk-QVYZD65U.js} +2 -2
  9. package/dist/{chunk-PFMXKG4Y.js → chunk-XQ4UMAU7.js} +2 -2
  10. package/dist/{chunk-5RN7NBNG.js → chunk-YW6LFCFS.js} +3 -3
  11. package/dist/{chunk-QOGWU5K7.js → chunk-ZHTHUX5D.js} +3 -3
  12. package/dist/compat/nestjs/index.cjs +11 -12
  13. package/dist/compat/nestjs/index.cjs.map +1 -1
  14. package/dist/compat/nestjs/index.js +7 -7
  15. package/dist/core/index.cjs +11 -12
  16. package/dist/core/index.cjs.map +1 -1
  17. package/dist/core/index.js +3 -3
  18. package/dist/extra/index.cjs +11 -12
  19. package/dist/extra/index.cjs.map +1 -1
  20. package/dist/extra/index.js +3 -3
  21. package/dist/graph/index.cjs +3 -0
  22. package/dist/graph/index.cjs.map +1 -1
  23. package/dist/graph/index.js +4 -4
  24. package/dist/index.cjs +425 -12
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.d.cts +368 -56
  27. package/dist/index.d.ts +368 -56
  28. package/dist/index.js +426 -13
  29. package/dist/index.js.map +1 -1
  30. package/dist/patterns/reactive-layout/index.cjs +3 -0
  31. package/dist/patterns/reactive-layout/index.cjs.map +1 -1
  32. package/dist/patterns/reactive-layout/index.js +4 -4
  33. package/package.json +5 -2
  34. package/dist/chunk-6B2ZCCNN.js.map +0 -1
  35. /package/dist/{chunk-HA6QMDKQ.js.map → chunk-2ZICUAUJ.js.map} +0 -0
  36. /package/dist/{chunk-H4UFM6WD.js.map → chunk-4APC3AFN.js.map} +0 -0
  37. /package/dist/{chunk-UQI4GAHD.js.map → chunk-CRACCCJY.js.map} +0 -0
  38. /package/dist/{chunk-UPC5OEB5.js.map → chunk-GKRKDYNT.js.map} +0 -0
  39. /package/dist/{chunk-KNGOJEYP.js.map → chunk-QVYZD65U.js.map} +0 -0
  40. /package/dist/{chunk-PFMXKG4Y.js.map → chunk-XQ4UMAU7.js.map} +0 -0
  41. /package/dist/{chunk-5RN7NBNG.js.map → chunk-YW6LFCFS.js.map} +0 -0
  42. /package/dist/{chunk-QOGWU5K7.js.map → chunk-ZHTHUX5D.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DEFAULT_DOWN,
3
3
  bridge
4
- } from "../chunk-5RN7NBNG.js";
4
+ } from "../chunk-YW6LFCFS.js";
5
5
  import {
6
6
  ResettableTimer
7
7
  } from "../chunk-WZ2Z2CRV.js";
@@ -9,7 +9,7 @@ import {
9
9
  describeNode,
10
10
  metaSnapshot,
11
11
  resolveDescribeFields
12
- } from "../chunk-PFMXKG4Y.js";
12
+ } from "../chunk-XQ4UMAU7.js";
13
13
  import {
14
14
  CLEANUP_RESULT,
15
15
  COMPLETE,
@@ -52,7 +52,7 @@ import {
52
52
  propagatesToMeta,
53
53
  state,
54
54
  wallClockNs
55
- } from "../chunk-6B2ZCCNN.js";
55
+ } from "../chunk-H243FWYP.js";
56
56
  export {
57
57
  CLEANUP_RESULT,
58
58
  COMPLETE,
@@ -267,8 +267,7 @@ function drainPending() {
267
267
  if (ownsFlush) {
268
268
  flushInProgress = true;
269
269
  }
270
- let firstError;
271
- let hasError = false;
270
+ const errors = [];
272
271
  try {
273
272
  let iterations = 0;
274
273
  while (pendingPhase2.length > 0 || pendingPhase3.length > 0) {
@@ -286,10 +285,7 @@ function drainPending() {
286
285
  try {
287
286
  run();
288
287
  } catch (e) {
289
- if (!hasError) {
290
- firstError = e;
291
- hasError = true;
292
- }
288
+ errors.push(e);
293
289
  }
294
290
  }
295
291
  }
@@ -307,10 +303,7 @@ function drainPending() {
307
303
  try {
308
304
  run();
309
305
  } catch (e) {
310
- if (!hasError) {
311
- firstError = e;
312
- hasError = true;
313
- }
306
+ errors.push(e);
314
307
  }
315
308
  }
316
309
  }
@@ -320,8 +313,11 @@ function drainPending() {
320
313
  flushInProgress = false;
321
314
  }
322
315
  }
323
- if (hasError) {
324
- throw firstError;
316
+ if (errors.length === 1) {
317
+ throw errors[0];
318
+ }
319
+ if (errors.length > 1) {
320
+ throw new AggregateError(errors, "batch drain: multiple callbacks threw");
325
321
  }
326
322
  }
327
323
  function partitionForBatch(messages) {
@@ -892,6 +888,9 @@ var NodeImpl = class {
892
888
  for (const m of messages) {
893
889
  const t = m[0];
894
890
  if (t === DATA) {
891
+ if (m.length < 2) {
892
+ continue;
893
+ }
895
894
  this._cached = m[1];
896
895
  if (this._versioning != null) {
897
896
  advanceVersion(this._versioning, m[1], this._hashFn);