jazz-tools 0.15.0 → 0.15.2

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 (56) hide show
  1. package/.turbo/turbo-build.log +47 -47
  2. package/CHANGELOG.md +23 -0
  3. package/dist/{chunk-FSIM7N33.js → chunk-VBDJM6Z5.js} +142 -31
  4. package/dist/chunk-VBDJM6Z5.js.map +1 -0
  5. package/dist/index.js +1 -1
  6. package/dist/inspector/index.js +147 -102
  7. package/dist/inspector/index.js.map +1 -1
  8. package/dist/inspector/viewer/co-plain-text-view.d.ts +5 -0
  9. package/dist/inspector/viewer/co-plain-text-view.d.ts.map +1 -0
  10. package/dist/inspector/viewer/new-app.d.ts.map +1 -1
  11. package/dist/inspector/viewer/page.d.ts.map +1 -1
  12. package/dist/inspector/viewer/type-icon.d.ts.map +1 -1
  13. package/dist/inspector/viewer/use-open-inspector.d.ts +2 -0
  14. package/dist/inspector/viewer/use-open-inspector.d.ts.map +1 -0
  15. package/dist/inspector/viewer/use-page-path.d.ts.map +1 -1
  16. package/dist/inspector/viewer/use-resolve-covalue.d.ts +1 -1
  17. package/dist/inspector/viewer/use-resolve-covalue.d.ts.map +1 -1
  18. package/dist/inspector/viewer/value-renderer.d.ts.map +1 -1
  19. package/dist/react-native-core/index.js +2 -18
  20. package/dist/react-native-core/index.js.map +1 -1
  21. package/dist/react-native-core/media.d.ts.map +1 -1
  22. package/dist/testing.js +1 -1
  23. package/dist/tools/coValues/coFeed.d.ts +9 -0
  24. package/dist/tools/coValues/coFeed.d.ts.map +1 -1
  25. package/dist/tools/coValues/coMap.d.ts +98 -2
  26. package/dist/tools/coValues/coMap.d.ts.map +1 -1
  27. package/dist/tools/coValues/interfaces.d.ts +3 -0
  28. package/dist/tools/coValues/interfaces.d.ts.map +1 -1
  29. package/dist/tools/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts +12 -0
  30. package/dist/tools/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts.map +1 -1
  31. package/dist/tools/implementation/zodSchema/zodCo.d.ts.map +1 -1
  32. package/dist/tools/subscribe/CoValueCoreSubscription.d.ts +2 -1
  33. package/dist/tools/subscribe/CoValueCoreSubscription.d.ts.map +1 -1
  34. package/dist/tools/subscribe/SubscriptionScope.d.ts +2 -1
  35. package/dist/tools/subscribe/SubscriptionScope.d.ts.map +1 -1
  36. package/package.json +5 -5
  37. package/src/inspector/viewer/co-plain-text-view.tsx +17 -0
  38. package/src/inspector/viewer/new-app.tsx +2 -1
  39. package/src/inspector/viewer/page.tsx +5 -0
  40. package/src/inspector/viewer/type-icon.tsx +1 -0
  41. package/src/inspector/viewer/use-open-inspector.ts +18 -0
  42. package/src/inspector/viewer/use-page-path.ts +14 -1
  43. package/src/inspector/viewer/use-resolve-covalue.ts +1 -1
  44. package/src/inspector/viewer/value-renderer.tsx +4 -0
  45. package/src/react-native-core/media.tsx +2 -22
  46. package/src/tools/coValues/coFeed.ts +38 -0
  47. package/src/tools/coValues/coMap.ts +118 -14
  48. package/src/tools/coValues/interfaces.ts +14 -4
  49. package/src/tools/implementation/zodSchema/schemaTypes/CoMapSchema.ts +38 -0
  50. package/src/tools/implementation/zodSchema/zodCo.ts +6 -0
  51. package/src/tools/subscribe/CoValueCoreSubscription.ts +12 -9
  52. package/src/tools/subscribe/SubscriptionScope.ts +31 -19
  53. package/src/tools/tests/coFeed.test.ts +69 -0
  54. package/src/tools/tests/coMap.test.ts +480 -4
  55. package/src/tools/tests/load.test.ts +2 -1
  56. package/dist/chunk-FSIM7N33.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.15.0 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.15.2 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types && pnpm build:svelte
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -107,85 +107,85 @@
107
107
  ESM Build start
