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 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 omitted non-equality filters on ${descriptor.collection}: ${skippedFields.join(", ")}. Only plain equality WHERE clauses are registered for incremental sync.`
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 () => {