Skip to content

Releases: pubnub/javascript

v9.8.1

15 Jul 20:46
b1a9f06
Compare
Choose a tag to compare

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

11 Jul 14:30
8bf3d6f
Compare
Choose a tag to compare

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

30 Jun 15:11
d44662b
Compare
Choose a tag to compare

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

30 Jun 06:10
8bf31a4
Compare
Choose a tag to compare

June 30 2025

Modified

  • Removed deprecation warning from deleteMessages method.
  • Added code snippets for docs.

v9.6.1

18 Jun 15:00
913ebaf
Compare
Choose a tag to compare

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.

v9.6.0

04 Jun 09:17
1a4ce6b
Compare
Choose a tag to compare

June 04 2025

Added

  • Standardize information printed by logger and places where it is printed.
  • Add logLevel and loggers configuration parameters to specify minimum log level and list of custom Logger interface implementations (when own logger needed).
  • Add the cloneEmpty function, which will let you make a “bare” copy of a subscription / subscription set object, which will have shared state with the original but clear list of event handlers.
  • Add a parameter for subscription where closure can be provided and filter events which should be delivered with listener.
  • When a new subscription object is created, it won't notify about messages from the past (edge case with active and inactive channel subscriptions).

v9.5.2

22 Apr 12:57
b8e1af9
Compare
Choose a tag to compare

April 22 2025

Fixed

  • Fixed issue because of which client retried for both bad request and access denied.

Modified

  • Add current list of channels and groups to connected status.

v9.5.1

15 Apr 10:45
fc389df
Compare
Choose a tag to compare

April 15 2025

Fixed

  • Add missing NoneRetryPolicy static field for PubNub class.

Modified

  • RetryPolicy.None exported as a function to not affect tree-shaking and modules exclusion possibilities.

v9.5.0

15 Apr 09:32
b283e9e
Compare
Choose a tag to compare

April 15 2025

Added

  • The configured retry policy will be used for any failed request.
  • By default, the SDK is configured to use an exponential retry policy for failed subscribe requests.

Fixed

  • PNSubscriptionChangedCategory will be emitted each time the list of channels and groups is changing.

Modified

  • Automated request retry has been moved into the network layer to handle all requests (not only subscribed).
  • Properly destroy PubNub instance after each test case to make sure that all connections closed and prevent tests from hanging.

v9.4.0

10 Apr 12:57
bee8794
Compare
Choose a tag to compare

April 10 2025

Added

  • Compress the published payload if sent by POST.
  • Explicitly add gzip, deflate to the Accept-Encoding header.