@powersync/service-core 1.26.1 → 1.27.1
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 +67 -0
- package/dist/api/RouteAPI.d.ts +8 -1
- package/dist/api/api-index.d.ts +1 -0
- package/dist/api/api-index.js +1 -0
- package/dist/api/api-index.js.map +1 -1
- package/dist/api/diagnostics.js +33 -16
- package/dist/api/diagnostics.js.map +1 -1
- package/dist/api/source-capabilities.d.ts +7 -0
- package/dist/api/source-capabilities.js +23 -0
- package/dist/api/source-capabilities.js.map +1 -0
- package/dist/auth/JwtPayload.d.ts +2 -2
- package/dist/auth/JwtPayload.js +2 -2
- package/dist/auth/JwtPayload.js.map +1 -1
- package/dist/entry/commands/compact-action.js +1 -1
- package/dist/entry/commands/compact-action.js.map +1 -1
- package/dist/entry/commands/config-command.js +1 -1
- package/dist/entry/commands/config-command.js.map +1 -1
- package/dist/migrations/PowerSyncMigrationManager.js +2 -1
- package/dist/migrations/PowerSyncMigrationManager.js.map +1 -1
- package/dist/replication/AbstractReplicationJob.d.ts +4 -6
- package/dist/replication/AbstractReplicationJob.js.map +1 -1
- package/dist/replication/AbstractReplicator.d.ts +15 -0
- package/dist/replication/AbstractReplicator.js +37 -5
- package/dist/replication/AbstractReplicator.js.map +1 -1
- package/dist/replication/ReplicationModule.d.ts +0 -7
- package/dist/replication/ReplicationModule.js +13 -3
- package/dist/replication/ReplicationModule.js.map +1 -1
- package/dist/routes/configure-fastify.d.ts +39 -27
- package/dist/routes/endpoints/admin.d.ts +78 -54
- package/dist/routes/endpoints/admin.js +24 -10
- package/dist/routes/endpoints/admin.js.map +1 -1
- package/dist/routes/endpoints/socket-route.js +7 -5
- package/dist/routes/endpoints/socket-route.js.map +1 -1
- package/dist/routes/endpoints/sync-rules.js +39 -6
- package/dist/routes/endpoints/sync-rules.js.map +1 -1
- package/dist/storage/BucketStorageFactory.d.ts +20 -3
- package/dist/storage/BucketStorageFactory.js +25 -2
- package/dist/storage/BucketStorageFactory.js.map +1 -1
- package/dist/storage/PersistedSyncConfigContent.d.ts +2 -1
- package/dist/storage/PersistedSyncConfigContent.js.map +1 -1
- package/dist/storage/StorageProvider.d.ts +3 -0
- package/dist/storage/StorageVersionConfig.d.ts +0 -4
- package/dist/storage/StorageVersionConfig.js +0 -4
- package/dist/storage/StorageVersionConfig.js.map +1 -1
- package/dist/storage/SyncRulesBucketStorage.d.ts +3 -1
- package/dist/storage/SyncRulesBucketStorage.js.map +1 -1
- package/dist/storage/implementation/IncrementalReprocessingCompatibility.js +9 -5
- package/dist/storage/implementation/IncrementalReprocessingCompatibility.js.map +1 -1
- package/dist/sync/BucketChecksumState.d.ts +1 -1
- package/dist/sync/BucketChecksumState.js +5 -4
- package/dist/sync/BucketChecksumState.js.map +1 -1
- package/dist/util/param-logging.d.ts +5 -2
- package/dist/util/param-logging.js +17 -9
- package/dist/util/param-logging.js.map +1 -1
- package/dist/util/protocol-types.d.ts +7 -7
- package/dist/util/protocol-types.js +3 -3
- package/package.json +11 -11
- package/src/api/RouteAPI.ts +9 -1
- package/src/api/api-index.ts +1 -0
- package/src/api/diagnostics.ts +30 -14
- package/src/api/source-capabilities.ts +24 -0
- package/src/auth/JwtPayload.ts +2 -2
- package/src/entry/commands/compact-action.ts +1 -1
- package/src/entry/commands/config-command.ts +1 -1
- package/src/migrations/PowerSyncMigrationManager.ts +2 -1
- package/src/replication/AbstractReplicationJob.ts +2 -4
- package/src/replication/AbstractReplicator.ts +46 -5
- package/src/replication/ReplicationModule.ts +12 -12
- package/src/routes/endpoints/admin.ts +29 -11
- package/src/routes/endpoints/socket-route.ts +9 -6
- package/src/routes/endpoints/sync-rules.ts +42 -9
- package/src/storage/BucketStorageFactory.ts +33 -4
- package/src/storage/PersistedSyncConfigContent.ts +3 -0
- package/src/storage/StorageProvider.ts +3 -0
- package/src/storage/StorageVersionConfig.ts +0 -5
- package/src/storage/SyncRulesBucketStorage.ts +3 -1
- package/src/storage/implementation/IncrementalReprocessingCompatibility.ts +17 -5
- package/src/sync/BucketChecksumState.ts +5 -4
- package/src/util/param-logging.ts +21 -14
- package/src/util/protocol-types.ts +5 -5
- package/test/src/AbstractReplicator.test.ts +156 -0
- package/test/src/broadcast_iterable.test.ts +26 -8
- package/test/src/diagnostics.test.ts +128 -0
- package/test/src/routes/admin.test.ts +235 -4
- package/test/src/routes/sync-rules.test.ts +124 -0
- package/test/src/source_table_config.test.ts +104 -0
- package/test/src/storage/BucketStorageFactory.test.ts +46 -0
- package/test/src/sync/BucketChecksumState.test.ts +195 -6
- package/test/src/util/param-logging.test.ts +59 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as t from 'ts-codec';
|
|
2
2
|
import { schema } from '@powersync/lib-services-framework';
|
|
3
3
|
import * as types from '@powersync/service-types';
|
|
4
|
+
import * as api from '../api/api-index.js';
|
|
4
5
|
import * as modules from '../modules/modules-index.js';
|
|
5
6
|
/**
|
|
6
7
|
* A replication module describes all the functionality that PowerSync requires to
|
|
@@ -38,9 +39,18 @@ export class ReplicationModule extends modules.AbstractModule {
|
|
|
38
39
|
const baseMatchingConfig = matchingConfig[0];
|
|
39
40
|
// If decoding fails, this will raise a hard error, and stop the service.
|
|
40
41
|
this.decodeConfig(baseMatchingConfig);
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const sourceAPI = this.createRouteAPIAdapter();
|
|
43
|
+
// The router exists even in replication-only mode and owns adapter shutdown through the service lifecycle.
|
|
44
|
+
context.routerEngine.registerAPI(sourceAPI);
|
|
45
|
+
if (context.replicationEngine) {
|
|
46
|
+
const replicator = this.createReplicator(context);
|
|
47
|
+
if (sourceAPI.validateSourceCapabilities != null) {
|
|
48
|
+
// KLUDGE: Reuse the adapter validation for filesystem-loaded configs.
|
|
49
|
+
// A shared validation interface could replace this registration through the route adapter in the future.
|
|
50
|
+
replicator.registerSourceCapabilitiesAssertion((config) => api.assertSourceCapabilities(sourceAPI, config));
|
|
51
|
+
}
|
|
52
|
+
context.replicationEngine.register(replicator);
|
|
53
|
+
}
|
|
44
54
|
}
|
|
45
55
|
decodeConfig(config) {
|
|
46
56
|
this.validateConfig(config);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReplicationModule.js","sourceRoot":"","sources":["../../src/replication/ReplicationModule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ReplicationModule.js","sourceRoot":"","sources":["../../src/replication/ReplicationModule.ts"],"names":[],"mappings":"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"}
|
|
@@ -92,19 +92,22 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
92
92
|
sync_rules_content?: boolean | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
connections: {
|
|
95
|
+
id: string;
|
|
95
96
|
errors: {
|
|
96
|
-
level: "warning" | "fatal";
|
|
97
97
|
message: string;
|
|
98
|
+
level: "warning" | "fatal";
|
|
98
99
|
location?: {
|
|
99
100
|
start_offset: number;
|
|
100
101
|
end_offset: number;
|
|
101
102
|
} | undefined;
|
|
102
103
|
ts?: string | undefined;
|
|
103
104
|
}[];
|
|
104
|
-
id: string;
|
|
105
105
|
connected: boolean;
|
|
106
106
|
postgres_uri: string;
|
|
107
107
|
}[];
|
|
108
|
+
service?: {
|
|
109
|
+
version: string;
|
|
110
|
+
} | undefined;
|
|
108
111
|
active_sync_rules?: {
|
|
109
112
|
errors: {
|
|
110
113
|
level: "warning" | "fatal";
|
|
@@ -191,25 +194,29 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
191
194
|
version_label?: string | null | undefined;
|
|
192
195
|
content?: string | undefined;
|
|
193
196
|
} | undefined;
|
|
197
|
+
sync_config_source?: "config" | "api" | undefined;
|
|
194
198
|
}, import("./router.js").Context, import("./router.js").RequestEndpointHandlerPayload<{
|
|
195
199
|
sync_rules_content?: boolean | undefined;
|
|
196
200
|
}, import("./router.js").Context, import("./router.js").BasicRouterRequest>, import("@powersync/lib-services-framework").EndpointHandler<import("./router.js").RequestEndpointHandlerPayload<{
|
|
197
201
|
sync_rules_content?: boolean | undefined;
|
|
198
202
|
}, import("./router.js").Context, import("./router.js").BasicRouterRequest>, {
|
|
199
203
|
connections: {
|
|
204
|
+
id: string;
|
|
200
205
|
errors: {
|
|
201
|
-
level: "warning" | "fatal";
|
|
202
206
|
message: string;
|
|
207
|
+
level: "warning" | "fatal";
|
|
203
208
|
location?: {
|
|
204
209
|
start_offset: number;
|
|
205
210
|
end_offset: number;
|
|
206
211
|
} | undefined;
|
|
207
212
|
ts?: string | undefined;
|
|
208
213
|
}[];
|
|
209
|
-
id: string;
|
|
210
214
|
connected: boolean;
|
|
211
215
|
postgres_uri: string;
|
|
212
216
|
}[];
|
|
217
|
+
service?: {
|
|
218
|
+
version: string;
|
|
219
|
+
} | undefined;
|
|
213
220
|
active_sync_rules?: {
|
|
214
221
|
errors: {
|
|
215
222
|
level: "warning" | "fatal";
|
|
@@ -296,6 +303,7 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
296
303
|
version_label?: string | null | undefined;
|
|
297
304
|
content?: string | undefined;
|
|
298
305
|
} | undefined;
|
|
306
|
+
sync_config_source?: "config" | "api" | undefined;
|
|
299
307
|
}>> & {
|
|
300
308
|
path: string;
|
|
301
309
|
method: import("@powersync/lib-services-framework").HTTPMethod.POST;
|
|
@@ -313,19 +321,22 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
313
321
|
sync_rules_content?: boolean | undefined;
|
|
314
322
|
}, import("./router.js").Context, import("./router.js").BasicRouterRequest>) => Promise<{
|
|
315
323
|
connections: {
|
|
324
|
+
id: string;
|
|
316
325
|
errors: {
|
|
317
|
-
level: "warning" | "fatal";
|
|
318
326
|
message: string;
|
|
327
|
+
level: "warning" | "fatal";
|
|
319
328
|
location?: {
|
|
320
329
|
start_offset: number;
|
|
321
330
|
end_offset: number;
|
|
322
331
|
} | undefined;
|
|
323
332
|
ts?: string | undefined;
|
|
324
333
|
}[];
|
|
325
|
-
id: string;
|
|
326
334
|
connected: boolean;
|
|
327
335
|
postgres_uri: string;
|
|
328
336
|
}[];
|
|
337
|
+
service?: {
|
|
338
|
+
version: string;
|
|
339
|
+
} | undefined;
|
|
329
340
|
active_sync_rules?: {
|
|
330
341
|
errors: {
|
|
331
342
|
level: "warning" | "fatal";
|
|
@@ -412,8 +423,10 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
412
423
|
version_label?: string | null | undefined;
|
|
413
424
|
content?: string | undefined;
|
|
414
425
|
} | undefined;
|
|
426
|
+
sync_config_source?: "config" | "api" | undefined;
|
|
415
427
|
}>;
|
|
416
428
|
}) | (import("@powersync/lib-services-framework").Endpoint<{}, {
|
|
429
|
+
defaultSchema: string;
|
|
417
430
|
connections: {
|
|
418
431
|
tag: string;
|
|
419
432
|
schemas: {
|
|
@@ -422,9 +435,9 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
422
435
|
name: string;
|
|
423
436
|
columns: {
|
|
424
437
|
name: string;
|
|
438
|
+
type: string;
|
|
425
439
|
sqlite_type: number | import("@powersync/service-types").SqliteSchemaTypeText;
|
|
426
440
|
internal_type: string;
|
|
427
|
-
type: string;
|
|
428
441
|
pg_type: string;
|
|
429
442
|
description?: string | undefined;
|
|
430
443
|
}[];
|
|
@@ -432,9 +445,9 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
432
445
|
}[];
|
|
433
446
|
id?: string | undefined;
|
|
434
447
|
}[];
|
|
435
|
-
defaultSchema: string;
|
|
436
448
|
defaultConnectionTag: string;
|
|
437
449
|
}, import("./router.js").Context, import("./router.js").RequestEndpointHandlerPayload<{}, import("./router.js").Context, import("./router.js").BasicRouterRequest>, import("@powersync/lib-services-framework").EndpointHandler<import("./router.js").RequestEndpointHandlerPayload<{}, import("./router.js").Context, import("./router.js").BasicRouterRequest>, {
|
|
450
|
+
defaultSchema: string;
|
|
438
451
|
connections: {
|
|
439
452
|
tag: string;
|
|
440
453
|
schemas: {
|
|
@@ -443,9 +456,9 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
443
456
|
name: string;
|
|
444
457
|
columns: {
|
|
445
458
|
name: string;
|
|
459
|
+
type: string;
|
|
446
460
|
sqlite_type: number | import("@powersync/service-types").SqliteSchemaTypeText;
|
|
447
461
|
internal_type: string;
|
|
448
|
-
type: string;
|
|
449
462
|
pg_type: string;
|
|
450
463
|
description?: string | undefined;
|
|
451
464
|
}[];
|
|
@@ -453,7 +466,6 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
453
466
|
}[];
|
|
454
467
|
id?: string | undefined;
|
|
455
468
|
}[];
|
|
456
|
-
defaultSchema: string;
|
|
457
469
|
defaultConnectionTag: string;
|
|
458
470
|
}>> & {
|
|
459
471
|
path: string;
|
|
@@ -467,6 +479,7 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
467
479
|
};
|
|
468
480
|
validator: import("@powersync/lib-services-framework").MicroValidator<{}, string[]>;
|
|
469
481
|
handler: (payload: import("./router.js").RequestEndpointHandlerPayload<{}, import("./router.js").Context, import("./router.js").BasicRouterRequest>) => Promise<{
|
|
482
|
+
defaultSchema: string;
|
|
470
483
|
connections: {
|
|
471
484
|
tag: string;
|
|
472
485
|
schemas: {
|
|
@@ -475,9 +488,9 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
475
488
|
name: string;
|
|
476
489
|
columns: {
|
|
477
490
|
name: string;
|
|
491
|
+
type: string;
|
|
478
492
|
sqlite_type: number | import("@powersync/service-types").SqliteSchemaTypeText;
|
|
479
493
|
internal_type: string;
|
|
480
|
-
type: string;
|
|
481
494
|
pg_type: string;
|
|
482
495
|
description?: string | undefined;
|
|
483
496
|
}[];
|
|
@@ -485,7 +498,6 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
485
498
|
}[];
|
|
486
499
|
id?: string | undefined;
|
|
487
500
|
}[];
|
|
488
|
-
defaultSchema: string;
|
|
489
501
|
defaultConnectionTag: string;
|
|
490
502
|
}>;
|
|
491
503
|
}) | (import("@powersync/lib-services-framework").Endpoint<{}, {
|
|
@@ -522,8 +534,8 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
522
534
|
sync_rules: string;
|
|
523
535
|
}, {
|
|
524
536
|
errors: {
|
|
525
|
-
level: "warning" | "fatal";
|
|
526
537
|
message: string;
|
|
538
|
+
level: "warning" | "fatal";
|
|
527
539
|
location?: {
|
|
528
540
|
start_offset: number;
|
|
529
541
|
end_offset: number;
|
|
@@ -536,18 +548,18 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
536
548
|
tables: {
|
|
537
549
|
name: string;
|
|
538
550
|
schema: string;
|
|
539
|
-
replication_id: string[];
|
|
540
|
-
data_queries: boolean;
|
|
541
|
-
parameter_queries: boolean;
|
|
542
551
|
errors: {
|
|
543
|
-
level: "warning" | "fatal";
|
|
544
552
|
message: string;
|
|
553
|
+
level: "warning" | "fatal";
|
|
545
554
|
location?: {
|
|
546
555
|
start_offset: number;
|
|
547
556
|
end_offset: number;
|
|
548
557
|
} | undefined;
|
|
549
558
|
ts?: string | undefined;
|
|
550
559
|
}[];
|
|
560
|
+
replication_id: string[];
|
|
561
|
+
data_queries: boolean;
|
|
562
|
+
parameter_queries: boolean;
|
|
551
563
|
pattern?: string | undefined;
|
|
552
564
|
}[];
|
|
553
565
|
slot_name: string;
|
|
@@ -568,8 +580,8 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
568
580
|
sync_rules: string;
|
|
569
581
|
}, import("./router.js").Context, import("./router.js").BasicRouterRequest>, {
|
|
570
582
|
errors: {
|
|
571
|
-
level: "warning" | "fatal";
|
|
572
583
|
message: string;
|
|
584
|
+
level: "warning" | "fatal";
|
|
573
585
|
location?: {
|
|
574
586
|
start_offset: number;
|
|
575
587
|
end_offset: number;
|
|
@@ -582,18 +594,18 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
582
594
|
tables: {
|
|
583
595
|
name: string;
|
|
584
596
|
schema: string;
|
|
585
|
-
replication_id: string[];
|
|
586
|
-
data_queries: boolean;
|
|
587
|
-
parameter_queries: boolean;
|
|
588
597
|
errors: {
|
|
589
|
-
level: "warning" | "fatal";
|
|
590
598
|
message: string;
|
|
599
|
+
level: "warning" | "fatal";
|
|
591
600
|
location?: {
|
|
592
601
|
start_offset: number;
|
|
593
602
|
end_offset: number;
|
|
594
603
|
} | undefined;
|
|
595
604
|
ts?: string | undefined;
|
|
596
605
|
}[];
|
|
606
|
+
replication_id: string[];
|
|
607
|
+
data_queries: boolean;
|
|
608
|
+
parameter_queries: boolean;
|
|
597
609
|
pattern?: string | undefined;
|
|
598
610
|
}[];
|
|
599
611
|
slot_name: string;
|
|
@@ -625,8 +637,8 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
625
637
|
sync_rules: string;
|
|
626
638
|
}, import("./router.js").Context, import("./router.js").BasicRouterRequest>) => Promise<{
|
|
627
639
|
errors: {
|
|
628
|
-
level: "warning" | "fatal";
|
|
629
640
|
message: string;
|
|
641
|
+
level: "warning" | "fatal";
|
|
630
642
|
location?: {
|
|
631
643
|
start_offset: number;
|
|
632
644
|
end_offset: number;
|
|
@@ -639,18 +651,18 @@ export declare const DEFAULT_ROUTE_OPTIONS: {
|
|
|
639
651
|
tables: {
|
|
640
652
|
name: string;
|
|
641
653
|
schema: string;
|
|
642
|
-
replication_id: string[];
|
|
643
|
-
data_queries: boolean;
|
|
644
|
-
parameter_queries: boolean;
|
|
645
654
|
errors: {
|
|
646
|
-
level: "warning" | "fatal";
|
|
647
655
|
message: string;
|
|
656
|
+
level: "warning" | "fatal";
|
|
648
657
|
location?: {
|
|
649
658
|
start_offset: number;
|
|
650
659
|
end_offset: number;
|
|
651
660
|
} | undefined;
|
|
652
661
|
ts?: string | undefined;
|
|
653
662
|
}[];
|
|
663
|
+
replication_id: string[];
|
|
664
|
+
data_queries: boolean;
|
|
665
|
+
parameter_queries: boolean;
|
|
654
666
|
pattern?: string | undefined;
|
|
655
667
|
}[];
|
|
656
668
|
slot_name: string;
|