jazz-tools 0.7.1 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. package/.turbo/turbo-build.log +15 -0
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/.turbo/turbo-test.log +33 -33
  4. package/CHANGELOG.md +171 -165
  5. package/LICENSE.txt +1 -1
  6. package/dist/coValues/account.js +30 -3
  7. package/dist/coValues/account.js.map +1 -1
  8. package/dist/coValues/coList.js +29 -5
  9. package/dist/coValues/coList.js.map +1 -1
  10. package/dist/coValues/coMap.js +25 -1
  11. package/dist/coValues/coMap.js.map +1 -1
  12. package/dist/coValues/coStream.js +49 -1
  13. package/dist/coValues/coStream.js.map +1 -1
  14. package/dist/coValues/group.js +25 -1
  15. package/dist/coValues/group.js.map +1 -1
  16. package/dist/coValues/interfaces.js +32 -48
  17. package/dist/coValues/interfaces.js.map +1 -1
  18. package/dist/implementation/schema.js.map +1 -1
  19. package/dist/implementation/subscriptionScope.js.map +1 -1
  20. package/dist/index.js +1 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/tests/deepLoading.test.js +2 -2
  23. package/dist/tests/deepLoading.test.js.map +1 -1
  24. package/dist/tests/groupsAndAccounts.test.js +3 -3
  25. package/dist/tests/groupsAndAccounts.test.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/coValues/account.ts +82 -12
  28. package/src/coValues/coList.ts +78 -13
  29. package/src/coValues/coMap.ts +78 -7
  30. package/src/coValues/coStream.ts +128 -11
  31. package/src/coValues/group.ts +77 -4
  32. package/src/coValues/interfaces.ts +140 -211
  33. package/src/implementation/schema.ts +7 -4
  34. package/src/implementation/subscriptionScope.ts +3 -3
  35. package/src/index.ts +7 -0
  36. package/src/tests/deepLoading.test.ts +6 -3
  37. package/src/tests/groupsAndAccounts.test.ts +4 -4
package/CHANGELOG.md CHANGED
@@ -1,400 +1,406 @@
1
1
  # jazz-autosub
2
2
 
3
+ ## 0.7.3
4
+
5
+ ### Patch Changes
6
+
7
+ - Clean up loading & subscription API
8
+
3
9
  ## 0.7.1
4
10
 
5
11
  ### Patch Changes
6
12
 
7
- - Add runtime option for optional refs
13
+ - Add runtime option for optional refs
8
14
 
9
15
  ## 0.7.0
10
16
 
11
17
  ### Minor Changes
12
18
 
