Skip to content

Commit 47cb8e7

Browse files
committed
Update to latest crdt version
1 parent 7fb2e7e commit 47cb8e7

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
## 3.0.1
2+
3+
- Update to latest `crdt` version
4+
15
## 3.0.0
6+
27
This version introduces a major refactor which results in multiple breaking changes in line with `crdt` 5.0.0.
38

49
This package is now compatible with [crdt_sync](https://github.com/cachapa/crdt_sync), thereby abstracting the communication protocol and network management for real-time remote synchronization.
@@ -8,35 +13,46 @@ Changes:
813
- Added multiple table support
914

1015
## 2.0.4
16+
1117
- Avoid repeated records when generating changesets using `since`
1218

1319
## 2.0.3
20+
1421
- Update to Dart 3
1522

1623
## 2.0.2
24+
1725
- Fix watching for changes during a store purge
1826

1927
## 2.0.1
28+
2029
- Add purge() method to clear the data store
2130

2231
## 2.0.0
32+
2333
- Reapply breaking change: Remove nodeId from HlcAdapter, please use HlcCompatAdapter for backward compatibility
2434

2535
## 1.1.1
36+
2637
- Revert breaking change on minor version bump
2738

2839
## 1.1.0
40+
2941
- Breaking: Remove nodeId from HlcAdapter, please use HlcCompatAdapter for backward compatibility
3042

3143
## 1.0.3
44+
3245
- Fix getRecord returning non-nullable type
3346

3447
## 1.0.2
48+
3549
- Fix (de)serialization of deleted records
3650

3751
## 1.0.1
52+
3853
- Migrate to Dart null safety
3954

4055
## 0.1.0
56+
4157
- Project imported from [crdt](https://github.com/cachapa/crdt)
4258
- Implement `crdt` version `3.0.0`

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: hive_crdt
22
description: Dart implementation of Conflict-free Replicated Data Types (CRDTs), backed by a Hive store.
3-
version: 3.0.0
3+
version: 3.0.1
44
homepage: https://github.com/cachapa/hive_crdt
55
repository: https://github.com/cachapa/hive_crdt
66
issue_tracker: https://github.com/cachapa/hive_crdt/issues
@@ -9,7 +9,7 @@ environment:
99
sdk: '>=3.0.0 <4.0.0'
1010

1111
dependencies:
12-
crdt: ^5.0.0
12+
crdt: ^5.0.2
1313
# path: ../crdt
1414
hive: ^2.2.3
1515

test/hive_crdt_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import 'package:hive/hive.dart';
44
import 'package:hive_crdt/src/hive_adapters.dart';
55
import 'package:hive_crdt/src/hive_crdt.dart';
66
import 'package:test/test.dart';
7+
import 'package:uuid/uuid.dart';
78

89
Future<void> get _delay => Future.delayed(Duration(milliseconds: 1));
910

@@ -32,8 +33,7 @@ void main() {
3233
});
3334

3435
test('Node ID', () {
35-
print(crdt.isEmpty);
36-
// expect(Uuid.isValidUUID(fromString: crdt.nodeId), true);
36+
expect(Uuid.isValidUUID(fromString: crdt.nodeId), true);
3737
});
3838

3939
test('Empty', () {
@@ -228,13 +228,11 @@ void main() {
228228
});
229229

230230
test('After HLC', () {
231-
print(crdt1.canonicalTime);
232231
expect(crdt.getChangeset(modifiedAfter: crdt1.canonicalTime),
233232
crdt2.getChangeset());
234233
});
235234

236235
test('Empty changeset', () {
237-
print(crdt2.canonicalTime);
238236
expect(crdt.getChangeset(modifiedAfter: crdt2.canonicalTime), {});
239237
});
240238

0 commit comments

Comments
 (0)