@pgxsinkit/client 0.1.2 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgxsinkit/client",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "files": [
5
5
  "dist",
6
6
  "src",
@@ -13,6 +13,10 @@
13
13
  ".": {
14
14
  "types": "./src/index.ts",
15
15
  "default": "./dist/index.js"
16
+ },
17
+ "./experimental": {
18
+ "types": "./src/experimental/index.ts",
19
+ "default": "./dist/experimental/index.js"
16
20
  }
17
21
  },
18
22
  "publishConfig": {
@@ -22,12 +26,12 @@
22
26
  "build": "bun --cwd ../.. run build:public-packages"
23
27
  },
24
28
  "dependencies": {
25
- "@pgxsinkit/contracts": "^0.1.2",
26
- "@pgxsinkit/sync-engine": "^0.1.2"
29
+ "@pgxsinkit/contracts": "^0.1.4",
30
+ "@pgxsinkit/sync-engine": "^0.1.4"
27
31
  },
28
32
  "peerDependencies": {
29
33
  "@electric-sql/pglite": "0.4.5",
30
- "drizzle-orm": "1.0.0-rc.2-33e80cd",
34
+ "drizzle-orm": "1.0.0-rc.2",
31
35
  "zod": "^4.4.3"
32
36
  }
33
37
  }
@@ -0,0 +1,9 @@
1
+ export interface LegacyPerTableWriteTransportOptions {
2
+ writeUrl: string;
3
+ }
4
+
5
+ export function toLegacyPerTableWriteTransportOptions(
6
+ options: LegacyPerTableWriteTransportOptions,
7
+ ): LegacyPerTableWriteTransportOptions {
8
+ return options;
9
+ }
package/src/index.ts CHANGED
@@ -150,7 +150,7 @@ export async function createSyncClient<const TRegistry extends SyncTableRegistry
150
150
  db: pglite,
151
151
  registry: options.registry,
152
152
  writeUrl: options.writeUrl,
153
- ...(options.batchWriteUrl !== undefined ? { batchWriteUrl: options.batchWriteUrl } : {}),
153
+ batchWriteUrl: options.batchWriteUrl ?? options.writeUrl,
154
154
  ...(options.authToken ? { authToken: options.authToken } : {}),
155
155
  ...(options.getAuthToken ? { getAuthToken: options.getAuthToken } : {}),
156
156
  });