13
- - e299c3e: New simplified API
14
-
15
- ### Patch Changes
16
-
17
- - 8636319: Fix infinite recursion in subscriptionScope
18
- - 8636319: Fix type of init param for CoMap.create
19
- - 1a35307: Implement first devtools formatters
20
- - 96c494f: Implement profile visibility based on groups & new migration signature
21
- - 59c18c3: CoMap fix
22
- - 19f52b7: Fixed bug with newRandomSessionID being called before crypto was ready
23
- - 8636319: Implement deep loading, simplify API
24
- - 19004b4: Add .all to CoStreamEntry
25
- - a78f168: Make Account -> Profile a lazy ref schema
26
- - 52675c9: Fix CoList.splice / RawCoList.append
27
- - 129e2c1: More precise imports from @effect/schema
28
- - 1cfa279: More superclass-compatible CoMaps
29
- - 704af7d: Add maxWidth option for loading images
30
- - 460478f: Use effect 3.0
31
- - 6b0418f: Fix image resolution loading
32
- - ed5643a: Fix CoMap \_refs for co.items
33
- - bde684f: CoValue casting & auto-subbing \_owner
34
- - c4151fc: Support stricter TS lint rules
35
- - 63374cc: Relax types of CoMap.\_schema
36
- - 01ac646: Make CoMaps even more subclassable
37
- - a5e68a4: Make refs type more precise
38
- - 952982e: Consistent proxy based API
39
- - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
40
- - 5fa277c: Fix CoMap.Record.toJSON()
41
- - 60d5ca2: Introduce jazz-tools CLI
42
- - 21771c4: Reintroduce changes from main
43
- - 77c2b56: Get rid of self generics, new create syntax
44
- - 63374cc: Fix schema of Account & Group
45
- - d2e03ff: Fix variance of ID.\_\_type
46
- - 354bdcd: Even friendlier for subclassing CoMap
47
- - 60d5ca2: Clean up exports
48
- - 69ac514: Use effect schema much less
49
- - f8a5c46: Fix CoStream types
50
- - f0f6f1b: Clean up API more & re-add jazz-nodejs
51
- - e5eed5b: Make refs on list more precise
52
- - 1a44f87: Refactoring
53
- - 627d895: Get rid of Co namespace
54
- - 1200aae: Cache CoValue proxies
55
- - 63374cc: Make sure delete on CoMaps deletes keys
56
- - ece35b3: Make fast-check a direct dependency to help dev time resolution
57
- - 38d4410: CoMap fixes and improvements
58
- - 85d2b62: More subclass-friendly types in CoMap
59
- - fd86c11: Extract jazz cli into jazz-run package
60
- - 52675c9: Fix Costream[...].all
61
- - Updated dependencies [1a35307]
62
- - Updated dependencies [96c494f]
63
- - Updated dependencies [19f52b7]
64
- - Updated dependencies [d8fe2b1]
65
- - Updated dependencies [1200aae]
66
- - Updated dependencies [52675c9]
67
- - Updated dependencies [1a35307]
68
- - Updated dependencies [e299c3e]
69
- - Updated dependencies [bf0f8ec]
70
- - Updated dependencies [c4151fc]
71
- - Updated dependencies [8636319]
72
- - Updated dependencies [952982e]
73
- - Updated dependencies [21771c4]
74
- - Updated dependencies [69ac514]
75
- - Updated dependencies [f0f6f1b]
76
- - Updated dependencies [1a44f87]
77
- - Updated dependencies [627d895]
78
- - Updated dependencies [63374cc]
79
- - Updated dependencies [a423eee]
80
- - cojson@0.7.0
81
- - cojson-transport-nodejs-ws@0.7.0
19
+ - e299c3e: New simplified API
20
+
21
+ ### Patch Changes
22
+
23
+ - 8636319: Fix infinite recursion in subscriptionScope
24
+ - 8636319: Fix type of init param for CoMap.create
25
+ - 1a35307: Implement first devtools formatters
26
+ - 96c494f: Implement profile visibility based on groups & new migration signature
27
+ - 59c18c3: CoMap fix
28
+ - 19f52b7: Fixed bug with newRandomSessionID being called before crypto was ready
29
+ - 8636319: Implement deep loading, simplify API
30
+ - 19004b4: Add .all to CoStreamEntry
31
+ - a78f168: Make Account -> Profile a lazy ref schema
32
+ - 52675c9: Fix CoList.splice / RawCoList.append
33
+ - 129e2c1: More precise imports from @effect/schema
34
+ - 1cfa279: More superclass-compatible CoMaps
35
+ - 704af7d: Add maxWidth option for loading images
36
+ - 460478f: Use effect 3.0
37
+ - 6b0418f: Fix image resolution loading
38
+ - ed5643a: Fix CoMap \_refs for co.items
39
+ - bde684f: CoValue casting & auto-subbing \_owner
40
+ - c4151fc: Support stricter TS lint rules
41
+ - 63374cc: Relax types of CoMap.\_schema
42
+ - 01ac646: Make CoMaps even more subclassable
43
+ - a5e68a4: Make refs type more precise
44
+ - 952982e: Consistent proxy based API
45
+ - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
46
+ - 5fa277c: Fix CoMap.Record.toJSON()
47
+ - 60d5ca2: Introduce jazz-tools CLI
48
+ - 21771c4: Reintroduce changes from main
49
+ - 77c2b56: Get rid of self generics, new create syntax
50
+ - 63374cc: Fix schema of Account & Group
51
+ - d2e03ff: Fix variance of ID.\_\_type
52
+ - 354bdcd: Even friendlier for subclassing CoMap
53
+ - 60d5ca2: Clean up exports
54
+ - 69ac514: Use effect schema much less
55
+ - f8a5c46: Fix CoStream types
56
+ - f0f6f1b: Clean up API more & re-add jazz-nodejs
57
+ - e5eed5b: Make refs on list more precise
58
+ - 1a44f87: Refactoring
59
+ - 627d895: Get rid of Co namespace
60
+ - 1200aae: Cache CoValue proxies
61
+ - 63374cc: Make sure delete on CoMaps deletes keys
62
+ - ece35b3: Make fast-check a direct dependency to help dev time resolution
63
+ - 38d4410: CoMap fixes and improvements
64
+ - 85d2b62: More subclass-friendly types in CoMap
65
+ - fd86c11: Extract jazz cli into jazz-run package
66
+ - 52675c9: Fix Costream[...].all
67
+ - Updated dependencies [1a35307]
68
+ - Updated dependencies [96c494f]
69
+ - Updated dependencies [19f52b7]
70
+ - Updated dependencies [d8fe2b1]
71
+ - Updated dependencies [1200aae]
72
+ - Updated dependencies [52675c9]
73
+ - Updated dependencies [1a35307]
74
+ - Updated dependencies [e299c3e]
75
+ - Updated dependencies [bf0f8ec]
76
+ - Updated dependencies [c4151fc]
77
+ - Updated dependencies [8636319]
78
+ - Updated dependencies [952982e]
79
+ - Updated dependencies [21771c4]
80
+ - Updated dependencies [69ac514]
81
+ - Updated dependencies [f0f6f1b]
82
+ - Updated dependencies [1a44f87]
83
+ - Updated dependencies [627d895]
84
+ - Updated dependencies [63374cc]
85
+ - Updated dependencies [a423eee]
86
+ - cojson@0.7.0
87
+ - cojson-transport-nodejs-ws@0.7.0
82
88
 
