@avalw/search-worker 2.3.4 → 2.3.5

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.
Files changed (2) hide show
  1. package/index.js +4 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @avalw/search-worker v2.3.4
2
+ * @avalw/search-worker v2.3.5
3
3
  * Distributed Cache Worker for AVALW Search Network
4
4
  *
5
5
  * Workers connect to the coordinator via WebSocket and serve as
@@ -606,7 +606,7 @@ class SearchWorker {
606
606
  // Invalidate a cache key
607
607
  if (message.key) {
608
608
  this.cache._evict(message.key, 'invalidate');
609
- this.onLog(`Cache invalidated: ${message.key.substring(0, 30)}...`);
609
+ // Privacy: Don't log cache keys
610
610
  }
611
611
  break;
612
612
 
@@ -647,7 +647,7 @@ class SearchWorker {
647
647
  value
648
648
  });
649
649
 
650
- this.onLog(`Cache HIT: ${key.substring(0, 30)}...`);
650
+ // Privacy: Don't log cache keys (they contain search queries)
651
651
  } else {
652
652
  this.stats.cacheMisses++;
653
653
 
@@ -676,8 +676,7 @@ class SearchWorker {
676
676
  this.stats.cacheStored++;
677
677
  this.onCacheStore(key);
678
678
 
679
- const cacheStats = this.cache.getStats();
680
- this.onLog(`Cached: ${key.substring(0, 30)}... (${cacheStats.entries} entries, ${cacheStats.sizeFormatted})`);
679
+ // Privacy: Don't log cache keys (they contain search queries)
681
680
  }
682
681
 
683
682
  // Send cache registry to coordinator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@avalw/search-worker",
3
- "version": "2.3.4",
3
+ "version": "2.3.5",
4
4
  "description": "AVALW Distributed Cache Worker - Intelligent caching with size limits and auto-cleanup",
5
5
  "main": "index.js",
6
6
  "bin": {