@powersync/service-module-mysql 0.0.0-dev-20241119082750 → 0.0.0-dev-20241128134723
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,30 +1,38 @@
|
|
|
1
1
|
# @powersync/service-module-mysql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-dev-
|
|
3
|
+
## 0.0.0-dev-20241128134723
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [74548e4]
|
|
8
|
+
- @powersync/service-core@0.0.0-dev-20241128134723
|
|
9
|
+
- @powersync/service-types@0.0.0-dev-20241128134723
|
|
10
|
+
|
|
11
|
+
## 0.1.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
|
6
14
|
|
|
7
|
-
-
|
|
15
|
+
- 57bd18b: Generate random serverId based on syncrule id for MySQL replication client
|
|
8
16
|
Consolidated type mappings between snapshot and replicated values
|
|
9
17
|
Enabled MySQL tests in CI
|
|
10
|
-
-
|
|
18
|
+
- 57bd18b: Introduced alpha support for MySQL as a datasource for replication.
|
|
11
19
|
Bunch of cleanup
|
|
12
20
|
|
|
13
21
|
### Patch Changes
|
|
14
22
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- Updated dependencies [
|
|
18
|
-
- Updated dependencies [
|
|
19
|
-
- Updated dependencies [
|
|
20
|
-
- Updated dependencies [
|
|
21
|
-
- Updated dependencies [
|
|
22
|
-
- Updated dependencies [
|
|
23
|
-
- Updated dependencies [
|
|
24
|
-
- Updated dependencies [
|
|
25
|
-
- Updated dependencies [
|
|
26
|
-
- Updated dependencies [
|
|
27
|
-
- @powersync/service-core@0.
|
|
28
|
-
- @powersync/lib-services-framework@0.
|
|
29
|
-
- @powersync/service-sync-rules@0.
|
|
30
|
-
- @powersync/service-types@0.
|
|
23
|
+
- 57bd18b: Fixed MySQL version checking to better handle non-semantic version strings
|
|
24
|
+
- 57bd18b: Fixed mysql schema json parsing
|
|
25
|
+
- Updated dependencies [57bd18b]
|
|
26
|
+
- Updated dependencies [57bd18b]
|
|
27
|
+
- Updated dependencies [57bd18b]
|
|
28
|
+
- Updated dependencies [57bd18b]
|
|
29
|
+
- Updated dependencies [57bd18b]
|
|
30
|
+
- Updated dependencies [57bd18b]
|
|
31
|
+
- Updated dependencies [57bd18b]
|
|
32
|
+
- Updated dependencies [57bd18b]
|
|
33
|
+
- Updated dependencies [57bd18b]
|
|
34
|
+
- Updated dependencies [57bd18b]
|
|
35
|
+
- @powersync/service-core@0.9.0
|
|
36
|
+
- @powersync/lib-services-framework@0.2.0
|
|
37
|
+
- @powersync/service-sync-rules@0.21.0
|
|
38
|
+
- @powersync/service-types@0.3.0
|
|
@@ -26,12 +26,6 @@ export class MySQLErrorRateLimiter {
|
|
|
26
26
|
// Could be fail2ban or similar
|
|
27
27
|
this.setDelay(120000);
|
|
28
28
|
}
|
|
29
|
-
else if (message.includes('Unable to do postgres query on ended pool') ||
|
|
30
|
-
message.includes('Postgres unexpectedly closed connection')) {
|
|
31
|
-
// Connection timed out - ignore / immediately retry
|
|
32
|
-
// We don't explicitly set the delay to 0, since there could have been another error that
|
|
33
|
-
// we need to respect.
|
|
34
|
-
}
|
|
35
29
|
else {
|
|
36
30
|
this.setDelay(30000);
|
|
37
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MySQLErrorRateLimiter.js","sourceRoot":"","sources":["../../src/replication/MySQLErrorRateLimiter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,OAAO,qBAAqB;IAAlC;QACE,gBAAW,GAAW,IAAI,CAAC,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"MySQLErrorRateLimiter.js","sourceRoot":"","sources":["../../src/replication/MySQLErrorRateLimiter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,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AAE,IAAI,CAAC,GAAG,EAAE,GAAG,KAAK,CAAC,CAAC;IACpE,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@powersync/service-module-mysql",
|
|
3
3
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
4
|
"types": "dist/index.d.ts",
|
|
5
|
-
"version": "0.0.0-dev-
|
|
5
|
+
"version": "0.0.0-dev-20241128134723",
|
|
6
6
|
"license": "FSL-1.1-Apache-2.0",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"type": "module",
|
|
@@ -22,26 +22,23 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@powersync/mysql-zongji": "0.
|
|
25
|
+
"@powersync/mysql-zongji": "^0.1.0",
|
|
26
26
|
"semver": "^7.5.4",
|
|
27
27
|
"async": "^3.2.4",
|
|
28
28
|
"mysql2": "^3.11.0",
|
|
29
29
|
"ts-codec": "^1.2.2",
|
|
30
30
|
"uri-js": "^4.4.1",
|
|
31
31
|
"uuid": "^9.0.1",
|
|
32
|
-
"@powersync/lib-services-framework": "0.
|
|
33
|
-
"@powersync/service-core": "0.0.0-dev-
|
|
34
|
-
"@powersync/service-sync-rules": "0.
|
|
35
|
-
"@powersync/service-types": "0.0.0-dev-
|
|
32
|
+
"@powersync/lib-services-framework": "0.2.0",
|
|
33
|
+
"@powersync/service-core": "0.0.0-dev-20241128134723",
|
|
34
|
+
"@powersync/service-sync-rules": "0.21.0",
|
|
35
|
+
"@powersync/service-types": "0.0.0-dev-20241128134723",
|
|
36
36
|
"@powersync/service-jsonbig": "0.17.10"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/semver": "^7.5.4",
|
|
40
40
|
"@types/async": "^3.2.24",
|
|
41
|
-
"@types/uuid": "^9.0.4"
|
|
42
|
-
"typescript": "^5.5.4",
|
|
43
|
-
"vite-tsconfig-paths": "^4.3.2",
|
|
44
|
-
"vitest": "^2.1.1"
|
|
41
|
+
"@types/uuid": "^9.0.4"
|
|
45
42
|
},
|
|
46
43
|
"scripts": {
|
|
47
44
|
"build": "tsc -b",
|
|
@@ -26,13 +26,6 @@ export class MySQLErrorRateLimiter implements ErrorRateLimiter {
|
|
|
26
26
|
} else if (message.includes('ECONNREFUSED')) {
|
|
27
27
|
// Could be fail2ban or similar
|
|
28
28
|
this.setDelay(120_000);
|
|
29
|
-
} else if (
|
|
30
|
-
message.includes('Unable to do postgres query on ended pool') ||
|
|
31
|
-
message.includes('Postgres unexpectedly closed connection')
|
|
32
|
-
) {
|
|
33
|
-
// Connection timed out - ignore / immediately retry
|
|
34
|
-
// We don't explicitly set the delay to 0, since there could have been another error that
|
|
35
|
-
// we need to respect.
|
|
36
29
|
} else {
|
|
37
30
|
this.setDelay(30_000);
|
|
38
31
|
}
|