83
89
  ## 0.7.0-alpha.42
84
90
 
85
91
  ### Patch Changes
86
92
 
87
- - Fixed bug with newRandomSessionID being called before crypto was ready
88
- - Updated dependencies
89
- - cojson@0.7.0-alpha.42
90
- - cojson-transport-nodejs-ws@0.7.0-alpha.42
93
+ - Fixed bug with newRandomSessionID being called before crypto was ready
94
+ - Updated dependencies
95
+ - cojson@0.7.0-alpha.42
96
+ - cojson-transport-nodejs-ws@0.7.0-alpha.42
91
97
 
92
98
  ## 0.7.0-alpha.41
93
99
 
94
100
  ### Patch Changes
95
101
 
96
- - Updated dependencies
97
- - cojson-transport-nodejs-ws@0.7.0-alpha.41
102
+ - Updated dependencies
103
+ - cojson-transport-nodejs-ws@0.7.0-alpha.41
98
104
 
99
105
  ## 0.7.0-alpha.39
100
106
 
101
107
  ### Patch Changes
102
108
 
103
- - Updated dependencies
104
- - cojson@0.7.0-alpha.39
105
- - cojson-transport-nodejs-ws@0.7.0-alpha.39
109
+ - Updated dependencies
110
+ - cojson@0.7.0-alpha.39
111
+ - cojson-transport-nodejs-ws@0.7.0-alpha.39
106
112
 
107
113
  ## 0.7.0-alpha.38
108
114
 
109
115
  ### Patch Changes
110
116
 
111
- - Fix infinite recursion in subscriptionScope
112
- - Fix type of init param for CoMap.create
113
- - Implement deep loading, simplify API
114
- - Updated dependencies
115
- - cojson@0.7.0-alpha.38
116
- - cojson-transport-nodejs-ws@0.7.0-alpha.38
117
+ - Fix infinite recursion in subscriptionScope
118
+ - Fix type of init param for CoMap.create
119
+ - Implement deep loading, simplify API
120
+ - Updated dependencies
121
+ - cojson@0.7.0-alpha.38
122
+ - cojson-transport-nodejs-ws@0.7.0-alpha.38
117
123
 
118
124
  ## 0.7.0-alpha.37
119
125
 
