jazz-tools 0.18.32 → 0.18.33

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/index.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  subscribeToCoValue,
39
39
  unstable_loadUnique,
40
40
  zodReExport_exports
41
- } from "./chunk-JXRJMGKV.js";
41
+ } from "./chunk-OSQ7S47Q.js";
42
42
  import {
43
43
  createSSRJazzAgent
44
44
  } from "./chunk-M2HGBOXS.js";
@@ -113,7 +113,7 @@
113
113
  [
114
114
  Uint8Array.from(
115
115
  atob(
116
- "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
116
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
117
117
  ),
118
118
  (c) => c.charCodeAt(0),
119
119
  ),
@@ -463,7 +463,7 @@ describe("Image", async () => {
463
463
  });
464
464
  const img = container.querySelector("img");
465
465
  expect(img).toBeDefined();
466
- expect(img.src).toBe("blob:test-70");
466
+ expect(img.src).toBe("blob:test-68");
467
467
  });
468
468
  it("should load the image when threshold is reached", async () => {
469
469
  const createObjectURLSpy = vi
package/dist/testing.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  createAnonymousJazzContext,
7
7
  createJazzContext,
8
8
  randomSessionProvider
9
- } from "./chunk-JXRJMGKV.js";
9
+ } from "./chunk-OSQ7S47Q.js";
10
10
  import "./chunk-PZ5AY32C.js";
11
11
 
12
12
  // src/tools/testing.ts
package/package.json CHANGED
@@ -187,7 +187,7 @@
187
187
  },
188
188
  "type": "module",
189
189
  "license": "MIT",
190
- "version": "0.18.32",
190
+ "version": "0.18.33",
191
191
  "dependencies": {
192
192
  "@manuscripts/prosemirror-recreate-steps": "^0.1.4",
193
193
  "@scure/base": "1.2.1",
@@ -204,9 +204,9 @@
204
204
  "prosemirror-transform": "^1.9.0",
205
205
  "use-sync-external-store": "^1.5.0",
206
206
  "zod": "4.1.11",
207
- "cojson": "0.18.32",
208
- "cojson-storage-indexeddb": "0.18.32",
209
- "cojson-transport-ws": "0.18.32"
207
+ "cojson": "0.18.33",
208
+ "cojson-storage-indexeddb": "0.18.33",
209
+ "cojson-transport-ws": "0.18.33"
210
210
  },
211
211
  "devDependencies": {
212
212
  "@scure/bip39": "^1.3.0",
@@ -74,7 +74,7 @@ describe("createImage", async () => {
74
74
 
75
75
  getImageSize.mockResolvedValue({ width: 1, height: 1 });
76
76
  getPlaceholderBase64.mockResolvedValue(
77
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
77
+ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
78
78
  );
79
79
 
80
80
  const image = await createImage(imageBlob, {
@@ -204,7 +204,7 @@ describe("createImage", async () => {
204
204
 
205
205
  // 1x1 png
206
206
  const OnePixel = atob(
207
- "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
207
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
208
208
  );
209
209
 
210
210
  // Image 1920x400
@@ -113,7 +113,7 @@
113
113
  [
114
114
  Uint8Array.from(
115
115
  atob(
116
- "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8/5+hHgAHggJ/PchI7wAAAABJRU5ErkJggg==",
116
+ "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
117
117
  ),
118
118
  (c) => c.charCodeAt(0),
119
119
  ),
@@ -626,7 +626,7 @@ describe("Image", async () => {
626
626
 
627
627
  const img = container.querySelector("img");
628
628
  expect(img).toBeDefined();
629
- expect(img!.src).toBe("blob:test-70");
629
+ expect(img!.src).toBe("blob:test-68");
630
630
  });
631
631
 
632
632
  it("should load the image when threshold is reached", async () => {
@@ -709,7 +709,7 @@ function loadContentPiecesFromCoValue(
709
709
  }
710
710
  }
711
711
 
712
- const pieces = core.verified.newContentSince(undefined) ?? [];
712
+ const pieces = core.newContentSince() ?? [];
713
713
 
714
714
  for (const piece of pieces) {
715
715
  contentPieces.push(piece);
@@ -1251,7 +1251,7 @@ describe("CoValueCoreSubscription", async () => {
1251
1251
  subscription.unsubscribe();
1252
1252
  });
1253
1253
 
1254
- test.skip("should wait for the full streaming of the parent group", async () => {
1254
+ test("should wait for the full streaming of the parent group", async () => {
1255
1255
  disableJazzTestSync();
1256
1256
 
1257
1257
  const alice = await createJazzTestAccount({
@@ -773,7 +773,7 @@ describe("FileStream large file loading", async () => {
773
773
 
774
774
  const loadedChunks = loadedStream.getChunks({ allowUnfinished: true });
775
775
  expect(loadedChunks).not.toBeNull();
776
- expect(loadedChunks?.finished).toBe(undefined);
776
+ expect(loadedChunks?.finished).toBeFalsy();
777
777
 
778
778
  expect(loadedStream.$jazz.raw.core.knownState()).not.toEqual(
779
779
  largeStream.$jazz.raw.core.knownState(),
@@ -337,7 +337,7 @@ test("should wait for the full streaming of the group", async () => {
337
337
  );
338
338
  });
339
339
 
340
- test.skip("should wait for the full streaming of the parent groups", async () => {
340
+ test("should wait for the full streaming of the parent groups", async () => {
341
341
  disableJazzTestSync();
342
342
 
343
343
  const alice = await createJazzTestAccount({