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/.svelte-kit/__package__/media/image.svelte +1 -1
- package/.svelte-kit/__package__/tests/media/image.svelte.test.js +1 -1
- package/.turbo/turbo-build.log +51 -51
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-JXRJMGKV.js → chunk-OSQ7S47Q.js} +2 -2
- package/dist/chunk-OSQ7S47Q.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/svelte/media/image.svelte +1 -1
- package/dist/svelte/tests/media/image.svelte.test.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +4 -4
- package/src/media/create-image-factory.test.ts +2 -2
- package/src/svelte/media/image.svelte +1 -1
- package/src/svelte/tests/media/image.svelte.test.ts +1 -1
- package/src/tools/coValues/interfaces.ts +1 -1
- package/src/tools/tests/CoValueCoreSubscription.test.ts +1 -1
- package/src/tools/tests/coFeed.test.ts +1 -1
- package/src/tools/tests/load.test.ts +1 -1
- package/dist/chunk-JXRJMGKV.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
[
|
|
114
114
|
Uint8Array.from(
|
|
115
115
|
atob(
|
|
116
|
-
"
|
|
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-
|
|
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
package/package.json
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
"type": "module",
|
|
189
189
|
"license": "MIT",
|
|
190
|
-
"version": "0.18.
|
|
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.
|
|
208
|
-
"cojson-storage-indexeddb": "0.18.
|
|
209
|
-
"cojson-transport-ws": "0.18.
|
|
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,
|
|
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
|
-
"
|
|
207
|
+
"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=",
|
|
208
208
|
);
|
|
209
209
|
|
|
210
210
|
// Image 1920x400
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
[
|
|
114
114
|
Uint8Array.from(
|
|
115
115
|
atob(
|
|
116
|
-
"
|
|
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-
|
|
629
|
+
expect(img!.src).toBe("blob:test-68");
|
|
630
630
|
});
|
|
631
631
|
|
|
632
632
|
it("should load the image when threshold is reached", async () => {
|
|
@@ -1251,7 +1251,7 @@ describe("CoValueCoreSubscription", async () => {
|
|
|
1251
1251
|
subscription.unsubscribe();
|
|
1252
1252
|
});
|
|
1253
1253
|
|
|
1254
|
-
test
|
|
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).
|
|
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
|
|
340
|
+
test("should wait for the full streaming of the parent groups", async () => {
|
|
341
341
|
disableJazzTestSync();
|
|
342
342
|
|
|
343
343
|
const alice = await createJazzTestAccount({
|