Skip to content

Releases: pubnub/javascript

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.

v9.3.2

31 Mar 16:36
f1397e8
Compare
Choose a tag to compare

March 31 2025

Fixed

  • Fix missing heartbeat and leave REST API calls when the event engine is enabled and presenceTimeout or heartbeatInterval not set.

v9.3.1

25 Mar 11:27
c51bb05
Compare
Choose a tag to compare

March 25 2025

Fixed

  • Fix issue because of which channels and groups aggregated inside PubNub client state objects and didn't clean up properly on unsubscribe / invalidate.

v9.3.0

20 Mar 13:16
71ba3a1
Compare
Choose a tag to compare

March 20 2025

Added

  • Remove minimum limit for presence timeout (was 20 seconds) to make it possible specify shorter intervals.

Fixed

  • Fix issue because of which channels not aggregated and caused separate heartbeat requests.

v9.2.0

19 Mar 11:24
36e0ec3
Compare
Choose a tag to compare

March 19 2025

Added

  • On pagehide without bfcache client on page will send terminate to Shared Worker for early long-poll request termination and leave request sending (if configured).

Fixed

  • Fix an issue with the client's state update in Shared Worker caused by -pnpres suffixed entries being removed from heartbeat / leave request channels and groups.