Releases: pubnub/javascript
Releases · pubnub/javascript
v9.6.1
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.
v9.3.0
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
March 19 2025
Added
- On
pagehide
withoutbfcache
client on page will sendterminate
to Shared Worker for early long-poll request termination andleave
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.