Skip to content

Commit e80c970

Browse files
authored
Fix fetch errors handling (#444)
fix(fetch): fix fetch error handling Fix issue because of errors returned by `fetch` taken from `iframe` (to protect against monkey-patching by APM packages) was't handled as Error. feat(listener): `SubscriptionSet` listener will receive updates from new Subscription `SubscriptionSet` will re-add listener every time when `Subscription` or `SubscriptionSet` added to it - this will let receive updates from newly added subscribe capable objects. refactor(shared-worker): change request aggregate by authKey Use access token (auth key) content instead of base64 encoded token to identify PubNub clients, which can be used for requests aggregation.
1 parent 61a55e7 commit e80c970

27 files changed

+769
-168
lines changed

.pubnub.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
---
22
changelog:
3+
- date: 2025-03-13
4+
version: v9.1.0
5+
changes:
6+
- type: feature
7+
text: "`SubscriptionSet` will re-add listener every time when `Subscription` or `SubscriptionSet` added to it - this will let receive updates from newly added subscribe capable objects."
8+
- type: bug
9+
text: "Fix issue because of errors returned by `fetch` taken from `iframe` (to protect against monkey-patching by APM packages) was't handled as Error."
10+
- type: improvement
11+
text: "Use access token (auth key) content instead of base64 encoded token to identify PubNub clients, which can be used for requests aggregation."
312
- date: 2025-03-10
413
version: v9.0.0
514
changes:
@@ -1169,7 +1178,7 @@ supported-platforms:
11691178
- 'Ubuntu 14.04 and up'
11701179
- 'Windows 7 and up'
11711180
version: 'Pubnub Javascript for Node'
1172-
version: '9.0.0'
1181+
version: '9.1.0'
11731182
sdks:
11741183
- full-name: PubNub Javascript SDK
11751184
short-name: Javascript
@@ -1185,7 +1194,7 @@ sdks:
11851194
- distribution-type: source
11861195
distribution-repository: GitHub release
11871196
package-name: pubnub.js
1188-
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.0.0.zip
1197+
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.1.0.zip
11891198
requires:
11901199
- name: 'agentkeepalive'
11911200
min-version: '3.5.2'
@@ -1856,7 +1865,7 @@ sdks:
18561865
- distribution-type: library
18571866
distribution-repository: GitHub release
18581867
package-name: pubnub.js
1859-
location: https://github.com/pubnub/javascript/releases/download/v9.0.0/pubnub.9.0.0.js
1868+
location: https://github.com/pubnub/javascript/releases/download/v9.1.0/pubnub.9.1.0.js
18601869
requires:
18611870
- name: 'agentkeepalive'
18621871
min-version: '3.5.2'

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## v9.1.0
2+
March 13 2025
3+
4+
#### Added
5+
- `SubscriptionSet` will re-add listener every time when `Subscription` or `SubscriptionSet` added to it - this will let receive updates from newly added subscribe capable objects.
6+
7+
#### Fixed
8+
- Fix issue because of errors returned by `fetch` taken from `iframe` (to protect against monkey-patching by APM packages) was't handled as Error.
9+
10+
#### Modified
11+
- Use access token (auth key) content instead of base64 encoded token to identify PubNub clients, which can be used for requests aggregation.
12+
113
## v9.0.0
214
March 10 2025
315

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
2727
npm install pubnub
2828
```
2929
* or download one of our builds from our CDN:
30-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.0.0.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.0.0.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.1.0.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.1.0.min.js
3232
3333
2. Configure your keys:
3434

0 commit comments

Comments
 (0)