120
126
  ### Patch Changes
121
127
 
122
- - Updated dependencies
123
- - cojson@0.7.0-alpha.37
124
- - cojson-transport-nodejs-ws@0.7.0-alpha.37
128
+ - Updated dependencies
129
+ - cojson@0.7.0-alpha.37
130
+ - cojson-transport-nodejs-ws@0.7.0-alpha.37
125
131
 
126
132
  ## 0.7.0-alpha.36
127
133
 
128
134
  ### Patch Changes
129
135
 
130
- - 1a35307: Implement first devtools formatters
131
- - 6b0418f: Fix image resolution loading
132
- - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
133
- - Updated dependencies [1a35307]
134
- - Updated dependencies [1a35307]
135
- - cojson@0.7.0-alpha.36
136
- - cojson-transport-nodejs-ws@0.7.0-alpha.36
136
+ - 1a35307: Implement first devtools formatters
137
+ - 6b0418f: Fix image resolution loading
138
+ - 1a35307: Add ability to declare minimum required data in subscribe & Improve property access tracing
139
+ - Updated dependencies [1a35307]
140
+ - Updated dependencies [1a35307]
141
+ - cojson@0.7.0-alpha.36
142
+ - cojson-transport-nodejs-ws@0.7.0-alpha.36
137
143
 
138
144
  ## 0.7.0-alpha.35
139
145
 
140
146
  ### Patch Changes
141
147
 
142
- - Cache CoValue proxies
143
- - Updated dependencies
144
- - cojson@0.7.0-alpha.35
145
- - cojson-transport-nodejs-ws@0.7.0-alpha.35
148
+ - Cache CoValue proxies
149
+ - Updated dependencies
150
+ - cojson@0.7.0-alpha.35
151
+ - cojson-transport-nodejs-ws@0.7.0-alpha.35
146
152
 
147
153
  ## 0.7.0-alpha.34
148
154
 
149
155
  ### Patch Changes
150
156
 
151
- - Extract jazz cli into jazz-run package
157
+ - Extract jazz cli into jazz-run package
152
158
 
153
159
  ## 0.7.0-alpha.32
154
160
 
155
161
  ### Patch Changes
156
162
 
157
- - Introduce jazz-tools CLI
158
- - Clean up exports
163
+ - Introduce jazz-tools CLI
164
+ - Clean up exports
159
165
 
160
166
  ## 0.7.0-alpha.31
161
167
 
162
168
  ### Patch Changes
163
169
 
164
- - Get rid of self generics, new create syntax
170
+ - Get rid of self generics, new create syntax
165
171
 
166
172
  ## 0.7.0-alpha.30
167
173
 
168
174
  ### Patch Changes
169
175
 
170
- - CoValue casting & auto-subbing \_owner
176
+ - CoValue casting & auto-subbing \_owner
171
177
 
172
178
  ## 0.7.0-alpha.29
173
179
 
174
180
  ### Patch Changes
175
181
 
176
- - Reintroduce changes from main
177
- - Updated dependencies
178
- - cojson@0.7.0-alpha.29
182
+ - Reintroduce changes from main
183
+ - Updated dependencies
184
+ - cojson@0.7.0-alpha.29
179
185
 
180
186
  ## 0.7.0-alpha.28
181
187
 
182
188
  ### Patch Changes
183
189
 
184
- - Implement profile visibility based on groups & new migration signature
185
- - Updated dependencies
186
- - cojson@0.7.0-alpha.28
190
+ - Implement profile visibility based on groups & new migration signature
191
+ - Updated dependencies
192
+ - cojson@0.7.0-alpha.28
187
193
 
188
194
  ## 0.7.0-alpha.27
189
195
 
190
196
  ### Patch Changes
191
197
 
192
- - Fix CoList.splice / RawCoList.append
193
- - Fix Costream[...].all
194
- - Updated dependencies
195
- - cojson@0.7.0-alpha.27
198
+ - Fix CoList.splice / RawCoList.append
199
+ - Fix Costream[...].all
200
+ - Updated dependencies
201
+ - cojson@0.7.0-alpha.27
196
202
 