108
108
  CLI Cleaning output folder
109
109
  ESM Build start
110
- ESM dist/browser-media-images/index.js 3.01 KB
111
- ESM dist/browser-media-images/index.js.map 5.68 KB
112
- ESM ⚡️ Build success in 24ms
113
110
  ESM dist/worker/index.js 2.34 KB
114
111
  ESM dist/worker/index.js.map 4.82 KB
115
- ESM ⚡️ Build success in 17ms
116
- ESM dist/react-native-media-images/index.js 6.19 KB
117
- ESM dist/react-native-media-images/index.js.map 10.96 KB
118
- ESM ⚡️ Build success in 19ms
112
+ ESM ⚡️ Build success in 13ms
119
113
  ESM dist/tiptap/index.js 564.00 B
120
114
  ESM dist/tiptap/index.js.map 1.21 KB
121
- ESM ⚡️ Build success in 21ms
122
- ESM dist/react-native/index.js 2.53 KB
123
- ESM dist/react-native/testing.js 120.00 B
124
- ESM dist/react-native/crypto.js 117.00 B
125
- ESM dist/react-native/index.js.map 5.68 KB
126
- ESM dist/react-native/testing.js.map 176.00 B
127
- ESM dist/react-native/crypto.js.map 174.00 B
128
- ESM ⚡️ Build success in 26ms
115
+ ESM ⚡️ Build success in 14ms
116
+ ESM dist/browser-media-images/index.js 3.01 KB
117
+ ESM dist/browser-media-images/index.js.map 5.68 KB
118
+ ESM ⚡️ Build success in 19ms
119
+ ESM dist/react-native-media-images/index.js 6.19 KB
120
+ ESM dist/react-native-media-images/index.js.map 10.96 KB
121
+ ESM ⚡️ Build success in 16ms
129
122
  ESM dist/react-core/index.js 8.37 KB
130
- ESM dist/react-core/testing.js 1.17 KB
131
123
  ESM dist/react-core/chunk-7DYMJ74I.js 279.00 B
132
- ESM dist/react-core/testing.js.map 1.82 KB
124
+ ESM dist/react-core/testing.js 1.17 KB
133
125
  ESM dist/react-core/index.js.map 16.39 KB
134
126
  ESM dist/react-core/chunk-7DYMJ74I.js.map 533.00 B
135
- ESM ⚡️ Build success in 30ms
127
+ ESM dist/react-core/testing.js.map 1.82 KB
128
+ ESM ⚡️ Build success in 19ms
136
129
  ESM dist/expo/index.js 4.65 KB
137
130
  ESM dist/expo/testing.js 112.00 B
138
131
  ESM dist/expo/crypto.js 109.00 B
139
132
  ESM dist/expo/index.js.map 10.17 KB
140
- ESM dist/expo/testing.js.map 168.00 B
141
133
  ESM dist/expo/crypto.js.map 166.00 B
142
- ESM ⚡️ Build success in 47ms
134
+ ESM dist/expo/testing.js.map 168.00 B
135
+ ESM ⚡️ Build success in 24ms
136
+ ESM dist/react-native/index.js 2.53 KB
137
+ ESM dist/react-native/crypto.js 117.00 B
138
+ ESM dist/react-native/testing.js 120.00 B
139
+ ESM dist/react-native/index.js.map 5.68 KB
140
+ ESM dist/react-native/crypto.js.map 174.00 B
141
+ ESM dist/react-native/testing.js.map 176.00 B
142
+ ESM ⚡️ Build success in 22ms
143
143
  ESM dist/browser/index.js 13.36 KB
144
144
  ESM dist/browser/index.js.map 28.57 KB
145
- ESM ⚡️ Build success in 51ms
145
+ ESM ⚡️ Build success in 26ms
146
+ ESM dist/react-native-core/index.js 17.42 KB
147
+ ESM dist/react-native-core/crypto.js 2.10 KB
148
+ ESM dist/react-native-core/testing.js 119.00 B
149
+ ESM dist/react-native-core/index.js.map 34.49 KB
150
+ ESM dist/react-native-core/crypto.js.map 4.25 KB
151
+ ESM dist/react-native-core/testing.js.map 175.00 B
152
+ ESM ⚡️ Build success in 34ms
146
153
  ESM dist/react/index.js 20.64 KB
