@syncular/server 0.39.0 → 0.39.1
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/dist/postgres-storage.js
CHANGED
|
@@ -464,10 +464,7 @@ function writeRowsOn(q, compiled, partition, rows) {
|
|
|
464
464
|
USING batch
|
|
465
465
|
WHERE existing.partition=$${n + 2} AND existing.tbl=$${n + 3}
|
|
466
466
|
AND existing.row_id=batch.row_id
|
|
467
|
-
AND
|
|
468
|
-
SELECT 1 FROM scope
|
|
469
|
-
WHERE scope.row_id=existing.row_id
|
|
470
|
-
AND scope.key=existing.var AND scope.value=existing.value)
|
|
467
|
+
AND batch.scopes->>existing.var IS DISTINCT FROM existing.value
|
|
471
468
|
)
|
|
472
469
|
INSERT INTO sync_row_scopes(partition, tbl, var, value, row_id)
|
|
473
470
|
SELECT $${n + 2}, $${n + 3}, key, value, row_id FROM scope
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/server",
|
|
3
|
-
"version": "0.39.
|
|
3
|
+
"version": "0.39.1",
|
|
4
4
|
"description": "Syncular server: handleSyncRequest + storage/auth interfaces for the sync protocol",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"verify:node": "cd ../.. && bun build ./packages/server/test/sqlite-runtime/verify-node.mjs --target=node --conditions=bun --outfile=./packages/server/.verify-node.built.mjs && node ./packages/server/.verify-node.built.mjs"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@syncular/core": "0.39.
|
|
71
|
+
"@syncular/core": "0.39.1"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@electric-sql/pglite": "^0.5.4"
|
package/src/postgres-storage.ts
CHANGED
|
@@ -785,10 +785,7 @@ function writeRowsOn(
|
|
|
785
785
|
USING batch
|
|
786
786
|
WHERE existing.partition=$${n + 2} AND existing.tbl=$${n + 3}
|
|
787
787
|
AND existing.row_id=batch.row_id
|
|
788
|
-
AND
|
|
789
|
-
SELECT 1 FROM scope
|
|
790
|
-
WHERE scope.row_id=existing.row_id
|
|
791
|
-
AND scope.key=existing.var AND scope.value=existing.value)
|
|
788
|
+
AND batch.scopes->>existing.var IS DISTINCT FROM existing.value
|
|
792
789
|
)
|
|
793
790
|
INSERT INTO sync_row_scopes(partition, tbl, var, value, row_id)
|
|
794
791
|
SELECT $${n + 2}, $${n + 3}, key, value, row_id FROM scope
|