197
203
  ## 0.7.0-alpha.26
198
204
 
199
205
  ### Patch Changes
200
206
 
201
- - Fix CoMap.Record.toJSON()
207
+ - Fix CoMap.Record.toJSON()
202
208
 
203
209
  ## 0.7.0-alpha.25
204
210
 
205
211
  ### Patch Changes
206
212
 
207
- - Make Account -> Profile a lazy ref schema
213
+ - Make Account -> Profile a lazy ref schema
208
214
 
209
215
  ## 0.7.0-alpha.24
210
216
 
211
217
  ### Patch Changes
212
218
 
213
- - Relax types of CoMap.\_schema
214
- - Fix schema of Account & Group
215
- - Make sure delete on CoMaps deletes keys
216
- - Updated dependencies
217
- - cojson@0.7.0-alpha.24
219
+ - Relax types of CoMap.\_schema
220
+ - Fix schema of Account & Group
221
+ - Make sure delete on CoMaps deletes keys
222
+ - Updated dependencies
223
+ - cojson@0.7.0-alpha.24
218
224
 
219
225
  ## 0.7.0-alpha.23
220
226
 
221
227
  ### Patch Changes
222
228
 
223
- - CoMap fixes and improvements
229
+ - CoMap fixes and improvements
224
230
 
225
231
  ## 0.7.0-alpha.22
226
232
 
227
233
  ### Patch Changes
228
234
 
229
- - Fix CoMap \_refs for co.items
235
+ - Fix CoMap \_refs for co.items
230
236
 
231
237
  ## 0.7.0-alpha.21
232
238
 
233
239
  ### Patch Changes
234
240
 
235
- - Add maxWidth option for loading images
241
+ - Add maxWidth option for loading images
236
242
 
237
243
  ## 0.7.0-alpha.20
238
244
 
239
245
  ### Patch Changes
240
246
 
241
- - Make fast-check a direct dependency to help dev time resolution
247
+ - Make fast-check a direct dependency to help dev time resolution
242
248
 
243
249
  ## 0.7.0-alpha.19
244
250
 
245
251
  ### Patch Changes
246
252
 
247
- - More precise imports from @effect/schema
253
+ - More precise imports from @effect/schema
248
254
 
249
255
  ## 0.7.0-alpha.17
250
256
 
251
257
  ### Patch Changes
252
258
 
253
- - Use effect 3.0
259
+ - Use effect 3.0
254
260
 
255
261
  ## 0.7.0-alpha.16
256
262
 
257
263
  ### Patch Changes
258
264
 
259
- - Make CoMaps even more subclassable
265
+ - Make CoMaps even more subclassable
260
266
 
261
267
  ## 0.7.0-alpha.15
262
268
 
263
269
  ### Patch Changes
264
270
 
265
- - More superclass-compatible CoMaps
271
+ - More superclass-compatible CoMaps
266
272
 
267
273
  ## 0.7.0-alpha.14
268
274
 
269
275
  ### Patch Changes
270
276
 
271
- - Fix CoStream types
277
+ - Fix CoStream types
272
278
 
273
279
  ## 0.7.0-alpha.13
274
280
 
275
281
  ### Patch Changes
276
282
 
277
- - Add .all to CoStreamEntry
283
+ - Add .all to CoStreamEntry
278
284
 
279
285
  ## 0.7.0-alpha.12
280
286
 
281
287
  ### Patch Changes
282
288
 
283
- - Fix variance of ID.\_\_type
289
+ - Fix variance of ID.\_\_type
284
290
 
285
291
  ## 0.7.0-alpha.11
286
292
 
287
293
  ### Patch Changes
288
294
 
289
- - Support stricter TS lint rules
290
- - Updated dependencies
291
- - cojson@0.7.0-alpha.11
295
+ - Support stricter TS lint rules
296
+ - Updated dependencies
297
+ - cojson@0.7.0-alpha.11
292
298
 
293
299
  ## 0.7.0-alpha.10
294
300
 
295
301
  ### Patch Changes
296
302
 
