Skip to content

Commit 30dbcd3

Browse files
parfeonMohit Tejani
andauthored
SharedWorker refactor (#471)
refactor(shared-worker): reorganize `SharedWorker` code Decouple and re-organize `SharedWorker` code for better maintainability. perf(shared-worker): improved subscription state refresh logic Additional query parameter (removed before sending) is added for requests triggered by user and state will be updated only for these requests. refactor(logger): avoid similar timestamp in sequential lines Log entry timestamp will be altered on millisecond if multiple log entries have similar timestamp (logged in fraction of nanoseconds). refactor(shared-worker): change condition for stalled `ping` timer Change the condition that is used to identify whether the `offline` detection timer has been suspended by the browser or not before trying to evict "offline" PubNub clients. --------- Co-authored-by: Mohit Tejani <[email protected]>
1 parent 28c82ea commit 30dbcd3

File tree

73 files changed

+11327
-4923
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+11327
-4923
lines changed

.pubnub.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
---
22
changelog:
3+
- date: 2025-08-25
4+
version: v9.9.0
5+
changes:
6+
- type: bug
7+
text: "Resolved the issue because of which requests that were too early received a response and still have been sent."
8+
- type: improvement
9+
text: "Decouple and re-organize `SharedWorker` code for better maintainability."
10+
- type: improvement
11+
text: "Additional query parameter (removed before sending) is added for requests triggered by user and state will be updated only for these requests."
12+
- type: improvement
13+
text: "Log entry timestamp will be altered on millisecond if multiple log entries have similar timestamp (logged in fraction of nanoseconds)."
14+
- type: improvement
15+
text: "Change the condition that is used to identify whether the `offline` detection timer has been suspended by the browser or not before trying to evict `offline` PubNub clients."
316
- date: 2025-08-07
417
version: v9.8.4
518
changes:
@@ -1313,7 +1326,7 @@ supported-platforms:
13131326
- 'Ubuntu 14.04 and up'
13141327
- 'Windows 7 and up'
13151328
version: 'Pubnub Javascript for Node'
1316-
version: '9.8.4'
1329+
version: '9.9.0'
13171330
sdks:
13181331
- full-name: PubNub Javascript SDK
13191332
short-name: Javascript
@@ -1329,7 +1342,7 @@ sdks:
13291342
- distribution-type: source
13301343
distribution-repository: GitHub release
13311344
package-name: pubnub.js
1332-
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.4.zip
1345+
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.9.0.zip
13331346
requires:
13341347
- name: 'agentkeepalive'
13351348
min-version: '3.5.2'
@@ -2000,7 +2013,7 @@ sdks:
20002013
- distribution-type: library
20012014
distribution-repository: GitHub release
20022015
package-name: pubnub.js
2003-
location: https://github.com/pubnub/javascript/releases/download/v9.8.4/pubnub.9.8.4.js
2016+
location: https://github.com/pubnub/javascript/releases/download/v9.9.0/pubnub.9.9.0.js
20042017
requires:
20052018
- name: 'agentkeepalive'
20062019
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.9.0
2+
August 25 2025
3+
4+
#### Fixed
5+
- Resolved the issue because of which requests that were too early received a response and still have been sent.
6+
7+
#### Modified
8+
- Decouple and re-organize `SharedWorker` code for better maintainability.
9+
- Additional query parameter (removed before sending) is added for requests triggered by user and state will be updated only for these requests.
10+
- Log entry timestamp will be altered on millisecond if multiple log entries have similar timestamp (logged in fraction of nanoseconds).
11+
- Change the condition that is used to identify whether the `offline` detection timer has been suspended by the browser or not before trying to evict "offline" PubNub clients.
12+
113
## v9.8.4
214
August 07 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.8.4.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.4.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.9.0.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.9.0.min.js
3232
3333
2. Configure your keys:
3434

0 commit comments

Comments
 (0)