@zaplier/sdk 1.0.7 → 1.0.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/sdk.js CHANGED
@@ -5983,10 +5983,29 @@
5983
5983
  // - Exact hardware values (use buckets)
5984
5984
  // Generate ultra-stable hash with additional collision resistance
5985
5985
  const stableCoreHash = hashStableCore(coreVector, opts.debug);
5986
- // CRITICAL: Generate enhanced fingerprint hash combining unstable + stable components
5987
- // This prevents collisions by adding stable entropy to the fingerprint hash
5986
+ // CRITICAL: Generate enhanced fingerprint hash combining STABLE components only
5987
+ // Filter out unstable components that change between requests (canvas, webgl, audio)
5988
+ // These components can vary due to GPU state, rendering context, permissions, etc.
5989
+ const unstableComponentKeys = [
5990
+ "canvas",
5991
+ "webgl",
5992
+ "audio", // Visual/audio fingerprints (vary with context)
5993
+ "mathFingerprint",
5994
+ "fontPreferences",
5995
+ "enhancedFonts", // Measurement-based (can timeout/vary)
5996
+ "dateTimeLocale",
5997
+ "accessibilityEnhanced", // Locale/accessibility (can change)
5998
+ "domBlockers",
5999
+ "pluginsEnhanced", // Privacy tools detection (can change)
6000
+ ];
6001
+ const stableComponentValues = {};
6002
+ for (const [key, value] of Object.entries(componentValues)) {
6003
+ if (!unstableComponentKeys.includes(key)) {
6004
+ stableComponentValues[key] = value;
6005
+ }
6006
+ }
5988
6007
  const enhancedComponentValues = {
5989
- ...componentValues, // Unstable components (canvas, webgl, audio, etc.)
6008
+ ...stableComponentValues, // STABLE components only (screen, browser, system, etc.)
5990
6009
  _stableCore: coreVector, // + Ultra-stable components (ua, platform, deviceType, etc.)
5991
6010
  // REMOVED: _hourlyEntropy - was causing visitor ID instability (same user = different IDs)
5992
6011
  };