297
- - Clean up API more & re-add jazz-nodejs
298
- - Updated dependencies
299
- - cojson@0.7.0-alpha.10
303
+ - Clean up API more & re-add jazz-nodejs
304
+ - Updated dependencies
305
+ - cojson@0.7.0-alpha.10
300
306
 
301
307
  ## 0.7.0-alpha.9
302
308
 
303
309
  ### Patch Changes
304
310
 
305
- - Even friendlier for subclassing CoMap
311
+ - Even friendlier for subclassing CoMap
306
312
 
307
313
  ## 0.7.0-alpha.8
308
314
 
309
315
  ### Patch Changes
310
316
 
311
- - More subclass-friendly types in CoMap
317
+ - More subclass-friendly types in CoMap
312
318
 
313
319
  ## 0.7.0-alpha.7
314
320
 
315
321
  ### Patch Changes
316
322
 
317
- - Consistent proxy based API
318
- - Updated dependencies
319
- - cojson@0.7.0-alpha.7
323
+ - Consistent proxy based API
324
+ - Updated dependencies
325
+ - cojson@0.7.0-alpha.7
320
326
 
321
327
  ## 0.7.0-alpha.6
322
328
 
323
329
  ### Patch Changes
324
330
 
325
- - CoMap fix
331
+ - CoMap fix
326
332
 
327
333
  ## 0.7.0-alpha.5
328
334
 
329
335
  ### Patch Changes
330
336
 
331
- - Refactoring
332
- - Updated dependencies
333
- - cojson@0.7.0-alpha.5
337
+ - Refactoring
338
+ - Updated dependencies
339
+ - cojson@0.7.0-alpha.5
334
340
 
335
341
  ## 0.7.0-alpha.4
336
342
 
337
343
  ### Patch Changes
338
344
 
339
- - Make refs on list more precise
345
+ - Make refs on list more precise
340
346
 
341
347
  ## 0.7.0-alpha.3
342
348
 
343
349
  ### Patch Changes
344
350
 
345
- - Make refs type more precise
351
+ - Make refs type more precise
346
352
 
347
353
  ## 0.7.0-alpha.2
348
354
 
349
355
  ### Patch Changes
350
356
 
351
- - Get rid of Co namespace
357
+ - Get rid of Co namespace
352
358
 
353
359
  ## 0.7.0-alpha.1
354
360
 
355
361
  ### Patch Changes
356
362
 
357
- - Use effect schema much less
358
- - Updated dependencies
359
- - cojson@0.7.0-alpha.1
363
+ - Use effect schema much less
364
+ - Updated dependencies
365
+ - cojson@0.7.0-alpha.1
360
366
 
361
367
  ## 0.7.0-alpha.0
362
368
 
363
369
  ### Minor Changes
364
370
 
365
- - New simplified API
371
+ - New simplified API
366
372
 
367
373
  ### Patch Changes
368
374
 
369
- - Updated dependencies
370
- - cojson@0.7.0-alpha.0
375
+ - Updated dependencies
376
+ - cojson@0.7.0-alpha.0
371
377
 
372
378
  ## 0.6.1
373
379
 
374
380
  ### Patch Changes
375
381
 
376
- - Fix loading of accounts
377
- - Updated dependencies
378
- - cojson@0.6.5
382
+ - Fix loading of accounts
383
+ - Updated dependencies
384
+ - cojson@0.6.5
379
385
 
380
386
  ## 0.6.0
381
387
 
382
388
  ### Minor Changes
383
389
 
384
- - Make addMember and removeMember take loaded Accounts instead of just IDs
390
+ - Make addMember and removeMember take loaded Accounts instead of just IDs
385
391
 
386
392
  ### Patch Changes
387
393
 
388
- - Updated dependencies
389
- - cojson@0.6.0
394
+ - Updated dependencies
395
+ - cojson@0.6.0
390
396
 
391
397
  ## 0.5.0
392
398
 
393
399
  ### Minor Changes
394
400
 
395
- - Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
401
+ - Adding a lot of performance improvements to cojson, add a stresstest for the twit example and make that run smoother in a lot of ways.
396
402
 
397
403
  ### Patch Changes
398
404
 
