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