147
- ESM dist/react/testing.js 107.00 B
148
154
  ESM dist/react/ssr.js 688.00 B
155
+ ESM dist/react/testing.js 107.00 B
149
156
  ESM dist/react/index.js.map 34.07 KB
150
- ESM dist/react/testing.js.map 163.00 B
151
157
  ESM dist/react/ssr.js.map 1.12 KB
152
- ESM ⚡️ Build success in 48ms
153
- ESM dist/react-native-core/index.js 18.00 KB
154
- ESM dist/react-native-core/testing.js 119.00 B
155
- ESM dist/react-native-core/crypto.js 2.10 KB
156
- ESM dist/react-native-core/index.js.map 35.54 KB
157
- ESM dist/react-native-core/testing.js.map 175.00 B
158
- ESM dist/react-native-core/crypto.js.map 4.25 KB
159
- ESM ⚡️ Build success in 47ms
160
- ESM dist/react/testing.js 122.00 B
158
+ ESM dist/react/testing.js.map 163.00 B
159
+ ESM ⚡️ Build success in 35ms
160
+ ESM dist/prosemirror/index.js 76.90 KB
161
+ ESM dist/prosemirror/index.js.map 305.53 KB
162
+ ESM ⚡️ Build success in 37ms
161
163
  ESM dist/react/index.js 20.66 KB
164
+ ESM dist/react/testing.js 122.00 B
162
165
  ESM dist/react/testing.js.map 165.00 B
163
166
  ESM dist/react/index.js.map 34.07 KB
164
- ESM ⚡️ Build success in 49ms
165
- ESM dist/prosemirror/index.js 76.90 KB
166
- ESM dist/prosemirror/index.js.map 305.53 KB
167
- ESM ⚡️ Build success in 63ms
168
- ESM dist/inspector/index.js 58.92 KB
169
- ESM dist/inspector/index.js.map 105.21 KB
170
- ESM ⚡️ Build success in 75ms
171
- ESM dist/testing.js 6.32 KB
167
+ ESM ⚡️ Build success in 36ms
168
+ ESM dist/inspector/index.js 60.37 KB
169
+ ESM dist/inspector/index.js.map 107.85 KB
170
+ ESM ⚡️ Build success in 46ms
172
171
  ESM dist/index.js 16.19 KB
173
- ESM dist/chunk-FSIM7N33.js 137.52 KB
172
+ ESM dist/testing.js 6.32 KB
173
+ ESM dist/chunk-VBDJM6Z5.js 140.80 KB
174
174
  ESM dist/testing.js.map 12.22 KB
175
175
  ESM dist/index.js.map 29.03 KB
176
- ESM dist/chunk-FSIM7N33.js.map 314.21 KB
177
- ESM ⚡️ Build success in 96ms
176
+ ESM dist/chunk-VBDJM6Z5.js.map 320.73 KB
177
+ ESM ⚡️ Build success in 59ms
178
178
  ESM dist/inspector/register-custom-element.js 218.00 B
179
179
  ESM dist/inspector/register-custom-element.js.map 314.00 B
180
180
  ESM dist/inspector/custom-element-CWW72LEG.js 1.47 MB
181
181
  ESM dist/inspector/custom-element-CWW72LEG.js.map 2.26 MB
182
- ESM ⚡️ Build success in 132ms
182
+ ESM ⚡️ Build success in 89ms
183
183
 
184
- > jazz-tools@0.15.0 types /home/runner/_work/jazz/jazz/packages/jazz-tools
184
+ > jazz-tools@0.15.2 types /home/runner/_work/jazz/jazz/packages/jazz-tools
185
185
  > tsc --outDir dist
186
186
 
187
187
 
188
- > jazz-tools@0.15.0 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
188
+ > jazz-tools@0.15.2 build:svelte /home/runner/_work/jazz/jazz/packages/jazz-tools
189
189
  > rm -rf dist/svelte && svelte-package -i src/svelte -o dist/svelte --tsconfig tsconfig.svelte.json
190
190
 
