jazz-tools 0.8.19-group-inheritance.0 → 0.8.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. package/CHANGELOG.md +11 -4
  2. package/dist/native/coValues/account.js +15 -17
  3. package/dist/native/coValues/account.js.map +1 -1
  4. package/dist/native/coValues/coList.js +14 -11
  5. package/dist/native/coValues/coList.js.map +1 -1
  6. package/dist/native/coValues/coMap.js +12 -8
  7. package/dist/native/coValues/coMap.js.map +1 -1
  8. package/dist/native/coValues/coStream.js +14 -11
  9. package/dist/native/coValues/coStream.js.map +1 -1
  10. package/dist/native/coValues/extensions/imageDef.js +8 -3
  11. package/dist/native/coValues/extensions/imageDef.js.map +1 -1
  12. package/dist/native/coValues/group.js +23 -28
  13. package/dist/native/coValues/group.js.map +1 -1
  14. package/dist/native/implementation/createContext.js +1 -2
  15. package/dist/native/implementation/createContext.js.map +1 -1
  16. package/dist/native/implementation/refs.js +0 -3
  17. package/dist/native/implementation/refs.js.map +1 -1
  18. package/dist/native/implementation/subscriptionScope.js +5 -8
  19. package/dist/native/implementation/subscriptionScope.js.map +1 -1
  20. package/dist/web/coValues/account.js +15 -17
  21. package/dist/web/coValues/account.js.map +1 -1
  22. package/dist/web/coValues/coList.js +14 -11
  23. package/dist/web/coValues/coList.js.map +1 -1
  24. package/dist/web/coValues/coMap.js +12 -8
  25. package/dist/web/coValues/coMap.js.map +1 -1
  26. package/dist/web/coValues/coStream.js +14 -11
  27. package/dist/web/coValues/coStream.js.map +1 -1
  28. package/dist/web/coValues/extensions/imageDef.js +8 -3
  29. package/dist/web/coValues/extensions/imageDef.js.map +1 -1
  30. package/dist/web/coValues/group.js +23 -28
  31. package/dist/web/coValues/group.js.map +1 -1
  32. package/dist/web/implementation/createContext.js +1 -2
  33. package/dist/web/implementation/createContext.js.map +1 -1
  34. package/dist/web/implementation/refs.js +0 -3
  35. package/dist/web/implementation/refs.js.map +1 -1
  36. package/dist/web/implementation/subscriptionScope.js +5 -8
  37. package/dist/web/implementation/subscriptionScope.js.map +1 -1
  38. package/package.json +2 -2
  39. package/src/coValues/group.ts +0 -10
  40. package/src/tests/groupsAndAccounts.test.ts +0 -93
  41. package/tsconfig.json +1 -1
  42. package/.turbo/turbo-build.log +0 -12
  43. package/.turbo/turbo-lint.log +0 -4
  44. package/.turbo/turbo-test.log +0 -144
