Releases: pubnub/javascript
Releases · pubnub/javascript
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 leavefor 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
logLevelandloggersconfiguration parameters to specify minimum log level and list of customLoggerinterface implementations (when own logger needed). - Add the
cloneEmptyfunction, 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
NoneRetryPolicystatic field forPubNubclass.
Modified
RetryPolicy.Noneexported 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
PNSubscriptionChangedCategorywill 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
PubNubinstance 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, deflateto theAccept-Encodingheader.
v9.3.2
March 31 2025
Fixed
- Fix missing
heartbeatandleaveREST API calls when the event engine is enabled andpresenceTimeoutorheartbeatIntervalnot 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
pagehidewithoutbfcacheclient on page will sendterminateto Shared Worker for early long-poll request termination andleaverequest sending (if configured).
Fixed
- Fix an issue with the client's state update in Shared Worker caused by
-pnpressuffixed entries being removed from heartbeat / leave request channels and groups.