@powersync/service-module-postgres-storage 0.0.0-dev-20250122110924 → 0.0.0-dev-20250214100224
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 +69 -12
- package/README.md +7 -1
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/storage/PostgresBucketStorageFactory.d.ts +3 -4
- package/dist/@types/storage/batch/PostgresBucketBatch.d.ts +4 -4
- package/dist/@types/types/codecs.d.ts +2 -2
- package/dist/@types/types/models/BucketData.d.ts +1 -1
- package/dist/@types/types/models/BucketParameters.d.ts +2 -2
- package/dist/@types/types/models/CurrentData.d.ts +3 -3
- package/dist/storage/PostgresBucketStorageFactory.js +27 -16
- package/dist/storage/PostgresBucketStorageFactory.js.map +1 -1
- package/dist/storage/batch/PostgresBucketBatch.js +26 -17
- package/dist/storage/batch/PostgresBucketBatch.js.map +1 -1
- package/dist/storage/batch/PostgresPersistedBatch.js +39 -81
- package/dist/storage/batch/PostgresPersistedBatch.js.map +1 -1
- package/package.json +9 -9
- package/src/storage/PostgresBucketStorageFactory.ts +31 -20
- package/src/storage/batch/PostgresBucketBatch.ts +33 -20
- package/src/storage/batch/PostgresPersistedBatch.ts +39 -81
- package/tsconfig.json +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,81 @@
|
|
|
1
1
|
# @powersync/service-module-postgres-storage
|
|
2
2
|
|
|
3
|
-
## 0.0.0-dev-
|
|
3
|
+
## 0.0.0-dev-20250214100224
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- Updated dependencies [84d03b8]
|
|
8
|
+
- @powersync/service-core@0.0.0-dev-20250214100224
|
|
9
|
+
- @powersync/service-core-tests@0.0.0-dev-20250214100224
|
|
10
|
+
|
|
11
|
+
## 0.3.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- 4b43cdb: Exit replication process when sync rules are not valid; configurable with a new `sync_rules.exit_on_error` option.
|
|
16
|
+
- 9a9e668: Target Node.JS version 22, ES2024
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [e26e434]
|
|
21
|
+
- Updated dependencies [4b43cdb]
|
|
22
|
+
- Updated dependencies [9a9e668]
|
|
23
|
+
- @powersync/service-sync-rules@0.23.4
|
|
24
|
+
- @powersync/service-core-tests@0.4.0
|
|
25
|
+
- @powersync/service-core@0.18.0
|
|
26
|
+
- @powersync/service-types@0.8.0
|
|
27
|
+
- @powersync/lib-services-framework@0.5.1
|
|
28
|
+
- @powersync/lib-service-postgres@0.3.1
|
|
29
|
+
|
|
30
|
+
## 0.2.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [223f701]
|
|
35
|
+
- @powersync/lib-service-postgres@0.3.0
|
|
36
|
+
|
|
37
|
+
## 0.2.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- 23fb49f: Allowed using the same Postgres server for the replication source and sync bucket storage. This is only supported on Postgres versions newer than 14.0.
|
|
42
|
+
- 23fb49f: Added the ability to skip creating empty sync checkpoints if no changes were present in a batch.
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- 23fb49f: Fix bug where listening to active checkpoint notifications on an ended connection could cause a crash.
|
|
47
|
+
- Updated dependencies [23fb49f]
|
|
48
|
+
- @powersync/service-core@0.17.0
|
|
49
|
+
- @powersync/service-core-tests@0.3.3
|
|
50
|
+
|
|
51
|
+
## 0.1.2
|
|
52
|
+
|
|
53
|
+
### Patch Changes
|
|
54
|
+
|
|
55
|
+
- Updated dependencies [5043a82]
|
|
56
|
+
- @powersync/service-sync-rules@0.23.3
|
|
57
|
+
- @powersync/service-core@0.16.1
|
|
58
|
+
- @powersync/service-core-tests@0.3.2
|
|
59
|
+
|
|
60
|
+
## 0.1.1
|
|
61
|
+
|
|
62
|
+
### Patch Changes
|
|
63
|
+
|
|
64
|
+
- f049aa9: Introduce standard error codes
|
|
65
|
+
- Updated dependencies [f049aa9]
|
|
9
66
|
- Updated dependencies [8675236]
|
|
10
|
-
- Updated dependencies [
|
|
67
|
+
- Updated dependencies [f049aa9]
|
|
11
68
|
- Updated dependencies [8675236]
|
|
12
69
|
- Updated dependencies [8675236]
|
|
13
70
|
- Updated dependencies [8675236]
|
|
14
|
-
- Updated dependencies [
|
|
15
|
-
- @powersync/service-core@0.
|
|
16
|
-
- @powersync/service-sync-rules@0.
|
|
17
|
-
- @powersync/service-types@0.
|
|
18
|
-
- @powersync/lib-service-postgres@0.
|
|
19
|
-
- @powersync/lib-services-framework@0.
|
|
20
|
-
- @powersync/service-jpgwire@0.
|
|
21
|
-
- @powersync/service-core-tests@0.
|
|
71
|
+
- Updated dependencies [f049aa9]
|
|
72
|
+
- @powersync/service-core@0.16.0
|
|
73
|
+
- @powersync/service-sync-rules@0.23.2
|
|
74
|
+
- @powersync/service-types@0.7.1
|
|
75
|
+
- @powersync/lib-service-postgres@0.2.0
|
|
76
|
+
- @powersync/lib-services-framework@0.5.0
|
|
77
|
+
- @powersync/service-jpgwire@0.19.0
|
|
78
|
+
- @powersync/service-core-tests@0.3.1
|
|
22
79
|
|
|
23
80
|
## 0.1.0
|
|
24
81
|
|
package/README.md
CHANGED
|
@@ -31,7 +31,13 @@ storage:
|
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
**IMPORTANT**:
|
|
34
|
-
|
|
34
|
+
|
|
35
|
+
Separate Postgres servers are required for replication connections **if using PostgreSQL versions below 14**.
|
|
36
|
+
|
|
37
|
+
| PostgreSQL Version | Server configuration |
|
|
38
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
39
|
+
| Below 14 | Separate servers are required for the source and sync bucket storage. Replication will be blocked if the same server is detected. |
|
|
40
|
+
| 14 and above | The source database and sync bucket storage database can be on the same server. Using the same database (with separate schemas) is supported but may lead to higher CPU usage. Using separate servers remains an option. |
|
|
35
41
|
|
|
36
42
|
### Connection credentials
|
|
37
43
|
|