Releases: pubnub/javascript
Releases · pubnub/javascript
v10.0.0
v9.10.0
September 09 2025
Added
- Send new presence
state
to theSharedWorker
as soon as it has been set withsetState
to avoid race conditions between regular heartbeats andbackup
heartbeats.
Fixed
- Fix issue because of which requests aggregated from other clients were able to override previously explicitly set newer access token.
Modified
- Remove presence
state
from long-poll subscribe requests as part of the transition to explicit heartbeat.
v9.9.0
August 25 2025
Fixed
- Resolved the issue because of which requests that were too early received a response and still have been sent.
Modified
- Decouple and re-organize
SharedWorker
code for better maintainability. - Additional query parameter (removed before sending) is added for requests triggered by user and state will be updated only for these requests.
- Log entry timestamp will be altered on millisecond if multiple log entries have similar timestamp (logged in fraction of nanoseconds).
- 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.
v9.8.4
August 07 2025
Fixed
- Resolved an issue that prevented access to static fields of the PubNub class when using the SDK in React Native target builds.
v9.8.3
July 28 2025
Modified
- Update workflow with
id-token: write
permission for AWS CLI configuration.
v9.8.1
July 15 2025
Fixed
- Fix incorrect subscription reference timetoken (used by listeners to filter old messages) caused by the server returning timetoken older than the previous one because of MX.
- Fix the issue because of which all subscriptions of the subscription set have been requested to handle the received event.
v9.8.0
July 11 2025
Added
- Depending on client configuration, it will emit
status
for heartbeat, which has been started by theSharedWorker
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 forSharedWorker
to make it possible to log sent / received requests information to the main browser window (not to theSharedWorker
console).
v9.7.0
June 30 2025
Added
- Launch a backup heartbeat timer per registered PubNub instance in SharedWorker context to protect against browsers throttling of background (hidden) tabs.
Fixed
- Fix issue because of which in new flow
heartbeat
request not cancelled properly when issued in burst. - Fix issue because resource names, which consist only of integers, have been decoded as Unicode characters.
- Fix issue because the entity that has been created with
-pnpres
suffix has been removed from subscription loop during unsubscribe from entity with presence listening capability.
Modified
- Use string names of classes for locations instead of dynamic access to constructor names because it affect how logs looks like after minification.
v9.6.2
June 30 2025
Modified
- Removed deprecation warning from deleteMessages method.
- Added code snippets for docs.
v9.6.1
June 18 2025
Fixed
- Fix issue that has been caused by the race of conditions on tab close and led to
presence leave
for channels that were still in use.
Modified
- Make leeway depending from the minimal heartbeat interval (5% from it) to filter out too rapid heartbeat calls.