191
191
  src/svelte -> dist/svelte
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.15.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0e7e532: inspector: improve CoPlainText view
8
+ - Updated dependencies [4b964ed]
9
+ - cojson@0.15.2
10
+ - cojson-storage@0.15.2
11
+ - cojson-storage-indexeddb@0.15.2
12
+ - cojson-transport-ws@0.15.2
13
+
14
+ ## 0.15.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 0e3a4d2: Add FileStream.loadAsBase64 API
19
+ - b110f00: Added `CoMap.upsertUnique` & `CoMap.loadUnique` methods (deprecating `CoMap.findUnique`) and added `skipRetry` option to `CoMap.load`
20
+ - Updated dependencies [b110f00]
21
+ - cojson@0.15.1
22
+ - cojson-storage@0.15.1
23
+ - cojson-storage-indexeddb@0.15.1
24
+ - cojson-transport-ws@0.15.1
25
+
3
26
  ## 0.15.0
4
27
 
5
28
  ### Minor Changes
@@ -287,16 +287,7 @@ var _CoMap = class _CoMap extends CoValueBase {
287
287
  **/
288
288
  static create(init, options) {
289
289
  const instance = new this();
290
- const { owner, uniqueness } = parseCoValueCreateOptions(options);
291
- const raw = instance.rawFromInit(init, owner, uniqueness);
292
- Object.defineProperties(instance, {
293
- id: {
294
- value: raw.id,
295
- enumerable: false
296
- },
297
- _raw: { value: raw, enumerable: false }
298
- });
299
- return instance;
290
+ return instance._createCoMap(init, options);
300
291
  }
301
292
  /**
302
293
  * Return a JSON representation of the `CoMap`
@@ -339,6 +330,18 @@ var _CoMap = class _CoMap extends CoValueBase {
339
330
  [inspect]() {
340
331
  return this.toJSON();
341
332
  }
333
+ _createCoMap(init, options) {
334
+ const { owner, uniqueness } = parseCoValueCreateOptions(options);
335
+ const raw = this.rawFromInit(init, owner, uniqueness);
336
+ Object.defineProperties(this, {
337
+ id: {
338
+ value: raw.id,
339
+ enumerable: false
340
+ },
341
+ _raw: { value: raw, enumerable: false }
342
+ });
343
+ return this;
344
+ }
342
345
  /**
343
346
  * Create a new `RawCoMap` from an initialization object
344
347
  * @internal
@@ -427,7 +430,12 @@ var _CoMap = class _CoMap extends CoValueBase {
427
430
  const { options, listener } = parseSubscribeRestArgs(args);
428
431
  return subscribeToCoValueWithoutMe(this, id, options, listener);
429
432
  }
433
+ /** @deprecated Use `CoMap.upsertUnique` and `CoMap.loadUnique` instead. */
430
434
  static findUnique(unique, ownerID, as) {
435
+ return _CoMap._findUnique(unique, ownerID, as);
436
+ }
437
+ /** @internal */
438
+ static _findUnique(unique, ownerID, as) {
431
439
  as ||= activeAccountContext.get();
432
440
  const header = {
433
441
  type: "comap",
@@ -441,6 +449,65 @@ var _CoMap = class _CoMap extends CoValueBase {
441
449
  const crypto = as._type === "Anonymous" ? as.node.crypto : as._raw.core.node.crypto;
442
450
  return cojsonInternals.idforHeader(header, crypto);
443
451
  }
452
+ /**
453
+ * Given some data, updates an existing CoMap or initialises a new one if none exists.
454
+ *
455
+ * Note: This method respects resolve options, and thus can return `null` if the references cannot be resolved.
456
+ *
457
+ * @example
458
+ * ```ts
459
+ * const activeEvent = await Event.upsertUnique(
460
+ * sourceData.identifier,
461
+ * workspace.id,
462
+ * {
463
+ * title: sourceData.title,
464
+ * identifier: sourceData.identifier,
465
+ * external_id: sourceData._id,
466
+ * },
467
+ * workspace
468
+ * );
469
+ * ```
470
+ *
471
+ * @param options The options for creating or loading the CoMap. This includes the intended state of the CoMap, its unique identifier, its owner, and the references to resolve.
472
+ * @returns Either an existing & modified CoMap, or a new initialised CoMap if none exists.
473
+ * @category Subscription & Loading
474
+ */
475
+ static async upsertUnique(options) {
476
+ let mapId = _CoMap._findUnique(options.unique, options.owner.id);
477
+ let map = await loadCoValueWithoutMe(this, mapId, {
478
+ ...options,
479
+ loadAs: options.owner._loadedAs,
480
+ skipRetry: true
481
+ });
482
+ if (!map) {
483
+ const instance = new this();
484
+ map = instance._createCoMap(options.value, {
485
+ owner: options.owner,
486
+ unique: options.unique
487
+ });
488
+ } else {
489
+ map.applyDiff(options.value);
490
+ }
491
+ return await loadCoValueWithoutMe(this, mapId, {
492
+ ...options,
493
+ loadAs: options.owner._loadedAs,
494
+ skipRetry: true
495
+ });
496
+ }
497
+ /**
498
+ * Loads a CoMap by its unique identifier and owner's ID.
499
+ * @param unique The unique identifier of the CoMap to load.
500
+ * @param ownerID The ID of the owner of the CoMap.
501
+ * @param options Additional options for loading the CoMap.
502
+ * @returns The loaded CoMap, or null if unavailable.
503
+ */
504
+ static loadUnique(unique, ownerID, options) {
505
+ return loadCoValueWithoutMe(
506
+ this,
507
+ _CoMap._findUnique(unique, ownerID, options?.loadAs),
508
+ { ...options, skipRetry: true }
509
+ );
510
+ }
444
511
  /**
445
512
  * Given an already loaded `CoMap`, ensure that the specified fields are loaded to the specified depth.
446
513
  *
@@ -1448,6 +1515,25 @@ var FileStream = class extends CoValueBase {
1448
1515
  allowUnfinished: options?.allowUnfinished
1449
1516
  });
1450
1517
  }
1518
+ static async loadAsBase64(id, options) {
1519
+ const stream = await this.load(id, options);
1520
+ return stream?.asBase64(options);
1521
+ }
1522
+ asBase64(options) {
1523
+ const chunks = this.getChunks(options);
1524
+ if (!chunks) return void 0;
1525
+ const output = [];
1526
+ for (const chunk of chunks.chunks) {
1527
+ for (const byte of chunk) {
1528
+ output.push(String.fromCharCode(byte));
1529
+ }
1530
+ }
1531
+ const base642 = btoa(output.join(""));
1532
+ if (options?.dataURL) {
1533
+ return `data:${chunks.mimeType};base64,${base642}`;
1534
+ }
1535
+ return base642;
1536
+ }
1451
1537
  /**
1452
1538
  * Create a `FileStream` from a `Blob` or `File`
1453
1539
  *
@@ -2778,10 +2864,11 @@ function applyCoValueMigrations(instance) {
2778
2864
 
2779
2865
  // src/tools/subscribe/CoValueCoreSubscription.ts
2780
2866
  var CoValueCoreSubscription = class {
2781
- constructor(node, id, listener) {
2867
+ constructor(node, id, listener, skipRetry) {
2782
2868
  this.node = node;
2783
2869
  this.id = id;
2784
2870
  this.listener = listener;
2871
+ this.skipRetry = skipRetry;
2785
2872
  this._unsubscribe = () => {
2786
2873
  };
2787
2874
  this.unsubscribed = false;
@@ -2789,13 +2876,13 @@ var CoValueCoreSubscription = class {
2789
2876
  if (entry?.isAvailable()) {
2790
2877
  this.subscribe(entry.getCurrentContent());
2791
2878
  } else {
2792
- this.node.loadCoValueCore(this.id).then((value) => {
2879
+ this.node.loadCoValueCore(this.id, void 0, skipRetry).then((value) => {
2793
2880
  if (this.unsubscribed) return;
2794
2881
  if (value.isAvailable()) {
2795
2882
  this.subscribe(value.getCurrentContent());
2796
2883
  } else {
2797
- this.listener("unavailable");
2798
2884
  this.subscribeToState();
2885
+ this.listener("unavailable");
2799
2886
  }
2800
2887
  });
2801
2888
  }
@@ -2890,10 +2977,11 @@ function createCoValue(ref2, raw, subscriptionScope) {
2890
2977
 
2891
2978
  // src/tools/subscribe/SubscriptionScope.ts
2892
2979
  var SubscriptionScope = class _SubscriptionScope {
2893
- constructor(node, resolve, id, schema) {
2980
+ constructor(node, resolve, id, schema, skipRetry) {
2894
2981
  this.node = node;
2895
2982
  this.id = id;
2896
2983
  this.schema = schema;
2984
+ this.skipRetry = skipRetry;
2897
2985
  this.childNodes = /* @__PURE__ */ new Map();
2898
2986
  this.childValues = /* @__PURE__ */ new Map();
2899
2987
  this.childErrors = /* @__PURE__ */ new Map();
@@ -2932,20 +3020,30 @@ var SubscriptionScope = class _SubscriptionScope {
2932
3020
  this.resolve = resolve;
2933
3021
  this.value = { type: "unloaded", id };
2934
3022
  let lastUpdate;
2935
- this.subscription = new CoValueCoreSubscription(node, id, (value) => {
2936
- lastUpdate = value;
2937
- if (!this.migrated && value !== "unavailable") {
2938
- if (this.migrating) {
3023
+ this.subscription = new CoValueCoreSubscription(
3024
+ node,
3025
+ id,
3026
+ (value) => {
3027
+ lastUpdate = value;
3028
+ if (skipRetry && value === "unavailable") {
3029
+ this.handleUpdate(value);
3030
+ this.destroy();
2939
3031
  return;
2940
3032
  }
2941
- this.migrating = true;
2942
- applyCoValueMigrations(instantiateRefEncoded(this.schema, value));
2943
- this.migrated = true;
2944
- this.handleUpdate(lastUpdate);
2945
- return;
2946
- }
2947
- this.handleUpdate(value);
2948
- });
3033
+ if (!this.migrated && value !== "unavailable") {
3034
+ if (this.migrating) {
3035
+ return;
3036
+ }
3037
+ this.migrating = true;
3038
+ applyCoValueMigrations(instantiateRefEncoded(this.schema, value));
3039
+ this.migrated = true;
3040
+ this.handleUpdate(lastUpdate);
3041
+ return;
3042
+ }
3043
+ this.handleUpdate(value);
3044
+ },
3045
+ skipRetry
3046
+ );
2949
3047
  }
2950
3048
  updateValue(value) {
2951
3049
  this.value = value;
@@ -3554,6 +3652,12 @@ function enrichCoMapSchema(schema) {
3554
3652
  findUnique: (...args) => {
3555
3653
  return coSchema.findUnique(...args);
3556
3654
  },
3655
+ upsertUnique: (...args) => {
3656
+ return coSchema.upsertUnique(...args);
3657
+ },
3658
+ loadUnique: (...args) => {
3659
+ return coSchema.loadUnique(...args);
3660
+ },
3557
3661
  catchall: (index) => {
3558
3662
  return enrichCoMapSchema(baseCatchall(index));
3559
3663
  },
@@ -4603,6 +4707,7 @@ function loadCoValue(cls, id, options) {
4603
4707
  resolve: options.resolve,
4604
4708
  loadAs: options.loadAs,
4605
4709
  syncResolution: true,
4710
+ skipRetry: options.skipRetry,
4606
4711
  onUnavailable: () => {
4607
4712
  resolve(null);
4608
4713
  },
@@ -4670,10 +4775,16 @@ function subscribeToCoValue(cls, id, options, listener) {
4670
4775
  const node = "node" in loadAs ? loadAs.node : loadAs._raw.core.node;
4671
4776
  const resolve = options.resolve ?? true;
4672
4777
  let unsubscribed = false;
4673
- const rootNode = new SubscriptionScope(node, resolve, id, {
4674
- ref: cls,
4675
- optional: false
4676
- });
4778
+ const rootNode = new SubscriptionScope(
4779
+ node,
4780
+ resolve,
4781
+ id,
4782
+ {
4783
+ ref: cls,
4784
+ optional: false
4785
+ },
4786
+ options.skipRetry
4787
+ );
4677
4788
  const handleUpdate = (value) => {
4678
4789
  if (unsubscribed) return;
4679
4790
  if (value.type === "unavailable") {
@@ -4824,4 +4935,4 @@ export {
4824
4935
  JazzContextManager
4825
4936
  };
4826
4937
  /* istanbul ignore file -- @preserve */
4827
- //# sourceMappingURL=chunk-FSIM7N33.js.map
4938
+ //# sourceMappingURL=chunk-VBDJM6Z5.js.map