Skip to content

Fix rapid subscribe aggregate #461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Jul 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"spec": "test/**/*.test.ts",
"exclude": [
"test/dist/*.{js,ts}",
"test/feature/*.{js,ts}"
"test/feature/*.{js,ts}",
"test/integration/shared-worker/*.{js,ts}"
],
"timeout": 5000,
"reporter": "spec"
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"parser" : "typescript",
"parser": "typescript",
"semi": true,
"printWidth": 120,
"singleQuote": true,
Expand Down
21 changes: 18 additions & 3 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
---
changelog:
- date: 2025-07-11
version: v9.8.0
changes:
- type: feature
text: "Depending on client configuration, it will emit `status` for heartbeat, which has been started by the `SharedWorker` backup heartbeat timer mechanism."
- type: feature
text: "Stop heartbeats until the auth key / access token is changed. On change, `SharedWorker` will send an immediate heartbeat request."
- type: bug
text: "Fix the issue with the global subscription set (used for legacy interface support) because of which `unsubscribe` with the legacy interface wasn't able to complete the unsubscribe process."
- type: bug
text: "Fix the issue because of which rapid subscription (from other PubNub clients in response to received subscribe response) throttling causes delayed channel list change."
- type: improvement
text: "Restart the timer of the backup heartbeat if an explicit heartbeat request has been received from the main PubNub client."
- type: improvement
text: "Modify the `log` payload for `SharedWorker` to make it possible to log sent / received requests information to the main browser window (not to the `SharedWorker` console)."
- date: 2025-06-30
version: v9.7.0
changes:
Expand Down Expand Up @@ -1276,7 +1291,7 @@ supported-platforms:
- 'Ubuntu 14.04 and up'
- 'Windows 7 and up'
version: 'Pubnub Javascript for Node'
version: '9.7.0'
version: '9.8.0'
sdks:
- full-name: PubNub Javascript SDK
short-name: Javascript
Expand All @@ -1292,7 +1307,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.7.0.zip
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.0.zip
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down Expand Up @@ -1963,7 +1978,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/releases/download/v9.7.0/pubnub.9.7.0.js
location: https://github.com/pubnub/javascript/releases/download/v9.8.0/pubnub.9.8.0.js
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## v9.8.0
July 11 2025

#### Added
- Depending on client configuration, it will emit `status` for heartbeat, which has been started by the `SharedWorker` backup heartbeat timer mechanism.
- Stop heartbeats until the auth key / access token is changed. On change, `SharedWorker` will send an immediate heartbeat request.

#### Fixed
- Fix the issue with the global subscription set (used for legacy interface support) because of which `unsubscribe` with the legacy interface wasn't able to complete the unsubscribe process.
- Fix the issue because of which rapid subscription (from other PubNub clients in response to received subscribe response) throttling causes delayed channel list change.

#### Modified
- Restart the timer of the backup heartbeat if an explicit heartbeat request has been received from the main PubNub client.
- Modify the `log` payload for `SharedWorker` to make it possible to log sent / received requests information to the main browser window (not to the `SharedWorker` console).

## v9.7.0
June 30 2025

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
npm install pubnub
```
* or download one of our builds from our CDN:
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.7.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.7.0.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.0.min.js

2. Configure your keys:

Expand Down
Loading
Loading