@powersync/service-module-postgres 0.17.0 → 0.17.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 CHANGED
@@ -1,5 +1,31 @@
1
1
  # @powersync/service-module-postgres
2
2
 
3
+ ## 0.17.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [a04252d]
8
+ - @powersync/service-sync-rules@0.31.1
9
+ - @powersync/lib-services-framework@0.8.2
10
+ - @powersync/service-jpgwire@0.21.12
11
+ - @powersync/service-core@1.19.2
12
+ - @powersync/lib-service-postgres@0.4.21
13
+
14
+ ## 0.17.1
15
+
16
+ ### Patch Changes
17
+
18
+ - 479997b: Introduce `BaseSyncConfig` to represent SQL-based sync rules and precompiled sync plans.
19
+ - Updated dependencies [0e99ce0]
20
+ - Updated dependencies [479997b]
21
+ - Updated dependencies [d1c2228]
22
+ - Updated dependencies [1a1a4cc]
23
+ - @powersync/service-sync-rules@0.31.0
24
+ - @powersync/service-core@1.19.1
25
+ - @powersync/lib-services-framework@0.8.1
26
+ - @powersync/service-jpgwire@0.21.11
27
+ - @powersync/lib-service-postgres@0.4.20
28
+
3
29
  ## 0.17.0
4
30
 
5
31
  ### Minor Changes
@@ -20,7 +20,7 @@ export interface GetDebugTablesInfoOptions {
20
20
  publicationName: string;
21
21
  connectionTag: string;
22
22
  tablePatterns: sync_rules.TablePattern[];
23
- syncRules: sync_rules.SqlSyncRules;
23
+ syncRules: sync_rules.SyncConfig;
24
24
  }
25
25
  export declare function getDebugTablesInfo(options: GetDebugTablesInfoOptions): Promise<PatternResult[]>;
26
26
  export interface GetDebugTableInfoOptions {
@@ -30,7 +30,7 @@ export interface GetDebugTableInfoOptions {
30
30
  connectionTag: string;
31
31
  tablePattern: sync_rules.TablePattern;
32
32
  relationId: number | null;
33
- syncRules: sync_rules.SqlSyncRules;
33
+ syncRules: sync_rules.SyncConfig;
34
34
  }
35
35
  export declare function getDebugTableInfo(options: GetDebugTableInfoOptions): Promise<service_types.TableInfo>;
36
36
  export declare function cleanUpReplicationSlot(slotName: string, db: pgwire.PgClient): Promise<void>;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "version": "0.17.0",
8
+ "version": "0.17.2",
9
9
  "main": "dist/index.js",
10
10
  "license": "FSL-1.1-ALv2",
11
11
  "type": "module",
@@ -25,20 +25,20 @@
25
25
  "semver": "^7.5.4",
26
26
  "ts-codec": "^1.3.0",
27
27
  "uuid": "^11.1.0",
28
- "@powersync/lib-service-postgres": "0.4.19",
29
- "@powersync/lib-services-framework": "0.8.0",
30
- "@powersync/service-core": "1.19.0",
31
- "@powersync/service-jpgwire": "0.21.10",
28
+ "@powersync/lib-service-postgres": "0.4.21",
29
+ "@powersync/lib-services-framework": "0.8.2",
30
+ "@powersync/service-core": "1.19.2",
31
+ "@powersync/service-jpgwire": "0.21.12",
32
32
  "@powersync/service-jsonbig": "0.17.12",
33
- "@powersync/service-sync-rules": "0.30.0",
33
+ "@powersync/service-sync-rules": "0.31.1",
34
34
  "@powersync/service-types": "0.14.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/semver": "^7.5.4",
38
- "@powersync/service-core-tests": "0.13.0",
39
- "@powersync/service-module-mongodb-storage": "0.13.0",
40
- "@powersync/lib-service-postgres": "0.4.19",
41
- "@powersync/service-module-postgres-storage": "0.11.0"
38
+ "@powersync/service-core-tests": "0.13.2",
39
+ "@powersync/service-module-mongodb-storage": "0.13.2",
40
+ "@powersync/lib-service-postgres": "0.4.21",
41
+ "@powersync/service-module-postgres-storage": "0.11.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsc -b",
@@ -196,7 +196,7 @@ export interface GetDebugTablesInfoOptions {
196
196
  publicationName: string;
197
197
  connectionTag: string;
198
198
  tablePatterns: sync_rules.TablePattern[];
199
- syncRules: sync_rules.SqlSyncRules;
199
+ syncRules: sync_rules.SyncConfig;
200
200
  }
201
201
 
202
202
  export async function getDebugTablesInfo(options: GetDebugTablesInfoOptions): Promise<PatternResult[]> {
@@ -296,7 +296,7 @@ export interface GetDebugTableInfoOptions {
296
296
  connectionTag: string;
297
297
  tablePattern: sync_rules.TablePattern;
298
298
  relationId: number | null;
299
- syncRules: sync_rules.SqlSyncRules;
299
+ syncRules: sync_rules.SyncConfig;
300
300
  }
301
301
 
302
302
  export async function getDebugTableInfo(options: GetDebugTableInfoOptions): Promise<service_types.TableInfo> {
@@ -21,13 +21,13 @@ bucket_definitions:
21
21
 
22
22
  const syncRules = await context.factory.updateSyncRules({ content: syncRuleContent });
23
23
 
24
- const tablePatterns = syncRules.parsed({ defaultSchema: 'public' }).sync_rules.getSourceTables();
24
+ const tablePatterns = syncRules.parsed({ defaultSchema: 'public' }).sync_rules.config.getSourceTables();
25
25
  const tableInfo = await getDebugTablesInfo({
26
26
  db: pool,
27
27
  publicationName: context.publicationName,
28
28
  connectionTag: context.connectionTag,
29
29
  tablePatterns: tablePatterns,
30
- syncRules: syncRules.parsed({ defaultSchema: 'public' }).sync_rules
30
+ syncRules: syncRules.parsed({ defaultSchema: 'public' }).sync_rules.config
31
31
  });
32
32
  expect(tableInfo).toEqual([
33
33
  {
@@ -1,17 +1,13 @@
1
1
  {
2
- "extends": "../../../tsconfig.base.json",
2
+ "extends": "../../../tsconfig.tests.json",
3
3
  "compilerOptions": {
4
- "rootDir": "src",
5
4
  "baseUrl": "./",
6
- "noEmit": true,
7
- "esModuleInterop": true,
8
- "skipLibCheck": true,
9
- "sourceMap": true,
10
5
  "paths": {
11
6
  "@/*": ["../../../packages/service-core/src/*"],
12
7
  "@module/*": ["../src/*"],
13
8
  "@core-tests/*": ["../../../packages/service-core/test/src/*"]
14
- }
9
+ },
10
+ "rootDir": "src"
15
11
  },
16
12
  "include": ["src"],
17
13
  "references": [