jazz-tools 0.7.34-neverthrow.8 → 0.7.35-new-auth.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +0 -142
- package/CHANGELOG.md +18 -0
- package/dist/coValues/account.js +20 -35
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +14 -19
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +10 -16
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +14 -19
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/extensions/imageDef.js +3 -8
- package/dist/coValues/extensions/imageDef.js.map +1 -1
- package/dist/coValues/group.js +20 -23
- package/dist/coValues/group.js.map +1 -1
- package/dist/implementation/createContext.js +94 -0
- package/dist/implementation/createContext.js.map +1 -0
- package/dist/implementation/refs.js +3 -0
- package/dist/implementation/refs.js.map +1 -1
- package/dist/implementation/subscriptionScope.js +8 -5
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/internal.js +1 -0
- package/dist/internal.js.map +1 -1
- package/dist/tests/coList.test.js +23 -15
- package/dist/tests/coList.test.js.map +1 -1
- package/dist/tests/coMap.test.js +52 -97
- package/dist/tests/coMap.test.js.map +1 -1
- package/dist/tests/coStream.test.js +26 -22
- package/dist/tests/coStream.test.js.map +1 -1
- package/dist/tests/deepLoading.test.js +24 -36
- package/dist/tests/deepLoading.test.js.map +1 -1
- package/dist/tests/groupsAndAccounts.test.js +8 -22
- package/dist/tests/groupsAndAccounts.test.js.map +1 -1
- package/package.json +2 -2
- package/src/coValues/account.ts +5 -28
- package/src/coValues/coList.ts +4 -4
- package/src/coValues/coStream.ts +4 -4
- package/src/coValues/group.ts +2 -2
- package/src/coValues/interfaces.ts +4 -4
- package/src/implementation/createContext.ts +162 -0
- package/src/index.ts +8 -1
- package/src/internal.ts +2 -0
- package/src/tests/coList.test.ts +30 -14
- package/src/tests/coMap.test.ts +72 -68
- package/src/tests/coStream.test.ts +27 -21
- package/src/tests/deepLoading.test.ts +18 -13
- package/tsconfig.json +1 -1
package/dist/tests/coMap.test.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { expect, describe, test } from "vitest";
|
2
2
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { Account, Encoders, CoMap, co, WasmCrypto, isControlledAccount, cojsonInternals, createJazzContext, fixedCredentialsAuth, } from "../index.js";
|
4
|
+
import { randomSessionProvider } from "../internal.js";
|
5
5
|
const Crypto = await WasmCrypto.create();
|
6
6
|
describe("Simple CoMap operations", async () => {
|
7
7
|
const me = await Account.create({
|
@@ -9,18 +9,15 @@ describe("Simple CoMap operations", async () => {
|
|
9
9
|
crypto: Crypto,
|
10
10
|
});
|
11
11
|
class TestMap extends CoMap {
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
});
|
22
|
-
this.optionalDate = co.optional.encoded(Encoders.Date);
|
23
|
-
}
|
12
|
+
color = co.string;
|
13
|
+
_height = co.number;
|
14
|
+
birthday = co.encoded(Encoders.Date);
|
15
|
+
name = co.string;
|
16
|
+
nullable = co.optional.encoded({
|
17
|
+
encode: (value) => value || null,
|
18
|
+
decode: (value) => value || undefined,
|
19
|
+
});
|
20
|
+
optionalDate = co.optional.encoded(Encoders.Date);
|
24
21
|
get roughColor() {
|
25
22
|
return this.color + "ish";
|
26
23
|
}
|
@@ -97,11 +94,8 @@ describe("Simple CoMap operations", async () => {
|
|
97
94
|
});
|
98
95
|
});
|
99
96
|
class RecursiveMap extends CoMap {
|
100
|
-
|
101
|
-
|
102
|
-
this.name = co.string;
|
103
|
-
this.next = co.ref(RecursiveMap);
|
104
|
-
}
|
97
|
+
name = co.string;
|
98
|
+
next = co.ref(RecursiveMap);
|
105
99
|
}
|
106
100
|
const recursiveMap = RecursiveMap.create({
|
107
101
|
name: "first",
|
@@ -120,25 +114,16 @@ describe("Simple CoMap operations", async () => {
|
|
120
114
|
});
|
121
115
|
});
|
122
116
|
class MapWithEnumOfMaps extends CoMap {
|
123
|
-
|
124
|
-
|
125
|
-
this.name = co.string;
|
126
|
-
this.child = co.ref((raw) => raw.get("type") === "a" ? ChildA : ChildB);
|
127
|
-
}
|
117
|
+
name = co.string;
|
118
|
+
child = co.ref((raw) => raw.get("type") === "a" ? ChildA : ChildB);
|
128
119
|
}
|
129
120
|
class ChildA extends CoMap {
|
130
|
-
|
131
|
-
|
132
|
-
this.type = co.literal("a");
|
133
|
-
this.value = co.number;
|
134
|
-
}
|
121
|
+
type = co.literal("a");
|
122
|
+
value = co.number;
|
135
123
|
}
|
136
124
|
class ChildB extends CoMap {
|
137
|
-
|
138
|
-
|
139
|
-
this.type = co.literal("b");
|
140
|
-
this.value = co.string;
|
141
|
-
}
|
125
|
+
type = co.literal("b");
|
126
|
+
value = co.string;
|
142
127
|
}
|
143
128
|
const mapWithEnum = MapWithEnumOfMaps.create({
|
144
129
|
name: "enum",
|
@@ -154,54 +139,35 @@ describe("Simple CoMap operations", async () => {
|
|
154
139
|
expect(mapWithEnum.child?.id).toBeDefined();
|
155
140
|
});
|
156
141
|
class SuperClassMap extends CoMap {
|
157
|
-
|
158
|
-
super(...arguments);
|
159
|
-
this.name = co.string;
|
160
|
-
}
|
142
|
+
name = co.string;
|
161
143
|
}
|
162
144
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
163
145
|
class SubClassMap extends SuperClassMap {
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
this.value = co.number;
|
168
|
-
this.extra = co.ref(TestMap);
|
169
|
-
}
|
146
|
+
name = co.literal("specificString");
|
147
|
+
value = co.number;
|
148
|
+
extra = co.ref(TestMap);
|
170
149
|
}
|
171
150
|
class GenericMapWithLoose extends CoMap {
|
172
|
-
|
173
|
-
super(...arguments);
|
174
|
-
this.name = co.json();
|
175
|
-
}
|
151
|
+
name = co.json();
|
176
152
|
}
|
177
153
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
178
154
|
const loose = {};
|
179
155
|
});
|
180
156
|
describe("CoMap resolution", async () => {
|
181
|
-
var _a;
|
182
157
|
class TwiceNestedMap extends CoMap {
|
183
|
-
|
184
|
-
super(...arguments);
|
185
|
-
this.taste = co.string;
|
186
|
-
}
|
158
|
+
taste = co.string;
|
187
159
|
}
|
188
160
|
class NestedMap extends CoMap {
|
189
|
-
|
190
|
-
|
191
|
-
this.name = co.string;
|
192
|
-
this.twiceNested = co.ref(TwiceNestedMap);
|
193
|
-
}
|
161
|
+
name = co.string;
|
162
|
+
twiceNested = co.ref(TwiceNestedMap);
|
194
163
|
get _fancyName() {
|
195
164
|
return "Sir " + this.name;
|
196
165
|
}
|
197
166
|
}
|
198
167
|
class TestMap extends CoMap {
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
this.height = co.number;
|
203
|
-
this.nested = co.ref(NestedMap);
|
204
|
-
}
|
168
|
+
color = co.string;
|
169
|
+
height = co.number;
|
170
|
+
nested = co.ref(NestedMap);
|
205
171
|
get _roughColor() {
|
206
172
|
return this.color + "ish";
|
207
173
|
}
|
@@ -242,12 +208,13 @@ describe("CoMap resolution", async () => {
|
|
242
208
|
throw "me is not a controlled account";
|
243
209
|
}
|
244
210
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
245
|
-
const meOnSecondPeer = await
|
246
|
-
|
247
|
-
|
211
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
212
|
+
auth: fixedCredentialsAuth({
|
213
|
+
accountID: me.id,
|
214
|
+
secret: me._raw.agentSecret,
|
215
|
+
}),
|
216
|
+
sessionProvider: randomSessionProvider,
|
248
217
|
peersToLoadFrom: [initialAsPeer],
|
249
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
250
|
-
sessionID: newRandomSessionID(me.id),
|
251
218
|
crypto: Crypto,
|
252
219
|
});
|
253
220
|
const loadedMap = await TestMap.load(map.id, meOnSecondPeer, {});
|
@@ -285,12 +252,13 @@ describe("CoMap resolution", async () => {
|
|
285
252
|
throw "me is not a controlled account";
|
286
253
|
}
|
287
254
|
me._raw.core.node.syncManager.addPeer(secondAsPeer);
|
288
|
-
const meOnSecondPeer = await
|
289
|
-
|
290
|
-
|
255
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
256
|
+
auth: fixedCredentialsAuth({
|
257
|
+
accountID: me.id,
|
258
|
+
secret: me._raw.agentSecret,
|
259
|
+
}),
|
260
|
+
sessionProvider: randomSessionProvider,
|
291
261
|
peersToLoadFrom: [initialAsPeer],
|
292
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
293
|
-
sessionID: newRandomSessionID(me.id),
|
294
262
|
crypto: Crypto,
|
295
263
|
});
|
296
264
|
const queue = new cojsonInternals.Channel();
|
@@ -331,11 +299,8 @@ describe("CoMap resolution", async () => {
|
|
331
299
|
expect(update6.nested?.twiceNested?.taste).toEqual("umami");
|
332
300
|
});
|
333
301
|
class TestMapWithOptionalRef extends CoMap {
|
334
|
-
|
335
|
-
|
336
|
-
this.color = co.string;
|
337
|
-
this.nested = co.optional.ref(NestedMap);
|
338
|
-
}
|
302
|
+
color = co.string;
|
303
|
+
nested = co.optional.ref(NestedMap);
|
339
304
|
}
|
340
305
|
test("Construction with optional", async () => {
|
341
306
|
const me = await Account.create({
|
@@ -361,12 +326,8 @@ describe("CoMap resolution", async () => {
|
|
361
326
|
});
|
362
327
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
|
363
328
|
class TestRecord extends CoMap {
|
364
|
-
|
365
|
-
super(...arguments);
|
366
|
-
this[_a] = co.number;
|
367
|
-
}
|
329
|
+
[co.items] = co.number;
|
368
330
|
}
|
369
|
-
_a = co.items;
|
370
331
|
test("Construction with index signature", async () => {
|
371
332
|
const me = await Account.create({
|
372
333
|
creationProps: { name: "Hermes Puggington" },
|
@@ -433,21 +394,15 @@ describe("CoMap applyDiff", async () => {
|
|
433
394
|
crypto: Crypto,
|
434
395
|
});
|
435
396
|
class TestMap extends CoMap {
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
this.nested = co.ref(NestedMap);
|
443
|
-
this.optionalField = co.optional.string;
|
444
|
-
}
|
397
|
+
name = co.string;
|
398
|
+
age = co.number;
|
399
|
+
isActive = co.boolean;
|
400
|
+
birthday = co.encoded(Encoders.Date);
|
401
|
+
nested = co.ref(NestedMap);
|
402
|
+
optionalField = co.optional.string;
|
445
403
|
}
|
446
404
|
class NestedMap extends CoMap {
|
447
|
-
|
448
|
-
super(...arguments);
|
449
|
-
this.value = co.string;
|
450
|
-
}
|
405
|
+
value = co.string;
|
451
406
|
}
|
452
407
|
test("Basic applyDiff", () => {
|
453
408
|
const map = TestMap.create({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coMap.test.js","sourceRoot":"","sources":["../../src/tests/coMap.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACH,OAAO,EACP,QAAQ,EACR,KAAK,EACL,EAAE,EACF,UAAU,EACV,mBAAmB,EACnB,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAEzC,QAAQ,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;IAC3C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC;QAC5B,aAAa,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC5C,MAAM,EAAE,MAAM;KACjB,CAAC,CAAC;IAEH,MAAM,OAAQ,SAAQ,KAAK;QAA3B;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AE,KAAK,EAAE,EAAE,EAAE,CAAC;SACjE,EACD,EAAE,KAAK,EAAE,EAAE,EAAE,CAChB,CAAC;QAEF,MAAM,SAAS,GAAG;YACd,IAAI,EAAE,KAAK;YACX,YAAY,EAAE,wBAAwB;SACzC,CAAC;QACF,8DAA8D;QAC9D,GAAG,CAAC,SAAS,CAAC,SAAgB,CAAC,CAAC;QAEhC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QAChC,8DAA8D;QAC9D,MAAM,CAAE,GAAW,CAAC,YAAY,CAAC,CAAC,aAAa,EAAE,CAAC;IACtD,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { expect, describe, test } from "vitest";
|
2
2
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { BinaryCoStream, Account, CoStream, co, WasmCrypto, isControlledAccount, cojsonInternals, createJazzContext, fixedCredentialsAuth, } from "../index.js";
|
4
|
+
import { randomSessionProvider } from "../internal.js";
|
5
5
|
const Crypto = await WasmCrypto.create();
|
6
6
|
describe("Simple CoStream operations", async () => {
|
7
7
|
const me = await Account.create({
|
@@ -63,12 +63,13 @@ describe("CoStream resolution", async () => {
|
|
63
63
|
throw "me is not a controlled account";
|
64
64
|
}
|
65
65
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
66
|
-
const meOnSecondPeer = await
|
67
|
-
|
68
|
-
|
66
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
67
|
+
auth: fixedCredentialsAuth({
|
68
|
+
accountID: me.id,
|
69
|
+
secret: me._raw.agentSecret,
|
70
|
+
}),
|
71
|
+
sessionProvider: randomSessionProvider,
|
69
72
|
peersToLoadFrom: [initialAsPeer],
|
70
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
71
|
-
sessionID: newRandomSessionID(me.id),
|
72
73
|
crypto: Crypto,
|
73
74
|
});
|
74
75
|
const loadedStream = await TestStream.load(stream.id, meOnSecondPeer, []);
|
@@ -108,12 +109,13 @@ describe("CoStream resolution", async () => {
|
|
108
109
|
if (!isControlledAccount(me)) {
|
109
110
|
throw "me is not a controlled account";
|
110
111
|
}
|
111
|
-
const meOnSecondPeer = await
|
112
|
-
|
113
|
-
|
112
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
113
|
+
auth: fixedCredentialsAuth({
|
114
|
+
accountID: me.id,
|
115
|
+
secret: me._raw.agentSecret,
|
116
|
+
}),
|
117
|
+
sessionProvider: randomSessionProvider,
|
114
118
|
peersToLoadFrom: [initialAsPeer],
|
115
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
116
|
-
sessionID: newRandomSessionID(me.id),
|
117
119
|
crypto: Crypto,
|
118
120
|
});
|
119
121
|
const queue = new cojsonInternals.Channel();
|
@@ -205,12 +207,13 @@ describe("BinaryCoStream loading & Subscription", async () => {
|
|
205
207
|
throw "me is not a controlled account";
|
206
208
|
}
|
207
209
|
me._raw.core.node.syncManager.addPeer(secondAsPeer);
|
208
|
-
const meOnSecondPeer = await
|
209
|
-
|
210
|
-
|
210
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
211
|
+
auth: fixedCredentialsAuth({
|
212
|
+
accountID: me.id,
|
213
|
+
secret: me._raw.agentSecret,
|
214
|
+
}),
|
215
|
+
sessionProvider: randomSessionProvider,
|
211
216
|
peersToLoadFrom: [initialAsPeer],
|
212
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
213
|
-
sessionID: newRandomSessionID(me.id),
|
214
217
|
crypto: Crypto,
|
215
218
|
});
|
216
219
|
const loadedStream = await BinaryCoStream.load(stream.id, meOnSecondPeer, []);
|
@@ -228,12 +231,13 @@ describe("BinaryCoStream loading & Subscription", async () => {
|
|
228
231
|
if (!isControlledAccount(me)) {
|
229
232
|
throw "me is not a controlled account";
|
230
233
|
}
|
231
|
-
const meOnSecondPeer = await
|
232
|
-
|
233
|
-
|
234
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
235
|
+
auth: fixedCredentialsAuth({
|
236
|
+
accountID: me.id,
|
237
|
+
secret: me._raw.agentSecret,
|
238
|
+
}),
|
239
|
+
sessionProvider: randomSessionProvider,
|
234
240
|
peersToLoadFrom: [initialAsPeer],
|
235
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
236
|
-
sessionID: newRandomSessionID(me.id),
|
237
241
|
crypto: Crypto,
|
238
242
|
});
|
239
243
|
const queue = new cojsonInternals.Channel();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.test.js","sourceRoot":"","sources":["../../src/tests/coStream.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACH,cAAc,EAEd,OAAO,EACP,QAAQ,EACR,EAAE,EACF,UAAU,EACV,mBAAmB,EACnB,eAAe,GAClB,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC;AAEzC,QAAQ,CAAC,4BAA4B,EAAE,KAAK,IAAI,EAAE;IAC9C,MAAM,EAAE,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC;QAC5B,aAAa,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC5C,MAAM,EAAE,MAAM;KACjB,CAAC,CAAC;IACH,IAAI,CAAC,mBAAmB,CAAC,EAAE,CAAC,EAAE,CAAC;QAC3B,MAAM,gCAAgC,CAAC;IAC3C,CAAC;IACD,MAAM,UAAW,SAAQ,QAAQ,CAAC,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC;KAAG;IAElD,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM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GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QAC3C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;YACzD,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9D,cAAc,EAAE,SAAS;YACzB,QAAQ,EAAE,KAAK;SAClB,CAAC,CAAC;QAEH,MAAM,CAAC,GAAG,EAAE,CAAC;QAEb,MAAM,OAAO,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC;QAC3C,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC;YAChC,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,SAAS;YACnB,MAAM,EAAE,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;YAC9D,cAAc,EAAE,SAAS;YACzB,QAAQ,EAAE,IAAI;SACjB,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
@@ -1,30 +1,21 @@
|
|
1
1
|
const Crypto = await WasmCrypto.create();
|
2
2
|
import { expect, describe, test, expectTypeOf } from "vitest";
|
3
3
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
4
|
-
import { Account, CoList, CoMap, CoStream, WasmCrypto, co, Profile, isControlledAccount, } from "../index.js";
|
5
|
-
import {
|
4
|
+
import { Account, CoList, CoMap, CoStream, WasmCrypto, co, Profile, isControlledAccount, createJazzContext, fixedCredentialsAuth, } from "../index.js";
|
5
|
+
import { randomSessionProvider } from "../internal.js";
|
6
6
|
class TestMap extends CoMap {
|
7
|
-
|
8
|
-
|
9
|
-
this.list = co.ref(TestList);
|
10
|
-
this.optionalRef = co.ref(InnermostMap, { optional: true });
|
11
|
-
}
|
7
|
+
list = co.ref(TestList);
|
8
|
+
optionalRef = co.ref(InnermostMap, { optional: true });
|
12
9
|
}
|
13
10
|
class TestList extends CoList.Of(co.ref(() => InnerMap)) {
|
14
11
|
}
|
15
12
|
class InnerMap extends CoMap {
|
16
|
-
|
17
|
-
super(...arguments);
|
18
|
-
this.stream = co.ref(TestStream);
|
19
|
-
}
|
13
|
+
stream = co.ref(TestStream);
|
20
14
|
}
|
21
15
|
class TestStream extends CoStream.Of(co.ref(() => InnermostMap)) {
|
22
16
|
}
|
23
17
|
class InnermostMap extends CoMap {
|
24
|
-
|
25
|
-
super(...arguments);
|
26
|
-
this.value = co.string;
|
27
|
-
}
|
18
|
+
value = co.string;
|
28
19
|
}
|
29
20
|
describe("Deep loading with depth arg", async () => {
|
30
21
|
const me = await Account.create({
|
@@ -39,12 +30,13 @@ describe("Deep loading with depth arg", async () => {
|
|
39
30
|
throw "me is not a controlled account";
|
40
31
|
}
|
41
32
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
42
|
-
const meOnSecondPeer = await
|
43
|
-
|
44
|
-
|
33
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
34
|
+
auth: fixedCredentialsAuth({
|
35
|
+
accountID: me.id,
|
36
|
+
secret: me._raw.agentSecret,
|
37
|
+
}),
|
38
|
+
sessionProvider: randomSessionProvider,
|
45
39
|
peersToLoadFrom: [initialAsPeer],
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
47
|
-
sessionID: newRandomSessionID(me.id),
|
48
40
|
crypto: Crypto,
|
49
41
|
});
|
50
42
|
test("loading a deeply nested object will wait until all required refs are loaded", async () => {
|
@@ -89,8 +81,9 @@ describe("Deep loading with depth arg", async () => {
|
|
89
81
|
throw new Error("map4 is undefined");
|
90
82
|
}
|
91
83
|
expect(map4.list[0]?.stream).not.toBe(null);
|
92
|
-
|
93
|
-
expect(map4.list[0]?.stream?.
|
84
|
+
// TODO: why is this actually defined?
|
85
|
+
// expect(map4.list[0]?.stream?.[me.id]).toBe(undefined)
|
86
|
+
expect(map4.list[0]?.stream?.byMe?.value).toBe(null);
|
94
87
|
const map5 = await TestMap.load(map.id, meOnSecondPeer, {
|
95
88
|
list: [{ stream: [{}] }],
|
96
89
|
});
|
@@ -103,17 +96,11 @@ describe("Deep loading with depth arg", async () => {
|
|
103
96
|
});
|
104
97
|
});
|
105
98
|
class CustomProfile extends Profile {
|
106
|
-
|
107
|
-
super(...arguments);
|
108
|
-
this.stream = co.ref(TestStream);
|
109
|
-
}
|
99
|
+
stream = co.ref(TestStream);
|
110
100
|
}
|
111
101
|
class CustomAccount extends Account {
|
112
|
-
|
113
|
-
|
114
|
-
this.profile = co.ref(CustomProfile);
|
115
|
-
this.root = co.ref(TestMap);
|
116
|
-
}
|
102
|
+
profile = co.ref(CustomProfile);
|
103
|
+
root = co.ref(TestMap);
|
117
104
|
async migrate(creationProps) {
|
118
105
|
if (creationProps) {
|
119
106
|
this.profile = CustomProfile.create({
|
@@ -160,12 +147,13 @@ test("Deep loading a record-like coMap", async () => {
|
|
160
147
|
throw "me is not a controlled account";
|
161
148
|
}
|
162
149
|
me._raw.core.node.syncManager.addPeer(secondPeer);
|
163
|
-
const meOnSecondPeer = await
|
164
|
-
|
165
|
-
|
150
|
+
const { account: meOnSecondPeer } = await createJazzContext({
|
151
|
+
auth: fixedCredentialsAuth({
|
152
|
+
accountID: me.id,
|
153
|
+
secret: me._raw.agentSecret,
|
154
|
+
}),
|
155
|
+
sessionProvider: randomSessionProvider,
|
166
156
|
peersToLoadFrom: [initialAsPeer],
|
167
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
168
|
-
sessionID: newRandomSessionID(me.id),
|
169
157
|
crypto: Crypto,
|
170
158
|
});
|
171
159
|
const record = RecordLike.create({
|