@@ -64,7 +64,6 @@ describe('pglite-sync', () => {
64
64
// insert
65
65
await feedMessage ( {
66
66
headers : { operation : 'insert' } ,
67
- offset : '-1' ,
68
67
key : 'id1' ,
69
68
value : {
70
69
id : 1 ,
@@ -83,7 +82,6 @@ describe('pglite-sync', () => {
83
82
// update
84
83
await feedMessage ( {
85
84
headers : { operation : 'update' } ,
86
- offset : '-1' ,
87
85
key : 'id1' ,
88
86
value : {
89
87
id : 1 ,
@@ -102,7 +100,6 @@ describe('pglite-sync', () => {
102
100
// delete
103
101
await feedMessage ( {
104
102
headers : { operation : 'delete' } ,
105
- offset : '-1' ,
106
103
key : 'id1' ,
107
104
value : {
108
105
id : 1 ,
@@ -315,7 +312,6 @@ describe('pglite-sync', () => {
315
312
await feedMessages ( [
316
313
{
317
314
headers : { operation : 'insert' } ,
318
- offset : `1_${ numInserts } ` ,
319
315
key : `id${ numInserts } ` ,
320
316
value : {
321
317
id : numInserts ,
@@ -326,7 +322,6 @@ describe('pglite-sync', () => {
326
322
{ headers : { control : 'must-refetch' } } ,
327
323
{
328
324
headers : { operation : 'insert' } ,
329
- offset : `2_1` ,
330
325
key : `id21` ,
331
326
value : {
332
327
id : 21 ,
@@ -466,7 +461,6 @@ describe('pglite-sync', () => {
466
461
// insert
467
462
await feedMessage ( {
468
463
headers : { operation : 'insert' } ,
469
- offset : '-1' ,
470
464
key : 'id1' ,
471
465
value : {
472
466
id : 1 ,
@@ -485,7 +479,6 @@ describe('pglite-sync', () => {
485
479
// update with no columns to update
486
480
await feedMessage ( {
487
481
headers : { operation : 'update' } ,
488
- offset : '-1' ,
489
482
key : 'id1' ,
490
483
value : {
491
484
id : 1 ,
@@ -555,7 +548,6 @@ describe('pglite-sync', () => {
555
548
556
549
await feedMessage ( {
557
550
headers : { operation : 'insert' } ,
558
- offset : '-1' ,
559
551
key : 'id1' ,
560
552
value : {
561
553
id : 'id1' ,
@@ -619,7 +611,6 @@ describe('pglite-sync', () => {
619
611
) ,
620
612
{
621
613
headers : { operation : 'update' as const } ,
622
- offset : `1_${ numInserts } ` ,
623
614
key : `id0` ,
624
615
value : {
625
616
id : 0 ,
@@ -683,7 +674,6 @@ describe('pglite-sync', () => {
683
674
const specialCharMessages : Message [ ] = [
684
675
{
685
676
headers : { operation : 'insert' } ,
686
- offset : '1_0' ,
687
677
key : 'id1' ,
688
678
value : {
689
679
id : 1 ,
@@ -693,7 +683,6 @@ describe('pglite-sync', () => {
693
683
} ,
694
684
{
695
685
headers : { operation : 'insert' } ,
696
- offset : '2_0' ,
697
686
key : 'id2' ,
698
687
value : {
699
688
id : 2 ,
@@ -703,7 +692,6 @@ describe('pglite-sync', () => {
703
692
} ,
704
693
{
705
694
headers : { operation : 'insert' } ,
706
- offset : '3_0' ,
707
695
key : 'id3' ,
708
696
value : {
709
697
id : 3 ,
@@ -784,7 +772,6 @@ describe('pglite-sync', () => {
784
772
( _ , idx ) =>
785
773
( {
786
774
headers : { operation : 'insert' } ,
787
- offset : `1_${ idx } ` ,
788
775
key : `id${ idx } ` ,
789
776
value : {
790
777
id : idx ,
@@ -872,7 +859,6 @@ describe('pglite-sync', () => {
872
859
// await feedMessages([
873
860
// {
874
861
// headers: { operation: 'insert' },
875
- // offset: '1_1', // Transaction 1
876
862
// key: 'id1',
877
863
// value: {
878
864
// id: 1,
@@ -882,7 +868,6 @@ describe('pglite-sync', () => {
882
868
// },
883
869
// {
884
870
// headers: { operation: 'insert' },
885
- // offset: '1_2', // Same transaction
886
871
// key: 'id2',
887
872
// value: {
888
873
// id: 2,
@@ -892,7 +877,6 @@ describe('pglite-sync', () => {
892
877
// },
893
878
// {
894
879
// headers: { operation: 'insert' },
895
- // offset: '2_1', // New transaction
896
880
// key: 'id3',
897
881
// value: {
898
882
// id: 3,
@@ -974,19 +958,16 @@ describe('pglite-sync', () => {
974
958
await feedMessages ( [
975
959
{
976
960
headers : { operation : 'insert' } ,
977
- offset : '1_1' ,
978
961
key : 'id1' ,
979
962
value : { id : 1 , task : 'task1' , done : false } ,
980
963
} ,
981
964
{
982
965
headers : { operation : 'insert' } ,
983
- offset : '2_1' ,
984
966
key : 'id2' ,
985
967
value : { id : 2 , task : 'task2' , done : false } ,
986
968
} ,
987
969
{
988
970
headers : { operation : 'insert' } ,
989
- offset : '3_1' ,
990
971
key : 'id3' ,
991
972
value : { id : 3 , task : 'task3' , done : false } ,
992
973
} ,
@@ -1054,19 +1035,16 @@ describe('pglite-sync', () => {
1054
1035
await feedMessages ( [
1055
1036
{
1056
1037
headers : { operation : 'insert' } ,
1057
- offset : '1_1' ,
1058
1038
key : 'id1' ,
1059
1039
value : { id : 1 , task : 'task1' , done : false } ,
1060
1040
} ,
1061
1041
{
1062
1042
headers : { operation : 'insert' } ,
1063
- offset : '1_2' ,
1064
1043
key : 'id2' ,
1065
1044
value : { id : 2 , task : 'task2' , done : false } ,
1066
1045
} ,
1067
1046
{
1068
1047
headers : { operation : 'insert' } ,
1069
- offset : '1_3' ,
1070
1048
key : 'id3' ,
1071
1049
value : { id : 3 , task : 'task3' , done : false } ,
1072
1050
} ,
@@ -1230,7 +1208,6 @@ describe('pglite-sync', () => {
1230
1208
await feedMessages ( [
1231
1209
{
1232
1210
headers : { operation : 'insert' } ,
1233
- offset : '1_1' ,
1234
1211
key : 'id1' ,
1235
1212
value : {
1236
1213
id : 1 ,
@@ -1240,7 +1217,6 @@ describe('pglite-sync', () => {
1240
1217
} ,
1241
1218
{
1242
1219
headers : { operation : 'insert' } ,
1243
- offset : '1_2' ,
1244
1220
key : 'id2' ,
1245
1221
value : {
1246
1222
id : 2 ,
@@ -1257,7 +1233,6 @@ describe('pglite-sync', () => {
1257
1233
await feedMessages ( [
1258
1234
{
1259
1235
headers : { operation : 'insert' } ,
1260
- offset : '1_3' ,
1261
1236
key : 'id3' ,
1262
1237
value : {
1263
1238
id : 3 ,
0 commit comments