jazz-tools 0.7.0-alpha.4 → 0.7.0-alpha.7
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +22 -0
- package/dist/coValues/account.js +62 -29
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +139 -89
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +135 -151
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +131 -57
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/extensions/imageDef.js +10 -7
- package/dist/coValues/extensions/imageDef.js.map +1 -1
- package/dist/coValues/group.js +8 -30
- package/dist/coValues/group.js.map +1 -1
- package/dist/coValues/interfaces.js +7 -3
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/encoding.js +26 -0
- package/dist/implementation/encoding.js.map +1 -0
- package/dist/implementation/refs.js +11 -10
- package/dist/implementation/refs.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.js +1 -1
- package/dist/internal.js.map +1 -1
- package/dist/tests/coList.test.js +5 -9
- package/dist/tests/coList.test.js.map +1 -1
- package/dist/tests/coMap.test.js +87 -37
- package/dist/tests/coMap.test.js.map +1 -1
- package/dist/tests/coStream.test.js +46 -51
- package/dist/tests/coStream.test.js.map +1 -1
- package/package.json +2 -2
- package/src/coValues/account.ts +90 -60
- package/src/coValues/coList.ts +177 -114
- package/src/coValues/coMap.ts +191 -240
- package/src/coValues/coStream.ts +175 -97
- package/src/coValues/extensions/imageDef.ts +7 -12
- package/src/coValues/group.ts +24 -71
- package/src/coValues/interfaces.ts +10 -9
- package/src/implementation/encoding.ts +105 -0
- package/src/implementation/refs.ts +21 -20
- package/src/index.ts +3 -3
- package/src/internal.ts +1 -1
- package/src/tests/coList.test.ts +5 -9
- package/src/tests/coMap.test.ts +68 -52
- package/src/tests/coStream.test.ts +61 -66
- package/dist/implementation/schema.js +0 -6
- package/dist/implementation/schema.js.map +0 -1
- package/src/implementation/schema.ts +0 -69
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../src/coValues/coStream.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../src/coValues/coStream.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAWzC,OAAO,EACH,QAAQ,EACR,OAAO,EACP,WAAW,EACX,GAAG,EACH,OAAO,EACP,GAAG,EACH,UAAU,EACV,UAAU,GACb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAUxC,MAAM,OAAO,QACT,SAAQ,WAAW;IAGnB,MAAM,CAAC,EAAE,CACL,IAAuB;;QAEvB,YAAO,MAAM,UAAW,SAAQ,EAAc;gBAAvC;;oBACH,QAAW,GAAG,IAAI,CAAC;gBACvB,CAAC;aAAA;iBADI,GAAG,CAAC,KAAK;eACZ;IACN,CAAC;IAYD,IAAI,SAAS;QAGT,OAAQ,IAAI,CAAC,WAA+B,CAAC,SAAS,CAAC;IAC3D,CAAC;IAID,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IAID,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;IACrD,CAAC;IASD,YACI,IAAwB,EACxB,OAA8D;QAE9D,KAAK,EAAE,CAAC;QAER,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;YACvB,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;gBAC1B,EAAE,EAAE;oBACA,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE;oBACzB,UAAU,EAAE,KAAK;iBACpB;gBACD,IAAI,EAAE,EAAE,KAAK,EAA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EAAE,GAAG,CAAC,EAAE;gBACb,UAAU,EAAE,KAAK;aACpB;YACD,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE;SAC1C,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAC,OAET;QAGG,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;IAED,KAAK,CAAC,OAAyB;QAC3B,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,CAAC,IAAgB;QACjB,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED,GAAG;QACC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,CAAC;IAChC,CAAC;IAED,MAAM;QACF,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,GAAG,IAAI,CAAC,SAAS,EAAE;SACtB,CAAC;IACN,CAAC;IAED,CAAC,OAAO,CAAC;QACL,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
@@ -1,6 +1,13 @@
|
|
1
|
-
|
1
|
+
var _a;
|
2
|
+
import { BinaryCoStream, CoMap, val, subscriptionsScopes, } from "../../internal.js";
|
2
3
|
export class ImageDefinition extends CoMap {
|
3
|
-
|
4
|
+
constructor() {
|
5
|
+
super(...arguments);
|
6
|
+
this.originalSize = val.json();
|
7
|
+
this.placeholderDataURL = val.string;
|
8
|
+
this[_a] = val.ref(() => BinaryCoStream);
|
9
|
+
}
|
10
|
+
get highestResAvailable() {
|
4
11
|
if (!subscriptionsScopes.get(this)) {
|
5
12
|
console.warn("highestResAvailable() only makes sense when used within a subscription.");
|
6
13
|
}
|
@@ -28,9 +35,5 @@ export class ImageDefinition extends CoMap {
|
|
28
35
|
});
|
29
36
|
}
|
30
37
|
}
|
31
|
-
|
32
|
-
originalSize: "json",
|
33
|
-
placeholderDataURL: "json",
|
34
|
-
[indexSignature]: { ref: () => BinaryCoStream },
|
35
|
-
});
|
38
|
+
_a = val.items;
|
36
39
|
//# sourceMappingURL=imageDef.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,
|
1
|
+
{"version":3,"file":"imageDef.js","sourceRoot":"","sources":["../../../src/coValues/extensions/imageDef.ts"],"names":[],"mappings":";AAAA,OAAO,EACH,cAAc,EACd,KAAK,EACL,GAAG,EACH,mBAAmB,GACtB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,OAAO,eAAgB,SAAQ,KAAsB;IAA3D;;QACI,iBAAY,GAAG,GAAG,CAAC,IAAI,EAAoB,CAAC;QAC5C,uBAAkB,GAAI,GAAG,CAAC,MAAM,CAAC;QAEjC,QAAW,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC;IA2ChD,CAAC;IAxCG,IAAI,mBAAmB;QAGnB,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;YACjC,OAAO,CAAC,IAAI,CACR,yEAAyE,CAC5E,CAAC;QACN,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CACjD,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CACE,CAAC;QAE7B,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YACtB,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACvC,OAAO,MAAM,GAAG,MAAM,CAAC;QAC3B,CAAC,CAAC,CAAC;QAEH,IAAI,0BAA6D,CAAC;QAElE,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACnC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC;gBACpD,0BAA0B,GAAG,UAAU,CAAC;YAC5C,CAAC;iBAAM,CAAC;gBACJ,OAAO,CACH,0BAA0B,IAAI;oBAC1B,GAAG,EAAE,0BAA0B;oBAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;iBAC5C,CACJ,CAAC;YACN,CAAC;QACL,CAAC;QACD,OAAO,CACH,0BAA0B,IAAI;YAC1B,GAAG,EAAE,0BAA0B;YAC/B,MAAM,EAAE,IAAI,CAAC,0BAA0B,CAAE;SAC5C,CACJ,CAAC;IACN,CAAC;CACJ;KA3CI,GAAG,CAAC,KAAK"}
|
package/dist/coValues/group.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
var _a;
|
2
|
-
import { Account, CoMap, CoValueBase,
|
2
|
+
import { Account, CoMap, CoValueBase, Ref, val, isControlledAccount, AccountAndGroupProxyHandler, } from "../internal.js";
|
3
3
|
export class Profile extends CoMap {
|
4
|
+
constructor() {
|
5
|
+
super(...arguments);
|
6
|
+
this.name = val.string;
|
7
|
+
}
|
4
8
|
}
|
5
|
-
Profile.encoding({ name: "json" });
|
6
9
|
export class Group extends CoValueBase {
|
7
10
|
get _encoding() {
|
8
11
|
return this.constructor._encoding;
|
@@ -12,9 +15,9 @@ export class Group extends CoValueBase {
|
|
12
15
|
const rootID = this._raw.get("root");
|
13
16
|
return {
|
14
17
|
profile: profileID &&
|
15
|
-
new
|
18
|
+
new Ref(profileID, this._loadedAs, this._encoding.profile),
|
16
19
|
root: rootID &&
|
17
|
-
new
|
20
|
+
new Ref(rootID, this._loadedAs, this._encoding.root),
|
18
21
|
};
|
19
22
|
}
|
20
23
|
constructor(init, options) {
|
@@ -42,29 +45,8 @@ export class Group extends CoValueBase {
|
|
42
45
|
enumerable: false,
|
43
46
|
},
|
44
47
|
_raw: { value: raw, enumerable: false },
|
45
|
-
profile: {
|
46
|
-
get: () => {
|
47
|
-
const ref = this._refs.profile;
|
48
|
-
return ref ? ref.accessFrom(this) : undefined;
|
49
|
-
},
|
50
|
-
set: (value) => {
|
51
|
-
if (value) {
|
52
|
-
this._raw.set("profile", value.id);
|
53
|
-
}
|
54
|
-
},
|
55
|
-
},
|
56
|
-
root: {
|
57
|
-
get: () => {
|
58
|
-
const ref = this._refs.root;
|
59
|
-
return ref ? ref.accessFrom(this) : undefined;
|
60
|
-
},
|
61
|
-
set: (value) => {
|
62
|
-
if (value) {
|
63
|
-
this._raw.set("root", value.id);
|
64
|
-
}
|
65
|
-
},
|
66
|
-
},
|
67
48
|
});
|
49
|
+
return new Proxy(this, AccountAndGroupProxyHandler);
|
68
50
|
}
|
69
51
|
myRole() {
|
70
52
|
return this._raw.myRole();
|
@@ -72,10 +54,6 @@ export class Group extends CoValueBase {
|
|
72
54
|
addMember(member, role) {
|
73
55
|
this._raw.addMember(member === "everyone" ? member : member._raw, role);
|
74
56
|
}
|
75
|
-
static define(fields) {
|
76
|
-
this._encoding || (this._encoding = {});
|
77
|
-
Object.assign(this._encoding, fields);
|
78
|
-
}
|
79
57
|
}
|
80
58
|
_a = Group;
|
81
59
|
(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/coValues/group.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"group.js","sourceRoot":"","sources":["../../src/coValues/group.ts"],"names":[],"mappings":";AAEA,OAAO,EACH,OAAO,EACP,KAAK,EACL,WAAW,EACX,GAAG,EACH,GAAG,EACH,mBAAmB,EACnB,2BAA2B,GAC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BAAM,CAAC;gBACJ,MAAM,IAAI,KAAK,CACX,kDAAkD,CACrD,CAAC;YACN,CAAC;QACL,CAAC;QAED,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE;YAC1B,EAAE,EAAE;gBACA,KAAK,EAAE,GAAG,CAAC,EAAE;gBACb,UAAU,EAAE,KAAK;aACpB;YACD,IAAI,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE;SAC1C,CAAC,CAAC;QAEH,OAAO,IAAI,KAAK,CACZ,IAAI,EACJ,2BAAiD,CACpD,CAAC;IACN,CAAC;IAED,MAAM;QACF,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC9B,CAAC;IAED,SAAS,CAAC,MAA0B,EAAE,IAAU;QAC5C,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC;CACJ;;AA/GG;IACI,GAAK,SAAS,CAAC,KAAK,GAAG,OAAO,CAAC;AACnC,CAAC,GAAA,CAAA;AAcD;IACI,GAAK,SAAS,GAAG;QACb,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;QACvB,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KAChB,CAAC;IACT,MAAM,CAAC,cAAc,CAAC,GAAK,SAAS,EAAE,WAAW,EAAE;QAC/C,GAAG,EAAE,GAAG,EAAE,CAAC,GAAK,SAAS;KAC5B,CAAC,CAAC;AACP,CAAC,GAAA,CAAA"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Effect, Sink, Stream } from "effect";
|
2
2
|
import { RawAccount } from "cojson";
|
3
|
-
import { Account, AccountCtx, Group, SubscriptionScope,
|
3
|
+
import { Account, AccountCtx, Group, SubscriptionScope, Ref, inspect, } from "../internal.js";
|
4
4
|
export function isCoValue(value) {
|
5
5
|
return value && value._type !== undefined;
|
6
6
|
}
|
@@ -20,11 +20,15 @@ export class CoValueBase {
|
|
20
20
|
static loadEf(id) {
|
21
21
|
return Effect.gen(this, function* (_) {
|
22
22
|
const account = yield* _(AccountCtx);
|
23
|
-
return yield* _(new
|
23
|
+
return yield* _(new Ref(id, account, {
|
24
|
+
ref: () => this,
|
25
|
+
}).loadEf());
|
24
26
|
});
|
25
27
|
}
|
26
28
|
static load(id, options) {
|
27
|
-
return new
|
29
|
+
return new Ref(id, options.as, {
|
30
|
+
ref: () => this,
|
31
|
+
}).load(options?.onProgress && { onProgress: options.onProgress });
|
28
32
|
}
|
29
33
|
static subscribe(id, options, onUpdate) {
|
30
34
|
void Effect.runPromise(Effect.provideService(this.subscribeEf(id).pipe(Stream.run(Sink.forEach((update) => Effect.sync(() => onUpdate(update))))), AccountCtx, options.as));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/coValues/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,iBAAiB,EACjB,
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/coValues/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EACH,OAAO,EACP,UAAU,EACV,KAAK,EACL,iBAAiB,EACjB,GAAG,EACH,OAAO,GACV,MAAM,gBAAgB,CAAC;AAkExB,MAAM,UAAU,SAAS,CAAC,KAAU;IAChC,OAAO,KAAK,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,CAAC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4B,EACjC,EAAE,EAAE,EAAE,IAAI,CAAC,SAAS,EAAE,EACtB,QAAgD,CACnD,CAAC;IACN,CAAC;IAED,WAAW;QACP,OAAO,MAAM,CAAC,cAAc,CACvB,IAAI,CAAC,WAA6C,CAAC,WAAW,CAC3D,IAAI,CAAC,EAA4B,CACpC,EACD,UAAU,EACV,IAAI,CAAC,SAAS,CAC0C,CAAC;IACjE,CAAC;IAED,MAAM;QACF,OAAO;YACH,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,KAAK;YAChB,KAAK,EAAE,uBAAuB;SACjC,CAAC;IACN,CAAC;IAED,CAAC,OAAO,CAAC;QACL,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export const SchemaInit = Symbol.for("SchemaInit");
|
2
|
+
export const InitValues = Symbol.for("InitValues");
|
3
|
+
export const ItemsSym = Symbol.for("items");
|
4
|
+
export const val = {
|
5
|
+
string: { [SchemaInit]: "json" },
|
6
|
+
number: { [SchemaInit]: "json" },
|
7
|
+
boolean: { [SchemaInit]: "json" },
|
8
|
+
literal: (_lit) => {
|
9
|
+
return { [SchemaInit]: "json" };
|
10
|
+
},
|
11
|
+
json: () => {
|
12
|
+
return { [SchemaInit]: "json" };
|
13
|
+
},
|
14
|
+
encoded: (arg) => {
|
15
|
+
return { [SchemaInit]: { encoded: arg } };
|
16
|
+
},
|
17
|
+
ref: (arg) => {
|
18
|
+
return { [SchemaInit]: { ref: arg } };
|
19
|
+
},
|
20
|
+
items: ItemsSym,
|
21
|
+
};
|
22
|
+
import { Date } from "@effect/schema/Schema";
|
23
|
+
export const Encoders = {
|
24
|
+
Date,
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=encoding.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"encoding.js","sourceRoot":"","sources":["../../src/implementation/encoding.ts"],"names":[],"mappings":"AAYA,MAA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
+
export class Ref {
|
4
|
+
constructor(id, controlledAccount, encoding) {
|
5
5
|
this.id = id;
|
6
6
|
this.controlledAccount = controlledAccount;
|
7
|
-
this.
|
7
|
+
this.encoding = encoding;
|
8
|
+
if (!("ref" in encoding)) {
|
9
|
+
throw new Error("Ref must be constructed with a ref encoding");
|
10
|
+
}
|
8
11
|
}
|
9
12
|
get value() {
|
10
13
|
if (this.cachedValue)
|
@@ -12,9 +15,7 @@ export class ValueRef {
|
|
12
15
|
// TODO: cache it for object identity!!!
|
13
16
|
const raw = this.controlledAccount._raw.core.node.getLoaded(this.id);
|
14
17
|
if (raw) {
|
15
|
-
const value =
|
16
|
-
fromRaw: raw,
|
17
|
-
});
|
18
|
+
const value = this.encoding.ref(raw).fromRaw(raw);
|
18
19
|
this.cachedValue = value;
|
19
20
|
return value;
|
20
21
|
}
|
@@ -44,7 +45,7 @@ export class ValueRef {
|
|
44
45
|
return "unavailable";
|
45
46
|
}
|
46
47
|
else {
|
47
|
-
return new
|
48
|
+
return new Ref(this.id, this.controlledAccount, this.encoding).value;
|
48
49
|
}
|
49
50
|
}
|
50
51
|
async load(options) {
|
@@ -65,14 +66,14 @@ export class ValueRef {
|
|
65
66
|
return this.value;
|
66
67
|
}
|
67
68
|
}
|
68
|
-
export function makeRefs(getIdForKey, getKeysWithIds, controlledAccount,
|
69
|
+
export function makeRefs(getIdForKey, getKeysWithIds, controlledAccount, refEncodingForKey) {
|
69
70
|
const refs = {};
|
70
71
|
return new Proxy(refs, {
|
71
72
|
get(target, key) {
|
72
73
|
if (key === Symbol.iterator) {
|
73
74
|
return function* () {
|
74
75
|
for (const key of getKeysWithIds()) {
|
75
|
-
yield new
|
76
|
+
yield new Ref(getIdForKey(key), controlledAccount, refEncodingForKey(key));
|
76
77
|
}
|
77
78
|
};
|
78
79
|
}
|
@@ -84,7 +85,7 @@ export function makeRefs(getIdForKey, getKeysWithIds, controlledAccount, valueCo
|
|
84
85
|
const id = getIdForKey(key);
|
85
86
|
if (!id)
|
86
87
|
return undefined;
|
87
|
-
return new
|
88
|
+
return new Ref(id, controlledAccount, refEncodingForKey(key));
|
88
89
|
},
|
89
90
|
ownKeys() {
|
90
91
|
return getKeysWithIds().map((key) => key.toString());
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/implementation/refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../src/implementation/refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAUhC,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAErD,MAAM,OAAO,GAAG;IAGZ,YACa,EAAS,EACT,iBAA+B,EAC/B,QAAuB;QAFvB,OAAE,GAAF,EAAE,CAAO;QACT,sBAAiB,GAAjB,iBAAiB,CAAc;QAC/B,aAAQ,GAAR,QAAQ,CAAe;QAEhC,IAAI,CAAC,CAAC,KAAK,IAAI,QAAQ,CAAC,EAAE,CAAC;YACvB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACnE,CAAC;IACL,CAAC;IAED,IAAI,KAAK;QACL,IAAI,IAAI,CAAC,WAAW;YAAE,OAAO,IAAI,CAAC,WAAW,CAAC;QAC9C,wCAAwC;QACxC,MAAM,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CACvD,IAAI,CAAC,EAAiC,CACzC,CAAC;QACF,IAAI,GAAG,EAAE,CAAC;YACN,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;YACzB,OAAO,KAAK,CAAC;QACjB,CAAC;aAAM,CAAC;YACJ,OAAO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QACN,CAAC;QACD,OAAO;YACH,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,CAAC;KACJ,CAAC,CAAC;AACP,CAAC"}
|
package/dist/index.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
+
export {
|
1
2
|
/** @category Internal types */
|
2
|
-
|
3
|
-
export { Encoders } from "./internal.js";
|
4
|
-
export { CoMap
|
3
|
+
cojsonReady as jazzReady, cojsonInternals, MAX_RECOMMENDED_TX_SIZE, } from "cojson";
|
4
|
+
export { Encoders, val } from "./internal.js";
|
5
|
+
export { CoMap } from "./internal.js";
|
5
6
|
export { CoList } from "./internal.js";
|
6
7
|
export { CoStream, BinaryCoStream } from "./internal.js";
|
7
8
|
export { Group, Profile } from "./internal.js";
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,+BAA+B;AAC/B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACH,+BAA+B;AAC/B,WAAW,IAAI,SAAS,EAMxB,eAAe,EACf,uBAAuB,GAC1B,MAAM,QAAQ,CAAC;AAIhB,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAM,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAgB,MAAM,eAAe,CAAC"}
|
package/dist/internal.js
CHANGED
@@ -7,7 +7,7 @@ export * from "./coValues/coStream.js";
|
|
7
7
|
export * from "./coValues/group.js";
|
8
8
|
export * from "./implementation/errors.js";
|
9
9
|
export * from "./implementation/refs.js";
|
10
|
-
export * from "./implementation/
|
10
|
+
export * from "./implementation/encoding.js";
|
11
11
|
export * from "./implementation/subscriptionScope.js";
|
12
12
|
export * from "./coValues/extensions/imageDef.js";
|
13
13
|
//# sourceMappingURL=internal.js.map
|
package/dist/internal.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AAEzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uCAAuC,CAAC;AAEtD,cAAc,mCAAmC,CAAC"}
|
@@ -3,7 +3,7 @@ import { webcrypto } from "node:crypto";
|
|
3
3
|
import { connectedPeers } from "cojson/src/streamUtils.js";
|
4
4
|
import { newRandomSessionID } from "cojson/src/coValueCore.js";
|
5
5
|
import { Effect, Queue } from "effect";
|
6
|
-
import { Account, CoList, jazzReady } from "..";
|
6
|
+
import { Account, CoList, val, jazzReady } from "..";
|
7
7
|
if (!("crypto" in globalThis)) {
|
8
8
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
9
9
|
globalThis.crypto = webcrypto;
|
@@ -15,9 +15,8 @@ describe("Simple CoList operations", async () => {
|
|
15
15
|
const me = await Account.create({
|
16
16
|
name: "Hermes Puggington",
|
17
17
|
});
|
18
|
-
class TestList extends CoList {
|
18
|
+
class TestList extends CoList.Of(val.string) {
|
19
19
|
}
|
20
|
-
TestList.encoding({ _item: "json" });
|
21
20
|
const list = new TestList(["bread", "butter", "onion"], { owner: me });
|
22
21
|
test("Construction", () => {
|
23
22
|
expect(list[0]).toBe("bread");
|
@@ -102,18 +101,15 @@ describe("Simple CoList operations", async () => {
|
|
102
101
|
});
|
103
102
|
});
|
104
103
|
describe("CoList resolution", async () => {
|
105
|
-
class TwiceNestedList extends CoList {
|
104
|
+
class TwiceNestedList extends CoList.Of(val.string) {
|
106
105
|
joined() {
|
107
106
|
return this.join(",");
|
108
107
|
}
|
109
108
|
}
|
110
|
-
|
111
|
-
class NestedList extends CoList {
|
109
|
+
class NestedList extends CoList.Of(val.ref(() => TwiceNestedList)) {
|
112
110
|
}
|
113
|
-
|
114
|
-
class TestList extends CoList {
|
111
|
+
class TestList extends CoList.Of(val.ref(() => NestedList)) {
|
115
112
|
}
|
116
|
-
TestList.encoding({ _item: { ref: () => NestedList } });
|
117
113
|
const initNodeAndList = async () => {
|
118
114
|
const me = await Account.create({
|
119
115
|
name: "Hermes Puggington",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coList.test.js","sourceRoot":"","sources":["../../src/tests/coList.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAA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