@geolonia/geonicdb-sdk 0.19.3 → 0.21.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geolonia/geonicdb-sdk",
3
- "version": "0.19.3",
3
+ "version": "0.21.0",
4
4
  "description": "GeonicDB JavaScript SDK — NGSI-LD Context Broker client for browser and Node.js",
5
5
  "main": "geonicdb.cjs",
6
6
  "module": "geonicdb.mjs",
package/react/index.d.ts CHANGED
@@ -474,8 +474,13 @@ export interface RegisterWebPushSubscriptionOptions extends WebPushSubscribeOpti
474
474
  /** NGSI-LD `q` filter (ignored for NGSIv2). */
475
475
  q?: string;
476
476
  /**
477
- * Override the localStorage key used for idempotency. Default includes
478
- * baseUrl + tenant + protocol.
477
+ * Override the localStorage key used for idempotency. Default is
478
+ * `buildWebPushSubscriptionStorageKey(baseUrl, tenant, protocol)` — it does
479
+ * **not** include login principal. On a shared browser (kiosk, shared profile)
480
+ * or when registering multiple distinct filters from the same origin, pass a
481
+ * key that still includes that default scope plus app-managed suffixes
482
+ * (e.g. `` `${buildWebPushSubscriptionStorageKey(...)}:${userId}:${filterId}` ``).
483
+ * See docs/SDK.md → Web Push (#3097).
479
484
  */
480
485
  storageKey?: string;
481
486
  }