Releases: pubnub/javascript
Releases · pubnub/javascript
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.
v9.6.0
June 04 2025
Added
- Standardize information printed by logger and places where it is printed.
- Add
logLevel
andloggers
configuration parameters to specify minimum log level and list of customLogger
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
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
April 15 2025
Fixed
- Add missing
NoneRetryPolicy
static field forPubNub
class.
Modified
RetryPolicy.None
exported as a function to not affect tree-shaking and modules exclusion possibilities.
v9.5.0
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
April 10 2025
Added
- Compress the published payload if sent by POST.
- Explicitly add
gzip, deflate
to theAccept-Encoding
header.
v9.3.2
March 31 2025
Fixed
- Fix missing
heartbeat
andleave
REST API calls when the event engine is enabled andpresenceTimeout
orheartbeatInterval
not set.
v9.3.1
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.