@pluv/crdt-loro 5.0.0 → 5.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md DELETED
@@ -1,1034 +0,0 @@
1
- # @pluv/crdt-loro
2
-
3
- ## 5.0.0
4
-
5
- ### Patch Changes
6
-
7
- - @pluv/crdt@5.0.0
8
- - @pluv/types@5.0.0
9
-
10
- ## 4.1.0
11
-
12
- ### Minor Changes
13
-
14
- - 5aaef94: Add runtime-specific conditional exports for browser, workerd, bun, node, and deno. Cloudflare Workers and Bun resolve to `loro-crdt/bundler`; Node and Deno resolve to `loro-crdt/nodejs`; browsers resolve to bare `loro-crdt`.
15
-
16
- ### Patch Changes
17
-
18
- - @pluv/crdt@4.1.0
19
- - @pluv/types@4.1.0
20
-
21
- ## 4.0.2
22
-
23
- ### Patch Changes
24
-
25
- - ba5b80e: Fix Node resolution to use loro-crdt/nodejs instead of the bundler WASM entry.
26
- - e1913b3: Upgraded internal dependencies
27
- - Updated dependencies [e1913b3]
28
- - @pluv/types@4.0.2
29
- - @pluv/crdt@4.0.2
30
-
31
- ## 4.0.1
32
-
33
- ### Patch Changes
34
-
35
- - @pluv/crdt@4.0.1
36
- - @pluv/types@4.0.1
37
-
38
- ## 4.0.0
39
-
40
- ### Major Changes
41
-
42
- - df5c39c: Update all packages to be ESM only.
43
-
44
- ### Minor Changes
45
-
46
- - 037074e: Migrated build process from tsup to tsdown.
47
-
48
- ### Patch Changes
49
-
50
- - 2eb5def: Bumped dependencies.
51
- - Updated dependencies [2eb5def]
52
- - Updated dependencies [df5c39c]
53
- - Updated dependencies [037074e]
54
- - @pluv/types@4.0.0
55
- - @pluv/crdt@4.0.0
56
-
57
- ## 3.2.2
58
-
59
- ### Patch Changes
60
-
61
- - Updated dependencies [8665dbe]
62
- - @pluv/types@3.2.2
63
- - @pluv/crdt@3.2.2
64
-
65
- ## 3.2.1
66
-
67
- ### Patch Changes
68
-
69
- - 1e0c886: Updated crdt internal private properties to use native [private elements](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_elements).
70
- - @pluv/crdt@3.2.1
71
- - @pluv/types@3.2.1
72
-
73
- ## 3.2.0
74
-
75
- ### Patch Changes
76
-
77
- - @pluv/crdt@3.2.0
78
- - @pluv/types@3.2.0
79
-
80
- ## 3.1.7
81
-
82
- ### Patch Changes
83
-
84
- - @pluv/crdt@3.1.7
85
- - @pluv/types@3.1.7
86
-
87
- ## 3.1.6
88
-
89
- ### Patch Changes
90
-
91
- - @pluv/crdt@3.1.6
92
- - @pluv/types@3.1.6
93
-
94
- ## 3.1.5
95
-
96
- ### Patch Changes
97
-
98
- - 6d43c08: Fixed CRDT docs being considered as `empty` even when there are properties (i.e. yjs shared types and loro container types) on the document when they have not been modified.
99
- - @pluv/crdt@3.1.5
100
- - @pluv/types@3.1.5
101
-
102
- ## 3.1.4
103
-
104
- ### Patch Changes
105
-
106
- - @pluv/crdt@3.1.4
107
- - @pluv/types@3.1.4
108
-
109
- ## 3.1.3
110
-
111
- ### Patch Changes
112
-
113
- - @pluv/crdt@3.1.3
114
- - @pluv/types@3.1.3
115
-
116
- ## 3.1.2
117
-
118
- ### Patch Changes
119
-
120
- - @pluv/crdt@3.1.2
121
- - @pluv/types@3.1.2
122
-
123
- ## 3.1.1
124
-
125
- ### Patch Changes
126
-
127
- - @pluv/crdt@3.1.1
128
- - @pluv/types@3.1.1
129
-
130
- ## 3.1.0
131
-
132
- ### Patch Changes
133
-
134
- - @pluv/crdt@3.1.0
135
- - @pluv/types@3.1.0
136
-
137
- ## 3.0.0
138
-
139
- ### Major Changes
140
-
141
- - bc1ae91: **BREAKING** Removed deprecated ability to set top-level document types via the yjs shared-type and loro container type utilities (e.g. `yjs.array`, `loro.list`). These must now use the builder type provided in the 1st positional parameter of `yjs.doc` and `loro.doc`.
142
-
143
- ### Patch Changes
144
-
145
- - @pluv/crdt@3.0.0
146
- - @pluv/types@3.0.0
147
-
148
- ## 2.3.1
149
-
150
- ### Patch Changes
151
-
152
- - @pluv/crdt@2.3.1
153
- - @pluv/types@2.3.1
154
-
155
- ## 2.3.0
156
-
157
- ### Patch Changes
158
-
159
- - @pluv/crdt@2.3.0
160
- - @pluv/types@2.3.0
161
-
162
- ## 2.2.8
163
-
164
- ### Patch Changes
165
-
166
- - @pluv/crdt@2.2.8
167
- - @pluv/types@2.2.8
168
-
169
- ## 2.2.7
170
-
171
- ### Patch Changes
172
-
173
- - @pluv/crdt@2.2.7
174
- - @pluv/types@2.2.7
175
-
176
- ## 2.2.6
177
-
178
- ### Patch Changes
179
-
180
- - @pluv/crdt@2.2.6
181
- - @pluv/types@2.2.6
182
-
183
- ## 2.2.5
184
-
185
- ### Patch Changes
186
-
187
- - @pluv/crdt@2.2.5
188
- - @pluv/types@2.2.5
189
-
190
- ## 2.2.4
191
-
192
- ### Patch Changes
193
-
194
- - @pluv/crdt@2.2.4
195
- - @pluv/types@2.2.4
196
-
197
- ## 2.2.3
198
-
199
- ### Patch Changes
200
-
201
- - @pluv/crdt@2.2.3
202
- - @pluv/types@2.2.3
203
-
204
- ## 2.2.2
205
-
206
- ### Patch Changes
207
-
208
- - @pluv/crdt@2.2.2
209
- - @pluv/types@2.2.2
210
-
211
- ## 2.2.1
212
-
213
- ### Patch Changes
214
-
215
- - @pluv/crdt@2.2.1
216
- - @pluv/types@2.2.1
217
-
218
- ## 2.2.0
219
-
220
- ### Patch Changes
221
-
222
- - @pluv/crdt@2.2.0
223
- - @pluv/types@2.2.0
224
-
225
- ## 2.1.0
226
-
227
- ### Patch Changes
228
-
229
- - @pluv/crdt@2.1.0
230
- - @pluv/types@2.1.0
231
-
232
- ## 2.0.2
233
-
234
- ### Patch Changes
235
-
236
- - 945c47d: Updated deprecation warnings to read that features will be removed in v3 instead of v2.
237
-
238
- Due to an [extremely unfortunate bug in changesets](https://github.com/changesets/changesets/issues/1011), minor and patch changes will create major releases. This caused an unintended v2 release that had no breaking changes. To avoid backtracking and deleting deprecated functionalities right away, the deprecation warnings have been updated so that those APIs will be removed in v3 instead of v2.
239
- - @pluv/crdt@2.0.2
240
- - @pluv/types@2.0.2
241
-
242
- ## 2.0.1
243
-
244
- ### Patch Changes
245
-
246
- - @pluv/crdt@2.0.1
247
- - @pluv/types@2.0.1
248
-
249
- ## 2.0.0
250
-
251
- ### Minor Changes
252
-
253
- - 0b234d1: **Deprecated** Declaring top-level types on your CRDT storage via the `loro` utility (e.g. `loro.list`) is now deprecated, to be removed in the next major release (v2). Continuing to use the `loro` utility to declare top-level types will log a warning to your console while in development mode (i.e. when `process.env.NODE_ENV === "development"`). To declare top-level types, you should now use the builder type exposed in the storage factory function. See the example below:
254
-
255
- ```ts
256
- import { loro } from "@pluv/crdt-loro";
257
-
258
- // Before
259
- loro.doc(() => ({
260
- // Using the `loro` utility (in this case `loro.map`) when declaring
261
- // top-level types is now deprecated
262
- topType: loro.map({
263
- key1: loro.text(""),
264
- key2: loro.text(""),
265
- }),
266
- }));
267
-
268
- // After
269
- loro.doc((t) => ({
270
- // Top-level properties must now use the builder (in this case `t`).
271
- // This effectively calls `loro.getMap("topType")` to instantiate the type on
272
- // the root document.
273
- // This simply returns the native Loro container type (e.g. LoroMap), which
274
- // allows you operate on your loro container types in a more native way.
275
- topType: t.map("topType", {
276
- // Declaring nested types should continue to use the `loro` utilities
277
- // you've used before
278
- key1: loro.text(""),
279
- key2: loro.text(""),
280
- }),
281
- }));
282
- ```
283
-
284
- The functions on the builder type calls the native loro container instantiating methods and returns the native types (e.g. `t.map("topType")` is simply just a `LoroDoc.getMap("topType")`) call under the hood. This allows you to declare your type in a more loro-native and predictable way, and enables declaring more complex initial storage states if needed.
285
-
286
- ### Patch Changes
287
-
288
- - Updated dependencies [047a1d8]
289
- - @pluv/types@2.0.0
290
- - @pluv/crdt@2.0.0
291
-
292
- ## 1.0.2
293
-
294
- ### Patch Changes
295
-
296
- - @pluv/crdt@1.0.2
297
- - @pluv/types@1.0.2
298
-
299
- ## 1.0.1
300
-
301
- ### Patch Changes
302
-
303
- - @pluv/crdt@1.0.1
304
- - @pluv/types@1.0.1
305
-
306
- ## 1.0.0
307
-
308
- ### Major Changes
309
-
310
- - af94706: pluv.io is now stable and production ready!
311
-
312
- With this v1 release, pluv.io will now follow [semantic versioning](https://semver.org/) with more comprehensive release notes for future changes to the library.
313
-
314
- Checkout the [full documentation here](https://pluv.io/docs/introduction) to get started today!
315
-
316
- ### Patch Changes
317
-
318
- - Updated dependencies [af94706]
319
- - @pluv/crdt@1.0.0
320
- - @pluv/types@1.0.0
321
-
322
- ## 0.44.2
323
-
324
- ### Patch Changes
325
-
326
- - @pluv/crdt@0.44.2
327
- - @pluv/types@0.44.2
328
-
329
- ## 0.44.1
330
-
331
- ### Patch Changes
332
-
333
- - @pluv/crdt@0.44.1
334
- - @pluv/types@0.44.1
335
-
336
- ## 0.44.0
337
-
338
- ### Patch Changes
339
-
340
- - @pluv/crdt@0.44.0
341
- - @pluv/types@0.44.0
342
-
343
- ## 0.43.0
344
-
345
- ### Patch Changes
346
-
347
- - @pluv/crdt@0.43.0
348
- - @pluv/types@0.43.0
349
-
350
- ## 0.42.0
351
-
352
- ### Patch Changes
353
-
354
- - @pluv/crdt@0.42.0
355
- - @pluv/types@0.42.0
356
-
357
- ## 0.41.7
358
-
359
- ### Patch Changes
360
-
361
- - @pluv/crdt@0.41.7
362
- - @pluv/types@0.41.7
363
-
364
- ## 0.41.6
365
-
366
- ### Patch Changes
367
-
368
- - @pluv/crdt@0.41.6
369
- - @pluv/types@0.41.6
370
-
371
- ## 0.41.5
372
-
373
- ### Patch Changes
374
-
375
- - @pluv/crdt@0.41.5
376
- - @pluv/types@0.41.5
377
-
378
- ## 0.41.4
379
-
380
- ### Patch Changes
381
-
382
- - @pluv/crdt@0.41.4
383
- - @pluv/types@0.41.4
384
-
385
- ## 0.41.3
386
-
387
- ### Patch Changes
388
-
389
- - @pluv/crdt@0.41.3
390
- - @pluv/types@0.41.3
391
-
392
- ## 0.41.2
393
-
394
- ### Patch Changes
395
-
396
- - @pluv/crdt@0.41.2
397
- - @pluv/types@0.41.2
398
-
399
- ## 0.41.1
400
-
401
- ### Patch Changes
402
-
403
- - @pluv/crdt@0.41.1
404
- - @pluv/types@0.41.1
405
-
406
- ## 0.41.0
407
-
408
- ### Patch Changes
409
-
410
- - @pluv/crdt@0.41.0
411
- - @pluv/types@0.41.0
412
-
413
- ## 0.40.2
414
-
415
- ### Patch Changes
416
-
417
- - @pluv/crdt@0.40.2
418
- - @pluv/types@0.40.2
419
-
420
- ## 0.40.1
421
-
422
- ### Patch Changes
423
-
424
- - @pluv/crdt@0.40.1
425
- - @pluv/types@0.40.1
426
-
427
- ## 0.40.0
428
-
429
- ### Patch Changes
430
-
431
- - @pluv/crdt@0.40.0
432
- - @pluv/types@0.40.0
433
-
434
- ## 0.39.1
435
-
436
- ### Patch Changes
437
-
438
- - @pluv/crdt@0.39.1
439
- - @pluv/types@0.39.1
440
-
441
- ## 0.39.0
442
-
443
- ### Patch Changes
444
-
445
- - @pluv/crdt@0.39.0
446
- - @pluv/types@0.39.0
447
-
448
- ## 0.38.14
449
-
450
- ### Patch Changes
451
-
452
- - @pluv/crdt@0.38.14
453
- - @pluv/types@0.38.14
454
-
455
- ## 0.38.13
456
-
457
- ### Patch Changes
458
-
459
- - @pluv/crdt@0.38.13
460
- - @pluv/types@0.38.13
461
-
462
- ## 0.38.12
463
-
464
- ### Patch Changes
465
-
466
- - @pluv/crdt@0.38.12
467
- - @pluv/types@0.38.12
468
-
469
- ## 0.38.11
470
-
471
- ### Patch Changes
472
-
473
- - @pluv/crdt@0.38.11
474
- - @pluv/types@0.38.11
475
-
476
- ## 0.38.10
477
-
478
- ### Patch Changes
479
-
480
- - @pluv/crdt@0.38.10
481
- - @pluv/types@0.38.10
482
-
483
- ## 0.38.9
484
-
485
- ### Patch Changes
486
-
487
- - @pluv/crdt@0.38.9
488
- - @pluv/types@0.38.9
489
-
490
- ## 0.38.8
491
-
492
- ### Patch Changes
493
-
494
- - @pluv/crdt@0.38.8
495
- - @pluv/types@0.38.8
496
-
497
- ## 0.38.7
498
-
499
- ### Patch Changes
500
-
501
- - @pluv/crdt@0.38.7
502
- - @pluv/types@0.38.7
503
-
504
- ## 0.38.6
505
-
506
- ### Patch Changes
507
-
508
- - @pluv/crdt@0.38.6
509
- - @pluv/types@0.38.6
510
-
511
- ## 0.38.5
512
-
513
- ### Patch Changes
514
-
515
- - @pluv/crdt@0.38.5
516
- - @pluv/types@0.38.5
517
-
518
- ## 0.38.4
519
-
520
- ### Patch Changes
521
-
522
- - @pluv/crdt@0.38.4
523
- - @pluv/types@0.38.4
524
-
525
- ## 0.38.3
526
-
527
- ### Patch Changes
528
-
529
- - @pluv/crdt@0.38.3
530
- - @pluv/types@0.38.3
531
-
532
- ## 0.38.2
533
-
534
- ### Patch Changes
535
-
536
- - @pluv/crdt@0.38.2
537
- - @pluv/types@0.38.2
538
-
539
- ## 0.38.1
540
-
541
- ### Patch Changes
542
-
543
- - @pluv/crdt@0.38.1
544
- - @pluv/types@0.38.1
545
-
546
- ## 0.38.0
547
-
548
- ### Patch Changes
549
-
550
- - Updated dependencies [f4ceca3]
551
- - @pluv/types@0.38.0
552
- - @pluv/crdt@0.38.0
553
-
554
- ## 0.37.7
555
-
556
- ### Patch Changes
557
-
558
- - @pluv/crdt@0.37.7
559
- - @pluv/types@0.37.7
560
-
561
- ## 0.37.6
562
-
563
- ### Patch Changes
564
-
565
- - @pluv/crdt@0.37.6
566
- - @pluv/types@0.37.6
567
-
568
- ## 0.37.5
569
-
570
- ### Patch Changes
571
-
572
- - @pluv/crdt@0.37.5
573
- - @pluv/types@0.37.5
574
-
575
- ## 0.37.4
576
-
577
- ### Patch Changes
578
-
579
- - @pluv/crdt@0.37.4
580
- - @pluv/types@0.37.4
581
-
582
- ## 0.37.3
583
-
584
- ### Patch Changes
585
-
586
- - @pluv/crdt@0.37.3
587
- - @pluv/types@0.37.3
588
-
589
- ## 0.37.2
590
-
591
- ### Patch Changes
592
-
593
- - @pluv/crdt@0.37.2
594
- - @pluv/types@0.37.2
595
-
596
- ## 0.37.1
597
-
598
- ### Patch Changes
599
-
600
- - @pluv/crdt@0.37.1
601
- - @pluv/types@0.37.1
602
-
603
- ## 0.37.0
604
-
605
- ### Patch Changes
606
-
607
- - @pluv/crdt@0.37.0
608
- - @pluv/types@0.37.0
609
-
610
- ## 0.36.0
611
-
612
- ### Patch Changes
613
-
614
- - @pluv/crdt@0.36.0
615
- - @pluv/types@0.36.0
616
-
617
- ## 0.35.4
618
-
619
- ### Patch Changes
620
-
621
- - @pluv/crdt@0.35.4
622
- - @pluv/types@0.35.4
623
-
624
- ## 0.35.3
625
-
626
- ### Patch Changes
627
-
628
- - 7c8e7ef: Upgraded `loro-crdt` from `1.3.1` to `1.3.2`.
629
- - @pluv/crdt@0.35.3
630
- - @pluv/types@0.35.3
631
-
632
- ## 0.35.2
633
-
634
- ### Patch Changes
635
-
636
- - Updated dependencies [81cb692]
637
- - @pluv/types@0.35.2
638
- - @pluv/crdt@0.35.2
639
-
640
- ## 0.35.1
641
-
642
- ### Patch Changes
643
-
644
- - 9822786: Added missing `Tree` and `MovableList` types.
645
- - 3cd6571: Added support for undo/redo for `@pluv/crdt-loro`.
646
- - @pluv/crdt@0.35.1
647
- - @pluv/types@0.35.1
648
-
649
- ## 0.35.0
650
-
651
- ### Patch Changes
652
-
653
- - @pluv/crdt@0.35.0
654
- - @pluv/types@0.35.0
655
-
656
- ## 0.34.1
657
-
658
- ### Patch Changes
659
-
660
- - @pluv/crdt@0.34.1
661
- - @pluv/types@0.34.1
662
-
663
- ## 0.34.0
664
-
665
- ### Patch Changes
666
-
667
- - @pluv/crdt@0.34.0
668
- - @pluv/types@0.34.0
669
-
670
- ## 0.33.0
671
-
672
- ### Minor Changes
673
-
674
- - d99ac96: Require peer dependency loro-crdt@^1.0.0.
675
-
676
- ### Patch Changes
677
-
678
- - f54d8ce: Update internal, deprecated `loro-crdt` methods.
679
- - @pluv/crdt@0.33.0
680
- - @pluv/types@0.33.0
681
-
682
- ## 0.32.9
683
-
684
- ### Patch Changes
685
-
686
- - cef5911: Bump `loro-crdt` from `0.16.12` to `1.0.8`.
687
- - @pluv/crdt@0.32.9
688
- - @pluv/types@0.32.9
689
-
690
- ## 0.32.8
691
-
692
- ### Patch Changes
693
-
694
- - @pluv/crdt@0.32.8
695
- - @pluv/types@0.32.8
696
-
697
- ## 0.32.7
698
-
699
- ### Patch Changes
700
-
701
- - @pluv/crdt@0.32.7
702
- - @pluv/types@0.32.7
703
-
704
- ## 0.32.6
705
-
706
- ### Patch Changes
707
-
708
- - @pluv/crdt@0.32.6
709
- - @pluv/types@0.32.6
710
-
711
- ## 0.32.5
712
-
713
- ### Patch Changes
714
-
715
- - @pluv/crdt@0.32.5
716
- - @pluv/types@0.32.5
717
-
718
- ## 0.32.4
719
-
720
- ### Patch Changes
721
-
722
- - @pluv/crdt@0.32.4
723
- - @pluv/types@0.32.4
724
-
725
- ## 0.32.3
726
-
727
- ### Patch Changes
728
-
729
- - @pluv/crdt@0.32.3
730
- - @pluv/types@0.32.3
731
-
732
- ## 0.32.2
733
-
734
- ### Patch Changes
735
-
736
- - @pluv/crdt@0.32.2
737
- - @pluv/types@0.32.2
738
-
739
- ## 0.32.1
740
-
741
- ### Patch Changes
742
-
743
- - @pluv/crdt@0.32.1
744
- - @pluv/types@0.32.1
745
-
746
- ## 0.32.0
747
-
748
- ### Patch Changes
749
-
750
- - @pluv/crdt@0.32.0
751
- - @pluv/types@0.32.0
752
-
753
- ## 0.31.0
754
-
755
- ### Patch Changes
756
-
757
- - @pluv/crdt@0.31.0
758
- - @pluv/types@0.31.0
759
-
760
- ## 0.30.2
761
-
762
- ### Patch Changes
763
-
764
- - @pluv/crdt@0.30.2
765
- - @pluv/types@0.30.2
766
-
767
- ## 0.30.1
768
-
769
- ### Patch Changes
770
-
771
- - @pluv/crdt@0.30.1
772
- - @pluv/types@0.30.1
773
-
774
- ## 0.30.0
775
-
776
- ### Patch Changes
777
-
778
- - 7246a9e: Added `CrdtLibraryType` so that `@pluv/crdt-yjs` and `@pluv/crdt-loro` export a new property `kind` containing an identifier for the crdt.
779
- - @pluv/crdt@0.30.0
780
- - @pluv/types@0.30.0
781
-
782
- ## 0.29.0
783
-
784
- ### Patch Changes
785
-
786
- - @pluv/crdt@0.29.0
787
- - @pluv/types@0.29.0
788
-
789
- ## 0.28.0
790
-
791
- ### Patch Changes
792
-
793
- - @pluv/crdt@0.28.0
794
- - @pluv/types@0.28.0
795
-
796
- ## 0.27.0
797
-
798
- ### Patch Changes
799
-
800
- - @pluv/crdt@0.27.0
801
- - @pluv/types@0.27.0
802
-
803
- ## 0.26.0
804
-
805
- ### Patch Changes
806
-
807
- - @pluv/crdt@0.26.0
808
- - @pluv/types@0.26.0
809
-
810
- ## 0.25.4
811
-
812
- ### Patch Changes
813
-
814
- - @pluv/crdt@0.25.4
815
- - @pluv/types@0.25.4
816
-
817
- ## 0.25.3
818
-
819
- ### Patch Changes
820
-
821
- - @pluv/crdt@0.25.3
822
- - @pluv/types@0.25.3
823
-
824
- ## 0.25.2
825
-
826
- ### Patch Changes
827
-
828
- - @pluv/crdt@0.25.2
829
- - @pluv/types@0.25.2
830
-
831
- ## 0.25.1
832
-
833
- ### Patch Changes
834
-
835
- - @pluv/crdt@0.25.1
836
- - @pluv/types@0.25.1
837
-
838
- ## 0.25.0
839
-
840
- ### Patch Changes
841
-
842
- - @pluv/crdt@0.25.0
843
- - @pluv/types@0.25.0
844
-
845
- ## 0.24.1
846
-
847
- ### Patch Changes
848
-
849
- - @pluv/crdt@0.24.1
850
- - @pluv/types@0.24.1
851
-
852
- ## 0.24.0
853
-
854
- ### Patch Changes
855
-
856
- - @pluv/crdt@0.24.0
857
- - @pluv/types@0.24.0
858
-
859
- ## 0.23.0
860
-
861
- ### Patch Changes
862
-
863
- - @pluv/crdt@0.23.0
864
- - @pluv/types@0.23.0
865
-
866
- ## 0.22.0
867
-
868
- ### Patch Changes
869
-
870
- - @pluv/crdt@0.22.0
871
- - @pluv/types@0.22.0
872
-
873
- ## 0.21.1
874
-
875
- ### Patch Changes
876
-
877
- - @pluv/crdt@0.21.1
878
- - @pluv/types@0.21.1
879
-
880
- ## 0.21.0
881
-
882
- ### Patch Changes
883
-
884
- - @pluv/crdt@0.21.0
885
- - @pluv/types@0.21.0
886
-
887
- ## 0.20.0
888
-
889
- ### Minor Changes
890
-
891
- - 9492085: **BREAKING**: `@pluv/crdt-yjs` and `@pluv/crdt-loro` have been updated so that the utilities to create shared-types/containers no-longer return a wrapper around the underlying shared-types and containers, but rather return the shared-types/containers directly.
892
-
893
- This means that for methods such as `getStorage` from `@pluv/client` and `useStorage` from `@pluv/react`, the shared-types/containers are also returned instead of the wrapper types.
894
-
895
- The motivation for these changes are so that pluv.io is supplementary to `yjs` and `loro-crdt`, instead of having these libraries be an internal implementation of pluv.io.
896
-
897
- ```ts
898
- // Before
899
-
900
- import { yjs } from "@pluv/crdt-yjs";
901
-
902
- yjs.array([]); // Returns CrdtYjsArray
903
- yjs.object([]); // Returns CrdtYjsObject
904
-
905
- const room: PluvRoom = /* ... */;
906
-
907
- room.getStorage("messages"); // Returns AbstractCrdtType
908
-
909
- const [, sharedType] = useStorage("messages"); // sharedType is an AbstractCrdtType
910
- ```
911
-
912
- ```ts
913
- // Now
914
-
915
- import { yjs } from "@pluv/crdt-yjs";
916
-
917
- yjs.array([]); // Returns yjs.Array
918
- yjs.object([]); // Returns yjs.Map
919
-
920
- const room: PluvRoom = /* ... */;
921
-
922
- room.getStorage("messages"); // Returns yjs.AbstractType
923
-
924
- const [, sharedType] = useStorage("messages"); // sharedType is a yjs.AbstractType
925
- ```
926
-
927
- For `@pluv/crdt-loro` specifically, `@pluv/client` relies on [loro events and subscriptions](https://www.loro.dev/docs/tutorial/get_started#event) to detect changes. The `AbstractLoroCrdt` types previously called `Loro.commit` after each change as an abstraction, but now this no-longer happens. To ensure that changes to loro containers are properly handled in `@pluv/react`, make sure to commit your changes whenever possible:
928
-
929
- ```ts
930
- // Before
931
-
932
- const [data, container] = useStorage("messages");
933
-
934
- // This automatically called Loro.commit under the hood and rerendered the page with updated data.
935
- container.push(loro.object({ name: "John Doe", age: 35 }));
936
- ```
937
-
938
- ```ts
939
- // Now
940
-
941
- const [data, container] = useStorage("messages");
942
-
943
- const doc = useDoc();
944
- const transact = useTransact();
945
-
946
- // Updates need to be committed back to the doc whenever the changes need to be emitted to other users
947
- // The returned data also will not update until the changes are commited
948
-
949
- // The two operations below are functionally equivalent
950
- transact(() => {
951
- container.push(loro.object({ name: "John Doe", age: 35 }));
952
- });
953
-
954
- container.push(loro.object({ name: "John Doe", age: 35 }));
955
- doc.value.commit();
956
- ```
957
-
958
- ### Patch Changes
959
-
960
- - Updated dependencies [9492085]
961
- - @pluv/crdt@0.20.0
962
- - @pluv/types@0.20.0
963
-
964
- ## 0.19.0
965
-
966
- ### Patch Changes
967
-
968
- - @pluv/crdt@0.19.0
969
- - @pluv/types@0.19.0
970
-
971
- ## 0.18.0
972
-
973
- ### Patch Changes
974
-
975
- - Updated dependencies [99b5ca9]
976
- - @pluv/types@0.18.0
977
- - @pluv/crdt@0.18.0
978
-
979
- ## 0.17.3
980
-
981
- ### Patch Changes
982
-
983
- - @pluv/crdt@0.17.3
984
- - @pluv/types@0.17.3
985
-
986
- ## 0.17.2
987
-
988
- ### Patch Changes
989
-
990
- - @pluv/crdt@0.17.2
991
- - @pluv/types@0.17.2
992
-
993
- ## 0.17.1
994
-
995
- ### Patch Changes
996
-
997
- - @pluv/crdt@0.17.1
998
- - @pluv/types@0.17.1
999
-
1000
- ## 0.17.0
1001
-
1002
- ### Patch Changes
1003
-
1004
- - Updated dependencies [507bc00]
1005
- - @pluv/types@0.17.0
1006
- - @pluv/crdt@0.17.0
1007
-
1008
- ## 0.16.3
1009
-
1010
- ### Patch Changes
1011
-
1012
- - @pluv/crdt@0.16.3
1013
- - @pluv/types@0.16.3
1014
-
1015
- ## 0.16.2
1016
-
1017
- ### Patch Changes
1018
-
1019
- - @pluv/crdt@0.16.2
1020
- - @pluv/types@0.16.2
1021
-
1022
- ## 0.16.1
1023
-
1024
- ### Patch Changes
1025
-
1026
- - @pluv/crdt@0.16.1
1027
- - @pluv/types@0.16.1
1028
-
1029
- ## 0.16.0
1030
-
1031
- ### Patch Changes
1032
-
1033
- - @pluv/crdt@0.16.0
1034
- - @pluv/types@0.16.0