@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
@@ -31,19 +31,19 @@ import {
31
31
  getNodeToken,
32
32
  observeSSE,
33
33
  observeSubscription
34
- } from "../../chunk-HA6QMDKQ.js";
35
- import "../../chunk-5RN7NBNG.js";
36
- import "../../chunk-QOGWU5K7.js";
34
+ } from "../../chunk-2ZICUAUJ.js";
35
+ import "../../chunk-ZHTHUX5D.js";
36
+ import "../../chunk-YW6LFCFS.js";
37
37
  import {
38
38
  observeGraph$,
39
39
  observeNode$,
40
40
  toMessages$,
41
41
  toObservable
42
- } from "../../chunk-KNGOJEYP.js";
42
+ } from "../../chunk-QVYZD65U.js";
43
43
  import "../../chunk-WZ2Z2CRV.js";
44
- import "../../chunk-UQI4GAHD.js";
45
- import "../../chunk-PFMXKG4Y.js";
46
- import "../../chunk-6B2ZCCNN.js";
44
+ import "../../chunk-CRACCCJY.js";
45
+ import "../../chunk-XQ4UMAU7.js";
46
+ import "../../chunk-H243FWYP.js";
47
47
  export {
48
48
  ACTOR_KEY,
49
49
  COMMAND_HANDLERS,
@@ -161,8 +161,7 @@ function drainPending() {
161
161
  if (ownsFlush) {
162
162
  flushInProgress = true;
163
163
  }
164
- let firstError;
165
- let hasError = false;
164
+ const errors = [];
166
165
  try {
167
166
  let iterations = 0;
168
167
  while (pendingPhase2.length > 0 || pendingPhase3.length > 0) {
@@ -180,10 +179,7 @@ function drainPending() {
180
179
  try {
181
180
  run();
182
181
  } catch (e) {
183
- if (!hasError) {
184
- firstError = e;
185
- hasError = true;
186
- }
182
+ errors.push(e);
187
183
  }
188
184
  }
189
185
  }
@@ -201,10 +197,7 @@ function drainPending() {
201
197
  try {
202
198
  run();
203
199
  } catch (e) {
204
- if (!hasError) {
205
- firstError = e;
206
- hasError = true;
207
- }
200
+ errors.push(e);
208
201
  }
209
202
  }
210
203
  }
@@ -214,8 +207,11 @@ function drainPending() {
214
207
  flushInProgress = false;
215
208
  }
216
209
  }
217
- if (hasError) {
218
- throw firstError;
210
+ if (errors.length === 1) {
211
+ throw errors[0];
212
+ }
213
+ if (errors.length > 1) {
214
+ throw new AggregateError(errors, "batch drain: multiple callbacks threw");
219
215
  }
220
216
  }
221
217
  function partitionForBatch(messages) {
@@ -856,6 +852,9 @@ var NodeImpl = class {
856
852
  for (const m of messages) {
857
853
  const t = m[0];
858
854
  if (t === DATA) {
855
+ if (m.length < 2) {
856
+ continue;
857
+ }
859
858
  this._cached = m[1];
860
859
  if (this._versioning != null) {
861
860
  advanceVersion(this._versioning, m[1], this._hashFn);