korajs 1.0.0-beta.7 → 1.0.0-beta.8
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/index.cjs +1 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -8
- package/dist/index.js.map +1 -1
- package/package.json +13 -13
package/dist/index.cjs
CHANGED
|
@@ -1294,12 +1294,9 @@ function queryDescriptorToSyncSubset(descriptor) {
|
|
|
1294
1294
|
}
|
|
1295
1295
|
if (skippedFields.length > 0 && typeof console !== "undefined") {
|
|
1296
1296
|
console.warn(
|
|
1297
|
-
`[Kora] Sync query subset
|
|
1297
|
+
`[Kora] Sync query subset widened non-equality filters on ${descriptor.collection}: ${skippedFields.join(", ")}. Only plain equality WHERE clauses are represented for incremental sync; unsupported predicates sync the containing collection subset and are filtered locally.`
|
|
1298
1298
|
);
|
|
1299
1299
|
}
|
|
1300
|
-
if (Object.keys(where).length === 0) {
|
|
1301
|
-
return null;
|
|
1302
|
-
}
|
|
1303
1300
|
return {
|
|
1304
1301
|
collection: descriptor.collection,
|
|
1305
1302
|
where
|
|
@@ -1308,10 +1305,6 @@ function queryDescriptorToSyncSubset(descriptor) {
|
|
|
1308
1305
|
function createSyncQuerySubscriptionHook(getSyncEngine) {
|
|
1309
1306
|
return (descriptor) => {
|
|
1310
1307
|
const subset = queryDescriptorToSyncSubset(descriptor);
|
|
1311
|
-
if (!subset) {
|
|
1312
|
-
return () => {
|
|
1313
|
-
};
|
|
1314
|
-
}
|
|
1315
1308
|
const engine = getSyncEngine();
|
|
1316
1309
|
if (!engine) {
|
|
1317
1310
|
return () => {
|