@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/README.md CHANGED
@@ -403,11 +403,13 @@ try {
403
403
  Calling `registerWebPushSubscription()` again reuses the id stored in `localStorage` when the
404
404
  broker still has that subscription (`GET` → 200) and does not `POST`. After a VAPID key rotation
405
405
  that changes the push endpoint, it `PATCH`es `notification.webpush` / `endpoint.webpush` instead
406
- of creating a new subscription. The default key is `baseUrl` + `tenant` + `protocol`; for shared
407
- browsers or multiple distinct filters, pass `storageKey` that still includes that scope (e.g.
408
- append `:${userId}:${filterId}` to `buildWebPushSubscriptionStorageKey(...)`). Concurrent calls with the same
409
- key share one in-flight Promise. HTTP 507 (`QuotaExceededError`) requires deleting unused
410
- subscriptions or changing the plan — waiting alone will not clear the quota.
406
+ of creating a new subscription. The default key is `baseUrl` + `tenant` + `protocol` only — **not**
407
+ login principal. On a shared browser / kiosk (or when registering multiple distinct filters),
408
+ pass `storageKey` that still includes that scope plus app-managed suffixes (e.g. append
409
+ `:${userId}:${filterId}` to `buildWebPushSubscriptionStorageKey(...)`); otherwise a later user
410
+ can reuse the earlier subscription id and the new subject is ignored (#3097). Concurrent calls
411
+ with the same key share one in-flight Promise. HTTP 507 (`QuotaExceededError`) requires deleting
412
+ unused subscriptions or changing the plan — waiting alone will not clear the quota.
411
413
 
412
414
  Low-level helpers remain available: `subscribeWebPush()` + `toNgsiv2WebPushNotification()` /
413
415
  `toNgsiLdWebPushEndpoint()` + `request('POST', ...)`.