@powersync/service-module-postgres-storage 0.11.1 → 0.12.0
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 +49 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/@types/migrations/scripts/1771232439485-storage-version.d.ts +3 -0
- package/dist/@types/migrations/scripts/1771491856000-sync-plan.d.ts +3 -0
- package/dist/@types/storage/PostgresBucketStorageFactory.d.ts +2 -10
- package/dist/@types/storage/PostgresCompactor.d.ts +2 -1
- package/dist/@types/storage/sync-rules/PostgresPersistedSyncRulesContent.d.ts +1 -10
- package/dist/@types/types/models/SyncRules.d.ts +12 -2
- package/dist/@types/types/models/json.d.ts +11 -0
- package/dist/@types/types/types.d.ts +2 -0
- package/dist/@types/utils/db.d.ts +9 -0
- package/dist/migrations/scripts/1771232439485-storage-version.js +111 -0
- package/dist/migrations/scripts/1771232439485-storage-version.js.map +1 -0
- package/dist/migrations/scripts/1771491856000-sync-plan.js +91 -0
- package/dist/migrations/scripts/1771491856000-sync-plan.js.map +1 -0
- package/dist/storage/PostgresBucketStorageFactory.js +16 -55
- package/dist/storage/PostgresBucketStorageFactory.js.map +1 -1
- package/dist/storage/PostgresCompactor.js +41 -60
- package/dist/storage/PostgresCompactor.js.map +1 -1
- package/dist/storage/sync-rules/PostgresPersistedSyncRulesContent.js +14 -30
- package/dist/storage/sync-rules/PostgresPersistedSyncRulesContent.js.map +1 -1
- package/dist/types/models/SyncRules.js +12 -1
- package/dist/types/models/SyncRules.js.map +1 -1
- package/dist/types/models/json.js +21 -0
- package/dist/types/models/json.js.map +1 -0
- package/dist/utils/db.js +32 -0
- package/dist/utils/db.js.map +1 -1
- package/dist/utils/test-utils.js +39 -10
- package/dist/utils/test-utils.js.map +1 -1
- package/package.json +8 -8
- package/src/migrations/scripts/1771232439485-storage-version.ts +44 -0
- package/src/migrations/scripts/1771491856000-sync-plan.ts +21 -0
- package/src/storage/PostgresBucketStorageFactory.ts +18 -65
- package/src/storage/PostgresCompactor.ts +46 -64
- package/src/storage/sync-rules/PostgresPersistedSyncRulesContent.ts +13 -33
- package/src/types/models/SyncRules.ts +16 -1
- package/src/types/models/json.ts +26 -0
- package/src/utils/db.ts +37 -0
- package/src/utils/test-utils.ts +30 -10
- package/test/src/__snapshots__/storage_sync.test.ts.snap +1116 -21
- package/test/src/migrations.test.ts +8 -1
- package/test/src/storage.test.ts +11 -11
- package/test/src/storage_compacting.test.ts +51 -2
- package/test/src/storage_sync.test.ts +146 -4
- package/test/src/util.ts +3 -0
- package/test/tsconfig.json +2 -6
- package/test/src/__snapshots__/storage.test.ts.snap +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @powersync/service-module-postgres-storage
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8a4c34e: Refactor `BucketStorageFactory` and `PersistedSyncRulesContent` to be abstract classes instead of interfaces.
|
|
8
|
+
- 8bd83e8: Introduce storage versions.
|
|
9
|
+
- 83989b2: Store compiled sync plans in bucket storage.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 65f3c89: Improve Postgres compaction performance by replacing bucket range filtering with incremental discovery and per-bucket exact-match queries, eliminating `COLLATE "C"` and `U+FFFF` sentinel usage.
|
|
14
|
+
|
|
15
|
+
- The compactor logic is an internal refactor that improves query performance (no API change)
|
|
16
|
+
- The CLI change adds validation but is a correction (prefix matching was broken/unused anyway)
|
|
17
|
+
- The `CompactOptions.compactBuckets` JSDoc is a documentation-only update
|
|
18
|
+
|
|
19
|
+
Resolves #400.
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [15aea77]
|
|
22
|
+
- Updated dependencies [0998251]
|
|
23
|
+
- Updated dependencies [65f3c89]
|
|
24
|
+
- Updated dependencies [1c45667]
|
|
25
|
+
- Updated dependencies [8785a3f]
|
|
26
|
+
- Updated dependencies [8a4c34e]
|
|
27
|
+
- Updated dependencies [b440093]
|
|
28
|
+
- Updated dependencies [d7ff4ad]
|
|
29
|
+
- Updated dependencies [c683322]
|
|
30
|
+
- Updated dependencies [8bd83e8]
|
|
31
|
+
- Updated dependencies [83989b2]
|
|
32
|
+
- Updated dependencies [79a9729]
|
|
33
|
+
- Updated dependencies [5edd95f]
|
|
34
|
+
- @powersync/lib-service-postgres@0.4.22
|
|
35
|
+
- @powersync/service-jpgwire@0.21.13
|
|
36
|
+
- @powersync/service-core@1.20.0
|
|
37
|
+
- @powersync/service-types@0.15.0
|
|
38
|
+
- @powersync/service-sync-rules@0.32.0
|
|
39
|
+
- @powersync/lib-services-framework@0.8.3
|
|
40
|
+
|
|
41
|
+
## 0.11.2
|
|
42
|
+
|
|
43
|
+
### Patch Changes
|
|
44
|
+
|
|
45
|
+
- Updated dependencies [a04252d]
|
|
46
|
+
- @powersync/service-sync-rules@0.31.1
|
|
47
|
+
- @powersync/lib-services-framework@0.8.2
|
|
48
|
+
- @powersync/service-jpgwire@0.21.12
|
|
49
|
+
- @powersync/service-core@1.19.2
|
|
50
|
+
- @powersync/lib-service-postgres@0.4.21
|
|
51
|
+
|
|
3
52
|
## 0.11.1
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|