@powersync/service-module-mysql 0.14.1 → 0.14.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 +16 -0
- package/package.json +8 -8
- package/test/src/BinlogStreamUtils.ts +3 -3
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @powersync/service-module-mysql
|
|
2
2
|
|
|
3
|
+
## 0.14.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e4f683d: [MongoDB Storage] Add experimental option to allow reading data from secondaries.
|
|
8
|
+
- Updated dependencies [71d4a0a]
|
|
9
|
+
- Updated dependencies [e4f683d]
|
|
10
|
+
- Updated dependencies [71d4a0a]
|
|
11
|
+
- Updated dependencies [a6ae678]
|
|
12
|
+
- Updated dependencies [c2edf86]
|
|
13
|
+
- Updated dependencies [df9ab1e]
|
|
14
|
+
- @powersync/service-core@1.23.2
|
|
15
|
+
- @powersync/service-sync-rules@0.38.1
|
|
16
|
+
- @powersync/service-types@0.16.1
|
|
17
|
+
- @powersync/lib-services-framework@0.9.7
|
|
18
|
+
|
|
3
19
|
## 0.14.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-module-mysql",
|
|
3
3
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
|
-
"version": "0.14.
|
|
4
|
+
"version": "0.14.2",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -20,18 +20,18 @@
|
|
|
20
20
|
"ts-codec": "^1.3.0",
|
|
21
21
|
"uri-js": "^4.4.1",
|
|
22
22
|
"uuid": "^14.0.0",
|
|
23
|
-
"@powersync/lib-services-framework": "0.9.
|
|
24
|
-
"@powersync/service-core": "1.23.
|
|
25
|
-
"@powersync/service-sync-rules": "0.38.
|
|
26
|
-
"@powersync/service-types": "0.16.
|
|
23
|
+
"@powersync/lib-services-framework": "0.9.7",
|
|
24
|
+
"@powersync/service-core": "1.23.2",
|
|
25
|
+
"@powersync/service-sync-rules": "0.38.1",
|
|
26
|
+
"@powersync/service-types": "0.16.1",
|
|
27
27
|
"@powersync/service-jsonbig": "0.17.13"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/async": "^3.2.24",
|
|
31
31
|
"@types/semver": "^7.7.1",
|
|
32
|
-
"@powersync/service-core-tests": "0.17.
|
|
33
|
-
"@powersync/service-module-mongodb-storage": "0.18.
|
|
34
|
-
"@powersync/service-module-postgres-storage": "0.16.
|
|
32
|
+
"@powersync/service-core-tests": "0.17.1",
|
|
33
|
+
"@powersync/service-module-mongodb-storage": "0.18.2",
|
|
34
|
+
"@powersync/service-module-postgres-storage": "0.16.2"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"build": "tsc -b",
|
|
@@ -148,7 +148,7 @@ export class BinlogStreamTestContext {
|
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
async getCheckpoint(options?: { timeout?: number }): Promise<
|
|
151
|
+
async getCheckpoint(options?: { timeout?: number }): Promise<ReplicationCheckpoint> {
|
|
152
152
|
const connection = await this.connectionManager.getConnection();
|
|
153
153
|
let checkpoint = await Promise.race([
|
|
154
154
|
getClientCheckpoint(connection, this.factory, { timeout: options?.timeout ?? 60_000 }),
|
|
@@ -192,7 +192,7 @@ export async function getClientCheckpoint(
|
|
|
192
192
|
connection: mysqlPromise.Connection,
|
|
193
193
|
storageFactory: BucketStorageFactory,
|
|
194
194
|
options?: { timeout?: number }
|
|
195
|
-
): Promise<
|
|
195
|
+
): Promise<ReplicationCheckpoint> {
|
|
196
196
|
const start = Date.now();
|
|
197
197
|
const gtid = await readExecutedGtid(connection);
|
|
198
198
|
// This old API needs a persisted checkpoint id.
|
|
@@ -210,7 +210,7 @@ export async function getClientCheckpoint(
|
|
|
210
210
|
}
|
|
211
211
|
lastCp = cp;
|
|
212
212
|
if (cp.lsn && cp.lsn >= gtid.comparable) {
|
|
213
|
-
return cp
|
|
213
|
+
return cp;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
await new Promise((resolve) => setTimeout(resolve, 30));
|