399
- - Updated dependencies
400
- - cojson@0.5.0
405
+ - Updated dependencies
406
+ - cojson@0.5.0
package/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2023, Garden Computing, Inc.
1
+ Copyright 2024, Garden Computing, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
1
  var _a;
2
2
  import { LocalNode } from "cojson";
3
3
  import { Context } from "effect";
4
- import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, } from "../internal.js";
4
+ import { Group, CoValueBase, MembersSym, Profile, Ref, SchemaInit, inspect, subscriptionsScopes, loadCoValue, loadCoValueEf, subscribeToCoValue, subscribeToCoValueEf, ensureCoValueLoaded, subscribeToExistingCoValue, } from "../internal.js";
5
5
  /** @category Identity & Permissions */
6
6
  export class Account extends CoValueBase {
7
7
  get _schema() {
@@ -52,7 +52,7 @@ export class Account extends CoValueBase {
52
52
  throw new Error("Only a controlled account can accept invites");
53
53
  }
54
54
  await this._raw.acceptInvite(valueID, inviteSecret);
55
- return coValueClass.load(valueID, this, []);
55
+ return loadCoValue(coValueClass, valueID, this, []);
56
56
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
57
57
  }
58
58
  static async create(options) {
@@ -105,11 +105,38 @@ export class Account extends CoValueBase {
105
105
  this.profile = Profile.create({ name: creationProps.name }, { owner: profileGroup });
106
106
  }
107
107
  }
108
+ /** @category Subscription & Loading */
109
+ static load(id, as, depth) {
110
+ return loadCoValue(this, id, as, depth);
111
+ }
112
+ /** @category Subscription & Loading */
113
+ static loadEf(id, depth) {
114
+ return loadCoValueEf(this, id, depth);
115
+ }
116
+ /** @category Subscription & Loading */
117
+ static subscribe(id, as, depth, listener) {
118
+ return subscribeToCoValue(this, id, as, depth, listener);
119
+ }
120
+ /** @category Subscription & Loading */
121
+ static subscribeEf(id, depth) {
122
+ return subscribeToCoValueEf(this, id, depth);
123
+ }
124
+ /** @category Subscription & Loading */
125
+ ensureLoaded(depth) {
126
+ return ensureCoValueLoaded(this, depth);
127
+ }
128
+ /** @category Subscription & Loading */
129
+ subscribe(depth, listener) {
130
+ return subscribeToExistingCoValue(this, depth, listener);
131
+ }
108
132
  }
109
133
  _a = Account;
110
134
  (() => {
111
135
  _a._schema = {
112
- profile: { ref: () => Profile, optional: false },
136
+ profile: {
137
+ ref: () => Profile,
138
+ optional: false,
139
+ },
113
140
  root: "json",
114
141
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
115
142
  };
@@ -1 +1 @@
1
- {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/coValues/account.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAanC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAWjC,OAAO,EACH,KAAK,EACL,WAAW,EACX,UAAU,EACV,OAAO,EACP,GAAG,EACH,UAAU,EACV,OAAO,EACP,mBAAmB,GACtB,MAAM,gBAAgB,CAAC;AAExB,uCAAuC;AACvC,MAAM,OAAO,OACT,SAAQ,WAAW;IASnB,IAAI,OAAO;QAIP,OAAQ,IAAI,CAAC,WAA8B,CAAC,OAAO,CAAC;IACxD,CAAC;IASD,IAAI,MAAM;QACN,OAAO,IAAe,CAAC;IAC3B,CAAC;IACD,IAAI,SAAS;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpE,CAAC;IAKD,IAAI,KAAK;QACL,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAE1B,CAAC;QAChB,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAEpB,CAAC;QAEhB,OAAO;YACH,OAAO,EACH,SAAS;gBACR,IAAI,GAAG,CACJ,SAAS,EACT,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,OAAO,CAAC,OAEZ,CAEqC;YAC9C,IAAI,EACA,MAAM;gBACL,IAAI,GAAG,CACJ,MAAM,EACN,IAAI,CAAC,SAAS,EACd,IAAI,CAAC,OAAO,CAAC,IAEZ,CAEkC;SAC9C,CAAC;IACN,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