jazz-tools 0.7.35-guest-auth.3 → 0.7.35-guest-auth.5
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/CHANGELOG.md +13 -0
- package/dist/coValues/account.js +8 -2
- package/dist/coValues/account.js.map +1 -1
- package/dist/coValues/coList.js +5 -2
- package/dist/coValues/coList.js.map +1 -1
- package/dist/coValues/coMap.js +2 -5
- package/dist/coValues/coMap.js.map +1 -1
- package/dist/coValues/coStream.js +12 -2
- package/dist/coValues/coStream.js.map +1 -1
- package/dist/coValues/interfaces.js +5 -2
- package/dist/coValues/interfaces.js.map +1 -1
- package/dist/implementation/createContext.js +1 -0
- package/dist/implementation/createContext.js.map +1 -1
- package/dist/implementation/refs.js.map +1 -1
- package/dist/implementation/subscriptionScope.js +4 -3
- package/dist/implementation/subscriptionScope.js.map +1 -1
- package/package.json +2 -2
- package/src/coValues/account.ts +9 -3
- package/src/coValues/coList.ts +5 -1
- package/src/coValues/coMap.ts +6 -11
- package/src/coValues/coStream.ts +12 -3
- package/src/coValues/interfaces.ts +8 -4
- package/src/implementation/createContext.ts +1 -0
- package/src/implementation/refs.ts +1 -1
- package/src/implementation/subscriptionScope.ts +28 -25
package/.turbo/turbo-build.log
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.7.35-
|
2
|
+
> jazz-tools@0.7.35-guest-auth.3 build /Users/anselm/jazz/jazz/packages/jazz-tools
|
3
3
|
> npm run lint && rm -rf ./dist && tsc --sourceMap --outDir dist
|
4
4
|
|
5
5
|
|
6
|
-
> jazz-tools@0.7.35-
|
6
|
+
> jazz-tools@0.7.35-guest-auth.3 lint
|
7
7
|
> eslint . --ext ts,tsx
|
8
8
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# jazz-autosub
|
2
2
|
|
3
|
+
## 0.7.35-guest-auth.5
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- Updated dependencies
|
8
|
+
- cojson@0.7.35-guest-auth.5
|
9
|
+
|
10
|
+
## 0.7.35-guest-auth.4
|
11
|
+
|
12
|
+
### Patch Changes
|
13
|
+
|
14
|
+
- Make anonymous auth work better
|
15
|
+
|
3
16
|
## 0.7.35-guest-auth.3
|
4
17
|
|
5
18
|
### Patch Changes
|
package/dist/coValues/account.js
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { LocalNode, cojsonInternals } from "cojson";
|
2
|
-
import {
|
2
|
+
import { RawAccount, } from "cojson";
|
3
|
+
import { CoMap, AnonymousJazzAgent, } from "../internal.js";
|
3
4
|
import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, loadCoValue, subscribeToCoValue, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
|
4
5
|
/** @category Identity & Permissions */
|
5
6
|
export class Account extends CoValueBase {
|
@@ -24,7 +25,12 @@ export class Account extends CoValueBase {
|
|
24
25
|
return this;
|
25
26
|
}
|
26
27
|
get _loadedAs() {
|
27
|
-
|
28
|
+
if (this.isMe)
|
29
|
+
return this;
|
30
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
31
|
+
return Account.fromRaw(this._raw.core.node.account);
|
32
|
+
}
|
33
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
28
34
|
}
|
29
35
|
get _refs() {
|
30
36
|
const profileID = this._raw.get("profile");
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACpD,OAAO,EAMH,UAAU,GAKb,MAAM,QAAQ,CAAC;AAChB,OAAO,EACH,KAAK,EASL,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M,CAAC,WAA4B,CAAC,OAAO,CAAC,GAAG,CAAC;gBAC7C,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACjC,OAAO,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;CACJ,CAAC;AAEF,uCAAuC;AACvC,MAAM,UAAU,mBAAmB,CAAC,OAAgB;IAKhD,OAAO,OAAO,CAAC,IAAI,CAAC;AACxB,CAAC"}
|
package/dist/coValues/coList.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RawAccount } from "cojson";
|
2
|
-
import { Account, Group, ItemsSym, Ref, SchemaInit, co, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, makeRefs, subscribeToCoValue, subscribeToExistingCoValue, subscriptionsScopes, } from "../internal.js";
|
2
|
+
import { Account, AnonymousJazzAgent, Group, ItemsSym, Ref, SchemaInit, co, ensureCoValueLoaded, inspect, isRefEncoded, loadCoValue, makeRefs, subscribeToCoValue, subscribeToExistingCoValue, subscriptionsScopes, } from "../internal.js";
|
3
3
|
/**
|
4
4
|
* CoLists are collaborative versions of plain arrays.
|
5
5
|
*
|
@@ -87,7 +87,10 @@ export class CoList extends Array {
|
|
87
87
|
throw new Error("Not implemented");
|
88
88
|
}
|
89
89
|
get _loadedAs() {
|
90
|
-
|
90
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
91
|
+
return Account.fromRaw(this._raw.core.node.account);
|
92
|
+
}
|
93
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
91
94
|
}
|
92
95
|
static get [Symbol.species]() {
|
93
96
|
return Array;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coList.js","sourceRoot":"","sources":["../../src/coValues/coList.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAapC,OAAO,E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,OAAO,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;QAC3D,CAAC;IACL,CAAC;IACD,GAAG,CAAC,MAAM,EAAE,GAAG;QACX,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;YAC1C,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC;QACtD,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;IACL,CAAC;CACJ,CAAC"}
|
package/dist/coValues/coMap.js
CHANGED
@@ -99,10 +99,6 @@ export class CoMap extends CoValueBase {
|
|
99
99
|
});
|
100
100
|
}
|
101
101
|
/** @internal */
|
102
|
-
get _loadedAs() {
|
103
|
-
return Account.fromNode(this._raw.core.node);
|
104
|
-
}
|
105
|
-
/** @internal */
|
106
102
|
constructor(
|
107
103
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
108
104
|
options) {
|
@@ -308,7 +304,8 @@ export class CoMap extends CoValueBase {
|
|
308
304
|
meta: null,
|
309
305
|
uniqueness: unique,
|
310
306
|
};
|
311
|
-
|
307
|
+
const crypto = as._type === "Anonymous" ? as.node.crypto : as._raw.core.crypto;
|
308
|
+
return cojsonInternals.idforHeader(header, crypto);
|
312
309
|
}
|
313
310
|
/**
|
314
311
|
* Given an already loaded `CoMap`, ensure that the specified fields are loaded to the specified depth.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coMap.js","sourceRoot":"","sources":["../../src/coValues/coMap.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,eAAe,GAIlB,MAAM,QAAQ,CAAC;AAahB,OAAO,EACH,OAAO,EACP,WAAW,EACX,GAAG,EACH,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AC;IACL,CAAC;IACD,GAAG,CAAC,MAAM,EAAE,GAAG;QACX,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,GAA6B,CAAC;YAC/D,MAAM,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAW,CAAC;QAE1C,IAAI,MAAM,CAAC,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,UAAU,EAAE,CAAC;YACvD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,SAAS,CAAC;QAC9C,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACpC,CAAC;IACL,CAAC;IACD,cAAc,CAAC,MAAM,EAAE,GAAG;QACtB,MAAM,UAAU,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,GAA6B,CAAC;YAC7D,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAW,CAAC;QACxC,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,UAAU,EAAE,CAAC;YACxC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC/C,CAAC;IACL,CAAC;CACJ,CAAC"}
|
@@ -19,11 +19,21 @@ export class CoStream extends CoValueBase {
|
|
19
19
|
return this.constructor._schema;
|
20
20
|
}
|
21
21
|
get byMe() {
|
22
|
-
|
22
|
+
if (this._loadedAs._type === "Account") {
|
23
|
+
return this[this._loadedAs.id];
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
return undefined;
|
27
|
+
}
|
23
28
|
}
|
24
29
|
perSession;
|
25
30
|
get inCurrentSession() {
|
26
|
-
|
31
|
+
if (this._loadedAs._type === "Account") {
|
32
|
+
return this.perSession[this._loadedAs.sessionID];
|
33
|
+
}
|
34
|
+
else {
|
35
|
+
return undefined;
|
36
|
+
}
|
27
37
|
}
|
28
38
|
constructor(options) {
|
29
39
|
super();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"coStream.js","sourceRoot":"","sources":["../../src/coValues/coStream.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAalE,OAAO,EACH,QAAQ,EACR,OAAO,EACP,WAAW,EACX,GAAG,EACH,OAAO,EACP,EAAE,EACF,UAAU,EACV,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,GAC7B,MAAM,gBAAgB,CAAC;AAcxB,yBAAyB;AACzB,8DAA8D;AAC9D,MAAM,OAAO,QAAqB,SAAQ,WAAW;IACjD,MAAM,CAAC,EAAE,CAAO,IAAsB;QAClC,OAAO,MAAM,UAAW,SAAQ,QAAc;YAC1C,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;SACrB,CAAC;IACN,CAAC;IAID;QACI,IAAI,CAAC,SAAS,CAAC,KAAK,GAAG,UAAU,CAAC;IACtC,CAAC;IAGD,wEAAwE;IACxE,CAAC,QAAQ,CAAC,CAAQ;IAClB,8DAA8D;IAC9D,MAAM,CAAC,OAAO,CAAM;IACpB,IAAI,OAAO;QAGP,OAAQ,IAAI,CAAC,WAA+B,CAAC,OAAO,CAAC;IACzD,CAAC;IAID,IAAI,IAAI;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC;IACD,UAAU,CAER;IACF,IAAI,gBAAgB;QAChB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,SAAU,CAAC,CAAC;IACtD,CAAC;IAED,YACI,OAE8B;QAE9B,KAAK,EAAE,CAAC;QAER,IAAI,OAAO,IAAI,SAAS,IAAI,OAAO,EAAE,CAAC;YA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,EAAS,EACT,EAAW,EACX,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,kBAAkB,CAAW,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IACvE,CAAC;IAED,uCAAuC;IACvC,YAAY,CAER,KAA0B;QAE1B,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5C,CAAC;IAED,uCAAuC;IACvC,SAAS,CAEL,KAA0B,EAC1B,QAAiD;QAEjD,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAC7D,CAAC;CACJ"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { RawAccount } from "cojson";
|
2
|
-
import { Account, Group, SubscriptionScope, Ref, inspect, subscriptionsScopes, } from "../internal.js";
|
2
|
+
import { Account, Group, SubscriptionScope, Ref, inspect, subscriptionsScopes, AnonymousJazzAgent, } from "../internal.js";
|
3
3
|
import { fulfillsDepth } from "./deepLoading.js";
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
5
5
|
export function isCoValue(value) {
|
@@ -25,7 +25,10 @@ export class CoValueBase {
|
|
25
25
|
}
|
26
26
|
/** @private */
|
27
27
|
get _loadedAs() {
|
28
|
-
|
28
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
29
|
+
return Account.fromRaw(this._raw.core.node.account);
|
30
|
+
}
|
31
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
29
32
|
}
|
30
33
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
31
34
|
constructor(..._args) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/coValues/interfaces.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EACH,OAAO,EACP,KAAK,EACL,iBAAiB,EACjB,GAAG,EACH,OAAO,EACP,mBAAmB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J,CAAC,CAAC;gBAEH,MAAM,OAAO,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;gBAE7C,MAAM,UAAU,CAAC,eAAe,CAAC;oBAC7B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,EAA4B;oBACpD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,WAAW;iBACnC,CAAC,CAAC;gBAEH,UAAU,CAAC,SAAS,EAAE,CAAC;gBAEvB,OAAO;oBACH,OAAO;oBACP,IAAI,EAAE,GAAG,EAAE;wBACP,IAAI,CAAC,gBAAgB,EAAE,CAAC;oBAC5B,CAAC;iBACJ,CAAC;YACN,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACT,UAAU,CAAC,OAAO,CACd,IAAI,KAAK,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CACpD,CAAC;YACN,CAAC;QACL,CAAC;IACL,CAAC;AACL,CAAC;AAED,MAAM,OAAO,kBAAkB;
|
1
|
+
{"version":3,"file":"createContext.js","sourceRoot":"","sources":["../../src/implementation/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAGH,eAAe,EAEf,SAAS,GAKZ,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAoB,MAAM,gBAAgB,CAAC;AAyB3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,WAGpC,EAAc,EAAE;IACb,OAAO;QACH,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAChB,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;SACpB,CAAC;KACL,CAAC;AACN,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACvC,SAAsB,EACtB,MAAsB;IAEtB,OAAO;QACH,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAChC,SAAoC,CACvC;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ACnB,OAAO,cAAc,EAAE,CAAC,MAAM,CAAC;YACnC,CAAC;YACD,MAAM,EAAE,GAAG,WAAW,CAAC,GAAW,CAAC,CAAC;YACpC,IAAI,CAAC,EAAE;gBAAE,OAAO,SAAS,CAAC;YAC1B,OAAO,IAAI,GAAG,CACV,EAAiB,EACjB,iBAAiB,EACjB,eAAe,CAAC,GAAW,CAAC,CAC/B,CAAC;QACN,CAAC;QACD,OAAO;YACH,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACzD,CAAC;QACD,wBAAwB,CAAC,MAAM,EAAE,GAAG;YAChC,MAAM,EAAE,GAAG,WAAW,CAAC,GAAW,CAAC,CAAC;YACpC,IAAI,EAAE,EAAE,CAAC;gBACL,OAAO;oBACH,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,IAAI;iBACjB,CAAC;YACN,CAAC;iBAAM,CAAC;gBACJ,OAAO,OAAO,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACzD,CAAC;QACL,CAAC;KACJ,CAAC,CAAC;AACP,CAAC"}
|
@@ -51,9 +51,10 @@ export class SubscriptionScope {
|
|
51
51
|
immediatelyUnsub: false,
|
52
52
|
};
|
53
53
|
this.entries.set(accessedOrSetId, loadingEntry);
|
54
|
-
|
55
|
-
.
|
56
|
-
.
|
54
|
+
const node = this.subscriber._type === "Account"
|
55
|
+
? this.subscriber._raw.core.node
|
56
|
+
: this.subscriber.node;
|
57
|
+
void node.loadCoValueCore(accessedOrSetId).then((core) => {
|
57
58
|
if (loadingEntry.state === "loading" &&
|
58
59
|
loadingEntry.immediatelyUnsub) {
|
59
60
|
return;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"
|
1
|
+
{"version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EAAE,IAAI,CAAC,CAAC;QACtC,CAAC;IACL,CAAC;IAED,cAAc;QACV,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;YACxC,IAAI,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;gBAC3B,KAAK,CAAC,QAAQ,EAAE,CAAC;YACrB,CAAC;iBAAM,CAAC;gBACJ,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAClC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;CACJ"}
|
package/package.json
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
"types": "./src/index.ts",
|
6
6
|
"type": "module",
|
7
7
|
"license": "MIT",
|
8
|
-
"version": "0.7.35-guest-auth.
|
8
|
+
"version": "0.7.35-guest-auth.5",
|
9
9
|
"dependencies": {
|
10
10
|
"fast-check": "^3.17.2",
|
11
|
-
"cojson": "0.7.35-
|
11
|
+
"cojson": "0.7.35-guest-auth.5"
|
12
12
|
},
|
13
13
|
"devDependencies": {
|
14
14
|
"typescript": "^5.3.3",
|
package/src/coValues/account.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { LocalNode, cojsonInternals } from "cojson";
|
2
|
-
import
|
2
|
+
import {
|
3
3
|
AgentSecret,
|
4
4
|
CoID,
|
5
5
|
CryptoProvider,
|
@@ -21,6 +21,7 @@ import {
|
|
21
21
|
RefIfCoValue,
|
22
22
|
DeeplyLoaded,
|
23
23
|
DepthsIn,
|
24
|
+
AnonymousJazzAgent,
|
24
25
|
} from "../internal.js";
|
25
26
|
import {
|
26
27
|
Group,
|
@@ -67,8 +68,13 @@ export class Account extends CoValueBase implements CoValue {
|
|
67
68
|
get _owner(): Account {
|
68
69
|
return this as Account;
|
69
70
|
}
|
70
|
-
get _loadedAs(): Account {
|
71
|
-
|
71
|
+
get _loadedAs(): Account | AnonymousJazzAgent {
|
72
|
+
if (this.isMe) return this;
|
73
|
+
|
74
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
75
|
+
return Account.fromRaw(this._raw.core.node.account);
|
76
|
+
}
|
77
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
72
78
|
}
|
73
79
|
|
74
80
|
declare profile: Profile | null;
|
package/src/coValues/coList.ts
CHANGED
@@ -14,6 +14,7 @@ import type {
|
|
14
14
|
} from "../internal.js";
|
15
15
|
import {
|
16
16
|
Account,
|
17
|
+
AnonymousJazzAgent,
|
17
18
|
Group,
|
18
19
|
ItemsSym,
|
19
20
|
Ref,
|
@@ -163,7 +164,10 @@ export class CoList<Item = any> extends Array<Item> implements CoValue {
|
|
163
164
|
}
|
164
165
|
|
165
166
|
get _loadedAs() {
|
166
|
-
|
167
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
168
|
+
return Account.fromRaw(this._raw.core.node.account);
|
169
|
+
}
|
170
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
167
171
|
}
|
168
172
|
|
169
173
|
static get [Symbol.species]() {
|
package/src/coValues/coMap.ts
CHANGED
@@ -15,6 +15,7 @@ import type {
|
|
15
15
|
DepthsIn,
|
16
16
|
DeeplyLoaded,
|
17
17
|
CoValueClass,
|
18
|
+
AnonymousJazzAgent,
|
18
19
|
} from "../internal.js";
|
19
20
|
import {
|
20
21
|
Account,
|
@@ -194,11 +195,6 @@ export class CoMap extends CoValueBase implements CoValue {
|
|
194
195
|
};
|
195
196
|
}
|
196
197
|
|
197
|
-
/** @internal */
|
198
|
-
get _loadedAs() {
|
199
|
-
return Account.fromNode(this._raw.core.node);
|
200
|
-
}
|
201
|
-
|
202
198
|
/** @internal */
|
203
199
|
constructor(
|
204
200
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -445,9 +441,9 @@ export class CoMap extends CoValueBase implements CoValue {
|
|
445
441
|
|
446
442
|
static findUnique<M extends CoMap>(
|
447
443
|
this: CoValueClass<M>,
|
448
|
-
unique: CoValueUniqueness[
|
444
|
+
unique: CoValueUniqueness["uniqueness"],
|
449
445
|
ownerID: ID<Account> | ID<Group>,
|
450
|
-
as: Account | Group,
|
446
|
+
as: Account | Group | AnonymousJazzAgent,
|
451
447
|
) {
|
452
448
|
const header = {
|
453
449
|
type: "comap" as const,
|
@@ -458,10 +454,9 @@ export class CoMap extends CoValueBase implements CoValue {
|
|
458
454
|
meta: null,
|
459
455
|
uniqueness: unique,
|
460
456
|
};
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
) as ID<M>;
|
457
|
+
const crypto =
|
458
|
+
as._type === "Anonymous" ? as.node.crypto : as._raw.core.crypto;
|
459
|
+
return cojsonInternals.idforHeader(header, crypto) as ID<M>;
|
465
460
|
}
|
466
461
|
|
467
462
|
/**
|
package/src/coValues/coStream.ts
CHANGED
@@ -20,6 +20,7 @@ import type {
|
|
20
20
|
CoValueClass,
|
21
21
|
DeeplyLoaded,
|
22
22
|
DepthsIn,
|
23
|
+
AnonymousJazzAgent,
|
23
24
|
} from "../internal.js";
|
24
25
|
import {
|
25
26
|
ItemsSym,
|
@@ -77,13 +78,21 @@ export class CoStream<Item = any> extends CoValueBase implements CoValue {
|
|
77
78
|
[key: ID<Account>]: CoStreamEntry<Item>;
|
78
79
|
|
79
80
|
get byMe(): CoStreamEntry<Item> | undefined {
|
80
|
-
|
81
|
+
if (this._loadedAs._type === "Account") {
|
82
|
+
return this[this._loadedAs.id];
|
83
|
+
} else {
|
84
|
+
return undefined;
|
85
|
+
}
|
81
86
|
}
|
82
87
|
perSession!: {
|
83
88
|
[key: SessionID]: CoStreamEntry<Item>;
|
84
89
|
};
|
85
90
|
get inCurrentSession(): CoStreamEntry<Item> | undefined {
|
86
|
-
|
91
|
+
if (this._loadedAs._type === "Account") {
|
92
|
+
return this.perSession[this._loadedAs.sessionID!];
|
93
|
+
} else {
|
94
|
+
return undefined;
|
95
|
+
}
|
87
96
|
}
|
88
97
|
|
89
98
|
constructor(
|
@@ -233,7 +242,7 @@ function entryFromRawEntry<Item>(
|
|
233
242
|
at: Date;
|
234
243
|
value: JsonValue;
|
235
244
|
},
|
236
|
-
loadedAs: Account,
|
245
|
+
loadedAs: Account | AnonymousJazzAgent,
|
237
246
|
accountID: ID<Account> | undefined,
|
238
247
|
itemField: Schema,
|
239
248
|
): Omit<CoStreamEntry<Item>, "all"> {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { CojsonInternalTypes, RawCoValue } from "cojson";
|
2
2
|
import { RawAccount } from "cojson";
|
3
|
-
import type {
|
3
|
+
import type { DeeplyLoaded, DepthsIn } from "../internal.js";
|
4
4
|
import {
|
5
5
|
Account,
|
6
6
|
Group,
|
@@ -8,6 +8,7 @@ import {
|
|
8
8
|
Ref,
|
9
9
|
inspect,
|
10
10
|
subscriptionsScopes,
|
11
|
+
AnonymousJazzAgent,
|
11
12
|
} from "../internal.js";
|
12
13
|
import { fulfillsDepth } from "./deepLoading.js";
|
13
14
|
|
@@ -35,7 +36,7 @@ export interface CoValue {
|
|
35
36
|
/** @category Internals */
|
36
37
|
_raw: RawCoValue;
|
37
38
|
/** @internal */
|
38
|
-
readonly _loadedAs: Account;
|
39
|
+
readonly _loadedAs: Account | AnonymousJazzAgent;
|
39
40
|
/** @category Stringifying & Inspection */
|
40
41
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
41
42
|
toJSON(key?: string, seenAbove?: ID<CoValue>[]): any[] | object | string;
|
@@ -86,7 +87,10 @@ export class CoValueBase implements CoValue {
|
|
86
87
|
|
87
88
|
/** @private */
|
88
89
|
get _loadedAs() {
|
89
|
-
|
90
|
+
if (this._raw.core.node.account instanceof RawAccount) {
|
91
|
+
return Account.fromRaw(this._raw.core.node.account);
|
92
|
+
}
|
93
|
+
return new AnonymousJazzAgent(this._raw.core.node);
|
90
94
|
}
|
91
95
|
|
92
96
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
@@ -134,7 +138,7 @@ export class CoValueBase implements CoValue {
|
|
134
138
|
export function loadCoValue<V extends CoValue, Depth>(
|
135
139
|
cls: CoValueClass<V>,
|
136
140
|
id: ID<V>,
|
137
|
-
as: Account,
|
141
|
+
as: Account | AnonymousJazzAgent,
|
138
142
|
depth: Depth & DepthsIn<V>,
|
139
143
|
): Promise<DeeplyLoaded<V, Depth> | undefined> {
|
140
144
|
return new Promise((resolve) => {
|
@@ -124,7 +124,7 @@ export class Ref<out V extends CoValue> {
|
|
124
124
|
export function makeRefs<Keys extends string | number>(
|
125
125
|
getIdForKey: (key: Keys) => ID<CoValue> | undefined,
|
126
126
|
getKeysWithIds: () => Keys[],
|
127
|
-
controlledAccount: Account,
|
127
|
+
controlledAccount: Account | AnonymousJazzAgent,
|
128
128
|
refSchemaForKey: (key: Keys) => RefEncoded<CoValue>,
|
129
129
|
): { [K in Keys]: Ref<CoValue> } & {
|
130
130
|
[Symbol.iterator]: () => IterableIterator<Ref<CoValue>>;
|
@@ -5,6 +5,7 @@ import type {
|
|
5
5
|
ID,
|
6
6
|
CoValueClass,
|
7
7
|
CoValueFromRaw,
|
8
|
+
AnonymousJazzAgent,
|
8
9
|
} from "../internal.js";
|
9
10
|
|
10
11
|
export const subscriptionsScopes = new WeakMap<
|
@@ -17,7 +18,7 @@ const TRACE_INVALIDATIONS = false;
|
|
17
18
|
|
18
19
|
export class SubscriptionScope<Root extends CoValue> {
|
19
20
|
scopeID: string = `scope-${Math.random().toString(36).slice(2)}`;
|
20
|
-
subscriber: Account;
|
21
|
+
subscriber: Account | AnonymousJazzAgent;
|
21
22
|
entries = new Map<
|
22
23
|
ID<CoValue>,
|
23
24
|
| { state: "loading"; immediatelyUnsub?: boolean }
|
@@ -89,32 +90,34 @@ export class SubscriptionScope<Root extends CoValue> {
|
|
89
90
|
immediatelyUnsub: false,
|
90
91
|
} as const;
|
91
92
|
this.entries.set(accessedOrSetId, loadingEntry);
|
92
|
-
|
93
|
-
.
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
93
|
+
const node =
|
94
|
+
this.subscriber._type === "Account"
|
95
|
+
? this.subscriber._raw.core.node
|
96
|
+
: this.subscriber.node;
|
97
|
+
void node.loadCoValueCore(accessedOrSetId).then((core) => {
|
98
|
+
if (
|
99
|
+
loadingEntry.state === "loading" &&
|
100
|
+
loadingEntry.immediatelyUnsub
|
101
|
+
) {
|
102
|
+
return;
|
103
|
+
}
|
104
|
+
if (core !== "unavailable") {
|
105
|
+
const entry = {
|
106
|
+
state: "loaded" as const,
|
107
|
+
rawUnsub: () => {}, // placeholder
|
108
|
+
};
|
109
|
+
this.entries.set(accessedOrSetId, entry);
|
107
110
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
111
|
+
const rawUnsub = core.subscribe((rawUpdate) => {
|
112
|
+
// console.log("ref update", this.scopeID, accessedOrSetId, JSON.stringify(rawUpdate))
|
113
|
+
if (!rawUpdate) return;
|
114
|
+
this.invalidate(accessedOrSetId);
|
115
|
+
this.scheduleUpdate();
|
116
|
+
});
|
114
117
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
+
entry.rawUnsub = rawUnsub;
|
119
|
+
}
|
120
|
+
});
|
118
121
|
}
|
119
122
|
}
|
120
123
|
|