@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 +7 -5
- package/geonicdb.cjs.map +2 -2
- package/geonicdb.d.ts +11 -4
- package/geonicdb.iife.js.map +2 -2
- package/geonicdb.mjs.map +2 -2
- package/package.json +1 -1
- package/react/index.d.ts +7 -2
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
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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', ...)`.
|