@@ -1 +1 @@
1
- {"version":3,"file":"createContext.js","sourceRoot":"","sources":["../../../src/implementation/createContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EAEf,SAAS,GAKV,MAAM,QAAQ,CAAC;AAChB,OAAO,EAAE,OAAO,EAAoB,MAAM,gBAAgB,CAAC;AA8B3D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,WAGpC,EAAc,EAAE;IACf,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,UAAU;YAChB,WAAW;YACX,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAe,EAAE;IACvD,OAAO;QACL,KAAK,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YAClB,IAAI,EAAE,KAAK;YACX,aAAa,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;YACpC,eAAe,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;YAC/B,SAAS,EAAE,GAAG,EAAE,GAAE,CAAC;YACnB,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;YACjB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;SACjB,CAAC;KACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,qBAAqB,CACzC,SAAsB,EACtB,MAAsB;I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,IAAI,kBAAkB,CAAC,IAAI,CAAC;QACnC,IAAI,EAAE,GAAG,EAAE,GAAE,CAAC;QACd,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;KACjB,CAAC;AACJ,CAAC"}
@@ -2,9 +2,6 @@ import { instantiateRefEncoded, isRefEncoded, subscriptionsScopes, } from "../in
2
2
  import { coValuesCache } from "../lib/cache.js";
3
3
  const TRACE_ACCESSES = false;
4
4
  export class Ref {
5
- id;
6
- controlledAccount;
7
- schema;
8
5
  constructor(id, controlledAccount, schema) {
9
6
  this.id = id;
10
7
  this.controlledAccount = controlledAccount;
@@ -1 +1 @@
1
- {"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/implementation/refs.ts"],"names":[],"mappings":"AASA,OAAO,EACL,qBAAqB,EACrB,YAAY,EACZ,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,cAAc,GAAG,KAAK,CAAC;AAE7B,MAAM,OAAO,GAAG;IAEH;IACA;IACA;IAHX,YACW,EAAS,EACT,iBAA+C,EAC/C,MAAqB;QAFrB,OAAE,GAAF,EAAE,CAAO;QACT,sBAAiB,GAAjB,iBAAiB,CAA8B;QAC/C,WAAM,GAAN,MAAM,CAAe;QAE9B,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;IAED,IAAI,KAAK;QACP,MAAM,IAAI,GACR,MAAM,IAAI,IAAI,CAAC,iBAAiB;YAC9B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI;YAC7B,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;QAC5C,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAiC,CAAC,CAAC;QACnE,I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AAC,CAAC;YACpC,IAAI,CAAC,EAAE;gBAAE,OAAO,SAAS,CAAC;YAC1B,OAAO,IAAI,GAAG,CACZ,EAAiB,EACjB,iBAAiB,EACjB,eAAe,CAAC,GAAW,CAAC,CAC7B,CAAC;QACJ,CAAC;QACD,OAAO;YACL,OAAO,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,wBAAwB,CAAC,MAAM,EAAE,GAAG;YAClC,MAAM,EAAE,GAAG,WAAW,CAAC,GAAW,CAAC,CAAC;YACpC,IAAI,EAAE,EAAE,CAAC;gBACP,OAAO;oBACL,UAAU,EAAE,IAAI;oBAChB,YAAY,EAAE,IAAI;oBAClB,QAAQ,EAAE,IAAI;iBACf,CAAC;YACJ,CAAC;iBAAM,CAAC;gBACN,OAAO,OAAO,CAAC,wBAAwB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -1,15 +1,12 @@
1
1
  export const subscriptionsScopes = new WeakMap();
2
2
  const TRACE_INVALIDATIONS = false;
3
3
  export class SubscriptionScope {
4
- scopeID = `scope-${Math.random().toString(36).slice(2)}`;
5
- subscriber;
6
- entries = new Map();
7
- rootEntry;
8
- scheduleUpdate;
9
- scheduledUpdate = false;
10
- cachedValues = {};
11
- parents = {};
12
4
  constructor(root, rootSchema, onUpdate) {
5
+ this.scopeID = `scope-${Math.random().toString(36).slice(2)}`;
6
+ this.entries = new Map();
7
+ this.scheduledUpdate = false;
8
+ this.cachedValues = {};
9
+ this.parents = {};
13
10
  this.rootEntry = {
14
11
  state: "loaded",
15
12
  value: root._raw,
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptionScope.js","sourceRoot":"","sources":["../../../src/implementation/subscriptionScope.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI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AAQ,EAAE,CAAC;gBAC7B,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnB,CAAC;iBAAM,CAAC;gBACN,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;YAChC,CAAC;QACH,CAAC;QACD,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC;IACvB,CAAC;CACF"}
package/package.json CHANGED
@@ -19,10 +19,10 @@
19
19
  },
20
20
  "type": "module",
21
21
  "license": "MIT",
22
- "version": "0.8.19-group-inheritance.0",
22
+ "version": "0.8.21",
23
23
  "dependencies": {
24
24
  "fast-check": "^3.17.2",
25
- "cojson": "0.8.19-group-inheritance.0"
25
+ "cojson": "0.8.21"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "^5.3.3",
@@ -142,11 +142,6 @@ export class Group extends CoValueBase implements CoValue {
142
142
  return this;
143
143
  }
144
144
 
145
- removeMember(member: Everyone | Account) {
146
- this._raw.removeMember(member === "everyone" ? member : member._raw);
147
- return this;
148
- }
149
-
150
145
  get members() {
151
146
  return this._raw
152
147
  .keys()
@@ -177,11 +172,6 @@ export class Group extends CoValueBase implements CoValue {
177
172
  });
178
173
  }
179
174
 
180
- extend(parent: Group) {
181
- this._raw.extend(parent._raw);
182
- return this;
183
- }
184
-
185
175
  /** @category Subscription & Loading */
186
176
  static load<G extends Group, Depth>(
187
177
  this: CoValueClass<G>,
@@ -1,4 +1,3 @@
1
- import { RawGroup } from "cojson";
2
1
  import { describe, expect, test } from "vitest";
3
2
  import { Account, CoMap, Group, WasmCrypto, co } from "../index.web.js";
4
3
 
@@ -86,95 +85,3 @@ describe("Custom accounts and groups", async () => {
86
85
  expect(map._owner.castAs(CustomGroup).nMembers).toBe(2);
87
86
  });
88
87
  });
89
-
90
- describe("Group inheritance", () => {
91
- class TestMap extends CoMap {
92
- title = co.string;
93
- }
94
-
95
- test("Group inheritance", async () => {
96
- const me = await Account.create({
97
- creationProps: { name: "Hermes Puggington" },
98
- crypto: Crypto,
99
- });
100
-
101
- const parentGroup = Group.create({ owner: me });
102
- const group = Group.create({ owner: me });
103
-
104
- group.extend(parentGroup);
105
-
106
- console.log(
107
- group.id,
108
- group._raw.core.getDependedOnCoValuesUncached(),
109
- parentGroup.id,
110
- );
111
-
112
- console.log(
113
- (group._raw.core.getCurrentContent() as RawGroup)
114
- .keys()
115
- .filter((k) => k.startsWith("parent_"))
116
- .map((k) => k.replace("parent_", "")),
117
- );
118
-
119
- const reader = await Account.createAs(me, {
120
- creationProps: { name: "Reader" },
121
- });
122
-
123
- parentGroup.addMember(reader, "reader");
124
-
125
- const mapInChild = TestMap.create({ title: "In Child" }, { owner: group });
126
-
127
- const mapAsReader = await TestMap.load(mapInChild.id, reader, {});
128
- expect(mapAsReader?.title).toBe("In Child");
129
-
130
- parentGroup.removeMember(reader);
131
-
132
- mapInChild.title = "In Child (updated)";
133
-
134
- const mapAsReaderAfterUpdate = await TestMap.load(
135
- mapInChild.id,
136
- reader,
137
- {},
138
- );
139
- expect(mapAsReaderAfterUpdate?.title).toBe("In Child");
140
- });
141
-
142
- test("Group inheritance with grand-children", async () => {
143
- const me = await Account.create({
144
- creationProps: { name: "Hermes Puggington" },
145
- crypto: Crypto,
146
- });
147
-
148
- const grandParentGroup = Group.create({ owner: me });
149
- const parentGroup = Group.create({ owner: me });
150
- const group = Group.create({ owner: me });
151
-
152
- group.extend(parentGroup);
153
- parentGroup.extend(grandParentGroup);
154
-
155
- const reader = await Account.createAs(me, {
156
- creationProps: { name: "Reader" },
157
- });
158
-
159
- grandParentGroup.addMember(reader, "reader");
160
-
161
- const mapInGrandChild = TestMap.create(
162
- { title: "In Grand Child" },
163
- { owner: group },
164
- );
165
-
166
- const mapAsReader = await TestMap.load(mapInGrandChild.id, reader, {});
167
- expect(mapAsReader?.title).toBe("In Grand Child");
168
-
169
- grandParentGroup.removeMember(reader);
170
-
171
- mapInGrandChild.title = "In Grand Child (updated)";
172
-
173
- const mapAsReaderAfterUpdate = await TestMap.load(
174
- mapInGrandChild.id,
175
- reader,
176
- {},
177
- );
178
- expect(mapAsReaderAfterUpdate?.title).toBe("In Grand Child");
179
- });
180
- });
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "lib": ["ESNext"],
4
4
  "module": "esnext",
5
- "target": "es2022",
5
+ "target": "ES2021",
6
6
  "moduleResolution": "bundler",
7
7
  "moduleDetection": "force",
8
8
  "strict": true,
@@ -1,12 +0,0 @@
1
-
2
- > jazz-tools@0.8.18 build /Users/anselm/jazz/jazz/packages/jazz-tools
3
- > rm -rf ./dist && pnpm run build:web && pnpm run build:native
4
-
5
-
6
- > jazz-tools@0.8.18 build:web /Users/anselm/jazz/jazz/packages/jazz-tools
7
- > tsc --sourceMap --outDir dist/web -p tsconfig.web.json
8
-
9
-
10
- > jazz-tools@0.8.18 build:native /Users/anselm/jazz/jazz/packages/jazz-tools
11
- > tsc --sourceMap --outDir dist/native -p tsconfig.native.json
12
-
@@ -1,4 +0,0 @@
1
-
2
- > jazz-tools@0.7.35-guest-auth.5 lint /Users/anselm/jazz/jazz/packages/jazz-tools
3
- > eslint . --ext ts,tsx
4
-
@@ -1,144 +0,0 @@
1
-
2
- > jazz-tools@0.7.35-unique.2 test /Users/anselm/jazz/jazz/packages/jazz-tools
3
- > vitest --run
4
-
5
-
6
- RUN v0.34.6 /Users/anselm/jazz/jazz/packages/jazz-tools
7
-
8
- ✓ src/tests/groupsAndAccounts.test.ts (1 test) 64ms
9
- stdout | unknown test
10
- TestMap schema undefined
11
-
12
- ✓ src/tests/deepLoading.test.ts (3 tests) 83ms
13
- stdout | src/tests/coList.test.ts > Simple CoList operations > Mutation > splice
14
- [ 'bread', 'onion' ] 0
15
- [ 'bread', 'salt', 'onion' ] 1
16
-
17
- stdout | src/tests/coList.test.ts > CoList resolution > Subscription & auto-resolution
18
- subscribedList?.[0]?.[0]?.[0] undefined
19
- subscribedList?.[0]?.[0]?.[0] undefined
20
- subscribedList?.[0]?.[0]?.[0] a
21
- subscribedList?.[0]?.[0]?.[0] x
22
- subscribedList?.[0]?.[0]?.[0] y
23
- subscribedList?.[0]?.[0]?.[0] w
24
-
25
- ✓ src/tests/coList.test.ts (10 tests) 190ms
26
- stdout | src/tests/coStream.test.ts > CoStream resolution > Subscription & auto-resolution
27
- subscribedStream[me.id] {
28
- value: [Getter],
29
- ref: [Getter],
30
- by: [Getter],
31
- madeAt: 2024-09-05T17:35:38.414Z,
32
- tx: {
33
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF',
34
- txIndex: 0
35
- }
36
- }
37
- subscribedStream[me.id]?.value?.[me.id]?.value undefined
38
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
39
- subscribedStream[me.id] {
40
- value: [Getter],
41
- ref: [Getter],
42
- by: [Getter],
43
- madeAt: 2024-09-05T17:35:38.414Z,
44
- tx: {
45
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF',
46
- txIndex: 0
47
- }
48
- }
49
- subscribedStream[me.id]?.value?.[me.id]?.value null
50
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value undefined
51
- subscribedStream[me.id] {
52
- value: [Getter],
53
- ref: [Getter],
54
- by: [Getter],
55
- madeAt: 2024-09-05T17:35:38.414Z,
56
- tx: {
57
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF',
58
- txIndex: 0
59
- }
60
- }
61
- subscribedStream[me.id]?.value?.[me.id]?.value {
62
- id: 'co_zHELVqRmAN6YuGDpKqVrSXJ5qe1',
63
- _type: 'CoStream',
64
- perSession: undefined,
65
- co_zURWEpvoH1e35FGHVxadgXKU8Ri: 'milk',
66
- in: { co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF: 'milk' }
67
- }
68
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value milk
69
- subscribedStream[me.id] {
70
- value: [Getter],
71
- ref: [Getter],
72
- by: [Getter],
73
- madeAt: 2024-09-05T17:35:38.414Z,
74
- tx: {
75
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF',
76
- txIndex: 0
77
- }
78
- }
79
- subscribedStream[me.id]?.value?.[me.id]?.value {
80
- id: 'co_zHELVqRmAN6YuGDpKqVrSXJ5qe1',
81
- _type: 'CoStream',
82
- perSession: undefined,
83
- co_zURWEpvoH1e35FGHVxadgXKU8Ri: 'bread',
84
- in: {
85
- co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_ziAMdGVstAxF: 'milk',
86
- co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_zgik2JjD86Qa: 'bread'
87
- }
88
- }
89
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value bread
90
- subscribedStream[me.id] {
91
- value: [Getter],
92
- ref: [Getter],
93
- by: [Getter],
94
- madeAt: 2024-09-05T17:35:38.424Z,
95
- tx: {
96
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_zgik2JjD86Qa',
97
- txIndex: 0
98
- }
99
- }
100
- subscribedStream[me.id]?.value?.[me.id]?.value {
101
- id: 'co_zJmdvJY15XJkWF3n3rwPgGfebxa',
102
- _type: 'CoStream',
103
- perSession: undefined,
104
- co_zURWEpvoH1e35FGHVxadgXKU8Ri: 'butter',
105
- in: { co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_zgik2JjD86Qa: 'butter' }
106
- }
107
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value butter
108
- subscribedStream[me.id] {
109
- value: [Getter],
110
- ref: [Getter],
111
- by: [Getter],
112
- madeAt: 2024-09-05T17:35:38.424Z,
113
- tx: {
114
- sessionID: 'co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_zgik2JjD86Qa',
115
- txIndex: 0
116
- }
117
- }
118
- subscribedStream[me.id]?.value?.[me.id]?.value {
119
- id: 'co_zJmdvJY15XJkWF3n3rwPgGfebxa',
120
- _type: 'CoStream',
121
- perSession: undefined,
122
- co_zURWEpvoH1e35FGHVxadgXKU8Ri: 'jam',
123
- in: { co_zURWEpvoH1e35FGHVxadgXKU8Ri_session_zgik2JjD86Qa: 'jam' }
124
- }
125
- subscribedStream[me.id]?.value?.[me.id]?.value?.[me.id]?.value jam
126
-
127
- ✓ src/tests/coStream.test.ts (10 tests) 205ms
128
- stdout | src/tests/coMap.test.ts > CoMap resolution > Subscription & auto-resolution
129
- subscribedMap.nested?.twiceNested?.taste undefined
130
- subscribedMap.nested?.twiceNested?.taste undefined
131
- subscribedMap.nested?.twiceNested?.taste sour
132
- subscribedMap.nested?.twiceNested?.taste sour
133
- subscribedMap.nested?.twiceNested?.taste sweet
134
- subscribedMap.nested?.twiceNested?.taste sweet
135
- subscribedMap.nested?.twiceNested?.taste salty
136
- subscribedMap.nested?.twiceNested?.taste umami
137
-
138
- ✓ src/tests/coMap.test.ts (20 tests) 257ms
139
-
140
- Test Files 5 passed (5)
141
- Tests 44 passed (44)
142
- Start at 18:35:37
143
- Duration 929ms (transform 419ms, setup 0ms, collect 2.29s, tests 799ms, environment 0ms, prepare 298ms)
144
-