jazz-tools 0.7.0-alpha.3 → 0.7.0-alpha.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. package/.turbo/turbo-build.log +78 -8
  2. package/CHANGELOG.md +181 -0
  3. package/dist/coValues/account.js +81 -41
  4. package/dist/coValues/account.js.map +1 -1
  5. package/dist/coValues/coList.js +156 -104
  6. package/dist/coValues/coList.js.map +1 -1
  7. package/dist/coValues/coMap.js +182 -163
  8. package/dist/coValues/coMap.js.map +1 -1
  9. package/dist/coValues/coStream.js +202 -71
  10. package/dist/coValues/coStream.js.map +1 -1
  11. package/dist/coValues/extensions/imageDef.js +13 -8
  12. package/dist/coValues/extensions/imageDef.js.map +1 -1
  13. package/dist/coValues/group.js +46 -38
  14. package/dist/coValues/group.js.map +1 -1
  15. package/dist/coValues/interfaces.js +23 -5
  16. package/dist/coValues/interfaces.js.map +1 -1
  17. package/dist/implementation/refs.js +26 -12
  18. package/dist/implementation/refs.js.map +1 -1
  19. package/dist/implementation/schema.js +38 -1
  20. package/dist/implementation/schema.js.map +1 -1
  21. package/dist/implementation/symbols.js +5 -0
  22. package/dist/implementation/symbols.js.map +1 -0
  23. package/dist/index.js +4 -3
  24. package/dist/index.js.map +1 -1
  25. package/dist/internal.js +1 -0
  26. package/dist/internal.js.map +1 -1
  27. package/dist/tests/coList.test.js +32 -36
  28. package/dist/tests/coList.test.js.map +1 -1
  29. package/dist/tests/coMap.test.js +170 -59
  30. package/dist/tests/coMap.test.js.map +1 -1
  31. package/dist/tests/coStream.test.js +59 -64
  32. package/dist/tests/coStream.test.js.map +1 -1
  33. package/dist/tests/groupsAndAccounts.test.js +88 -0
  34. package/dist/tests/groupsAndAccounts.test.js.map +1 -0
  35. package/package.json +5 -4
  36. package/src/coValues/account.ts +129 -105
  37. package/src/coValues/coList.ts +200 -131
  38. package/src/coValues/coMap.ts +243 -305
  39. package/src/coValues/coStream.ts +300 -127
  40. package/src/coValues/extensions/imageDef.ts +14 -16
  41. package/src/coValues/group.ts +90 -106
  42. package/src/coValues/interfaces.ts +33 -12
  43. package/src/implementation/refs.ts +42 -25
  44. package/src/implementation/schema.ts +69 -46
  45. package/src/implementation/symbols.ts +12 -0
  46. package/src/index.ts +10 -8
  47. package/src/internal.ts +1 -0
  48. package/src/tests/coList.test.ts +35 -39
  49. package/src/tests/coMap.test.ts +176 -81
  50. package/src/tests/coStream.test.ts +76 -81
  51. package/src/tests/groupsAndAccounts.test.ts +100 -0
@@ -1,10 +1,26 @@
1
1
  var _a;
2
2
  import { RawAccount } from "cojson";
3
- import { Account, CoValueBase, Group, ValueRef, inspect, makeRefs, } from "../internal.js";
4
- import { Schema } from "@effect/schema";
3
+ import { Account, CoValueBase, Group, InitValues, ItemsSym, Ref, SchemaInit, co, inspect, isRefEncoded, makeRefs, } from "../internal.js";
4
+ import { encodeSync, decodeSync } from "@effect/schema/Schema";
5
5
  export class CoList extends Array {
6
- get _encoding() {
7
- return this.constructor._encoding;
6
+ static Of(item) {
7
+ var _b, _c;
8
+ // TODO: cache superclass for item class
9
+ return _c = class CoListOf extends _a {
10
+ constructor() {
11
+ super(...arguments);
12
+ this[_b] = item;
13
+ }
14
+ },
15
+ _b = co.items,
16
+ _c;
17
+ }
18
+ /** @deprecated Use UPPERCASE `CoList.Of` instead! */
19
+ static of(..._args) {
20
+ throw new Error("Can't use Array.of with CoLists");
21
+ }
22
+ get _schema() {
23
+ return this.constructor._schema;
8
24
  }
9
25
  get _owner() {
10
26
  return this._raw.group instanceof RawAccount
@@ -12,7 +28,7 @@ export class CoList extends Array {
12
28
  : Group.fromRaw(this._raw.group);
13
29
  }
14
30
  get _refs() {
15
- return makeRefs((idx) => this._raw.get(idx), () => Array.from({ length: this._raw.entries().length }, (_, idx) => idx), this._loadedAs, (_idx) => this._encoding._item.ref());
31
+ return makeRefs((idx) => this._raw.get(idx), () => Array.from({ length: this._raw.entries().length }, (_, idx) => idx), this._loadedAs, (_idx) => this._schema[ItemsSym]);
16
32
  }
17
33
  get _edits() {
18
34
  throw new Error("Not implemented");
@@ -20,56 +36,39 @@ export class CoList extends Array {
20
36
  get _loadedAs() {
21
37
  return Account.fromNode(this._raw.core.node);
22
38
  }
23
- constructor(init, options) {
24
- if (typeof init === "number") {
25
- // this might be called from an intrinsic, like map, trying to create an empty array
26
- // passing `0` as the only parameter
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
- return new Array(init);
29
- }
39
+ static get [Symbol.species]() {
40
+ return Array;
41
+ }
42
+ constructor(options) {
30
43
  super();
31
- if (!options) {
32
- throw new Error("Must provide options");
44
+ if ("owner" in options) {
45
+ this[InitValues] = {
46
+ init: options.init,
47
+ owner: options.owner,
48
+ };
33
49
  }
34
- let raw;
35
- if ("fromRaw" in options) {
36
- raw = options.fromRaw;
50
+ else if ("fromRaw" in options) {
51
+ Object.defineProperties(this, {
52
+ id: {
53
+ value: options.fromRaw.id,
54
+ enumerable: false,
55
+ },
56
+ _raw: { value: options.fromRaw, enumerable: false },
57
+ });
37
58
  }
38
- else {
39
- const rawOwner = options.owner._raw;
40
- const rawInit = init && this.toRawItems(init);
41
- raw = rawOwner.createList(rawInit);
42
- }
43
- Object.defineProperties(this, {
44
- id: {
45
- value: raw.id,
46
- enumerable: false,
47
- },
48
- _raw: { value: raw, enumerable: false },
49
- });
50
- return new Proxy(this, CoListProxyHandler(this._encoding._item));
51
- }
52
- toRawItems(items) {
53
- const itemDescriptor = this._encoding._item;
54
- const rawItems = itemDescriptor === "json"
55
- ? items
56
- : "encoded" in itemDescriptor
57
- ? items?.map((e) => Schema.encodeSync(itemDescriptor.encoded)(e))
58
- : "ref" in itemDescriptor
59
- ? items?.map((v) => v.id)
60
- : (() => {
61
- throw new Error("Invalid element descriptor");
62
- })();
63
- return rawItems;
59
+ return new Proxy(this, CoListProxyHandler);
60
+ }
61
+ static create(items, options) {
62
+ return new this({ init: items, owner: options.owner });
64
63
  }
65
64
  push(...items) {
66
- for (const item of this.toRawItems(items)) {
65
+ for (const item of toRawItems(items, this._schema[ItemsSym])) {
67
66
  this._raw.append(item);
68
67
  }
69
68
  return this._raw.entries().length;
70
69
  }
71
70
  unshift(...items) {
72
- for (const item of this.toRawItems(items)) {
71
+ for (const item of toRawItems(items, this._schema[ItemsSym])) {
73
72
  this._raw.prepend(item);
74
73
  }
75
74
  return this._raw.entries().length;
@@ -86,27 +85,28 @@ export class CoList extends Array {
86
85
  }
87
86
  splice(start, deleteCount, ...items) {
88
87
  const deleted = this.slice(start, start + deleteCount);
89
- for (let idxToDelete = start + deleteCount; idxToDelete > start; idxToDelete--) {
88
+ for (let idxToDelete = start + deleteCount - 1; idxToDelete >= start; idxToDelete--) {
90
89
  this._raw.delete(idxToDelete);
91
90
  }
92
- let appendAfter = start;
93
- for (const item of this.toRawItems(items)) {
91
+ let appendAfter = Math.max(start - 1, 0);
92
+ for (const item of toRawItems(items, this._schema[ItemsSym])) {
93
+ console.log(this._raw.asArray(), appendAfter);
94
94
  this._raw.append(item, appendAfter);
95
95
  appendAfter++;
96
96
  }
97
97
  return deleted;
98
98
  }
99
99
  toJSON() {
100
- const itemDescriptor = this._encoding._item;
100
+ const itemDescriptor = this._schema[ItemsSym];
101
101
  if (itemDescriptor === "json") {
102
102
  return this._raw.asArray();
103
103
  }
104
104
  else if ("encoded" in itemDescriptor) {
105
105
  return this._raw
106
106
  .asArray()
107
- .map((e) => Schema.encodeSync(itemDescriptor.encoded)(e));
107
+ .map((e) => encodeSync(itemDescriptor.encoded)(e));
108
108
  }
109
- else if ("ref" in itemDescriptor) {
109
+ else if (isRefEncoded(itemDescriptor)) {
110
110
  return this.map((item) => item?.toJSON());
111
111
  }
112
112
  else {
@@ -117,11 +117,11 @@ export class CoList extends Array {
117
117
  return this.toJSON();
118
118
  }
119
119
  static fromRaw(raw) {
120
- return new this(undefined, { fromRaw: raw });
120
+ return new this({ fromRaw: raw });
121
121
  }
122
- static encoding(def) {
123
- this._encoding || (this._encoding = {});
124
- Object.assign(this._encoding, def);
122
+ static schema(def) {
123
+ this._schema || (this._schema = {});
124
+ Object.assign(this._schema, def);
125
125
  }
126
126
  }
127
127
  _a = CoList;
@@ -138,59 +138,111 @@ CoList.loadEf = CoValueBase.loadEf;
138
138
  CoList.load = CoValueBase.load;
139
139
  CoList.subscribeEf = CoValueBase.subscribeEf;
140
140
  CoList.subscribe = CoValueBase.subscribe;
141
- function CoListProxyHandler(itemDescriptor) {
142
- return {
143
- get(target, key, receiver) {
144
- if (typeof key === "string" && !isNaN(+key)) {
145
- const rawValue = target._raw.get(Number(key));
146
- if (itemDescriptor === "json") {
147
- return rawValue;
148
- }
149
- else if ("encoded" in itemDescriptor) {
150
- return rawValue === undefined
151
- ? undefined
152
- : Schema.decodeSync(itemDescriptor.encoded)(rawValue);
153
- }
154
- else if ("ref" in itemDescriptor) {
155
- return rawValue === undefined
156
- ? undefined
157
- : new ValueRef(rawValue, target._loadedAs, itemDescriptor.ref()).accessFrom(receiver);
158
- }
159
- }
160
- else if (key === "length") {
161
- return target._raw.entries().length;
141
+ function toRawItems(items, itemDescriptor) {
142
+ const rawItems = itemDescriptor === "json"
143
+ ? items
144
+ : "encoded" in itemDescriptor
145
+ ? items?.map((e) => encodeSync(itemDescriptor.encoded)(e))
146
+ : isRefEncoded(itemDescriptor)
147
+ ? items?.map((v) => v.id)
148
+ : (() => {
149
+ throw new Error("Invalid element descriptor");
150
+ })();
151
+ return rawItems;
152
+ }
153
+ function init(list) {
154
+ if (list[InitValues]) {
155
+ const { init, owner } = list[InitValues];
156
+ const raw = owner._raw.createList(toRawItems(init, list._schema[ItemsSym]));
157
+ Object.defineProperties(list, {
158
+ id: {
159
+ value: raw.id,
160
+ enumerable: false,
161
+ },
162
+ _raw: { value: raw, enumerable: false },
163
+ });
164
+ delete list[InitValues];
165
+ }
166
+ }
167
+ const CoListProxyHandler = {
168
+ get(target, key, receiver) {
169
+ if (typeof key === "string" && !isNaN(+key)) {
170
+ const itemDescriptor = target._schema[ItemsSym];
171
+ const rawValue = target._raw.get(Number(key));
172
+ if (itemDescriptor === "json") {
173
+ return rawValue;
162
174
  }
163
- else {
164
- return Reflect.get(target, key, receiver);
175
+ else if ("encoded" in itemDescriptor) {
176
+ return rawValue === undefined
177
+ ? undefined
178
+ : decodeSync(itemDescriptor.encoded)(rawValue);
165
179
  }
166
- },
167
- set(target, key, value, receiver) {
168
- if (typeof key === "string" && !isNaN(+key)) {
169
- let rawValue;
170
- if (itemDescriptor === "json") {
171
- rawValue = value;
172
- }
173
- else if ("encoded" in itemDescriptor) {
174
- rawValue = Schema.encodeSync(itemDescriptor.encoded)(value);
175
- }
176
- else if ("ref" in itemDescriptor) {
177
- rawValue = value.id;
178
- }
179
- target._raw.replace(Number(key), rawValue);
180
- return true;
180
+ else if (isRefEncoded(itemDescriptor)) {
181
+ return rawValue === undefined
182
+ ? undefined
183
+ : new Ref(rawValue, target._loadedAs, itemDescriptor).accessFrom(receiver);
181
184
  }
182
- else {
183
- return Reflect.set(target, key, value, receiver);
185
+ }
186
+ else if (key === "length") {
187
+ return target._raw.entries().length;
188
+ }
189
+ else {
190
+ return Reflect.get(target, key, receiver);
191
+ }
192
+ },
193
+ set(target, key, value, receiver) {
194
+ var _b;
195
+ if (key === ItemsSym &&
196
+ typeof value === "object" &&
197
+ SchemaInit in value) {
198
+ (_b = target.constructor)._schema || (_b._schema = {});
199
+ target.constructor._schema[ItemsSym] =
200
+ value[SchemaInit];
201
+ init(target);
202
+ return true;
203
+ }
204
+ if (typeof key === "string" && !isNaN(+key)) {
205
+ const itemDescriptor = target._schema[ItemsSym];
206
+ let rawValue;
207
+ if (itemDescriptor === "json") {
208
+ rawValue = value;
184
209
  }
185
- },
186
- has(target, key) {
187
- if (typeof key === "string" && !isNaN(+key)) {
188
- return Number(key) < target._raw.entries().length;
210
+ else if ("encoded" in itemDescriptor) {
211
+ rawValue = encodeSync(itemDescriptor.encoded)(value);
189
212
  }
190
- else {
191
- return Reflect.has(target, key);
213
+ else if (isRefEncoded(itemDescriptor)) {
214
+ rawValue = value.id;
192
215
  }
193
- },
194
- };
195
- }
216
+ target._raw.replace(Number(key), rawValue);
217
+ return true;
218
+ }
219
+ else {
220
+ return Reflect.set(target, key, value, receiver);
221
+ }
222
+ },
223
+ defineProperty(target, key, descriptor) {
224
+ var _b;
225
+ if (descriptor.value &&
226
+ key === ItemsSym &&
227
+ typeof descriptor.value === "object" &&
228
+ SchemaInit in descriptor.value) {
229
+ (_b = target.constructor)._schema || (_b._schema = {});
230
+ target.constructor._schema[ItemsSym] =
231
+ descriptor.value[SchemaInit];
232
+ init(target);
233
+ return true;
234
+ }
235
+ else {
236
+ return Reflect.defineProperty(target, key, descriptor);
237
+ }
238
+ },
239
+ has(target, key) {
240
+ if (typeof key === "string" && !isNaN(+key)) {
241
+ return Number(key) < target._raw.entries().length;
242
+ }
243
+ else {
244
+ return Reflect.has(target, key);
245
+ }
246
+ },
247
+ };
196
248
  //# sourceMappingURL=coList.js.map
@@ -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,EACH,OAAO,EACP,WAAW,EACX,KAAK,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,GACX,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,OAAO,MACT,SAAQ,KAAW;IAWnB,IAAI,SAAS;QAGT,OAAQ,IAAI,CAAC,WAA6B,CAAC,SAAS,CAAC;IACzD,CAAC;IAED,IAAI,MAAM;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,YAAY,UAAU;YACxC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;YAClC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzC,CAAC;IAED,IAAI,KAAK;QAKL,OAAO,QAAQ,CACX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