Releases: pubnub/javascript
Releases · pubnub/javascript
v8.9.0
February 18 2025
Added
- Emit 'PNDisconnectedUnexpectedlyCategory' in cases when client receives bad request or unexpected / malformed service response.
Modified
- Move error / malformed response handling into
AbstractRequestto simplify actual endpoint classes.
v8.8.1
February 10 2025
Fixed
- Fix issue because of which APM fix worked only when the client has been configured with
logVerbosity: true.
v8.8.0
February 05 2025
Added
- For the browser version of PubNub SDK, add the ability to switch between
fetchandxhrAPIs (transportconfiguration option).
Fixed
- Fix issue because of which, in Event Engine mode, wrong timeout values have been set for requests which create long-poll request.
Modified
- Refactor
timeoutimplementation forfetchtransport to properly cancel request when the timeout timer will fire.
v8.7.1
January 31 2025
Fixed
- Fix long-poll request cancellation caused by APM packages monkey patching 'fetch' and try to use 'native' implementation instead of patched.
v8.7.0
January 30 2025
Added
- Pass heartbeat request through
SharedWorker(if used) to optimize the number of requests for clients opened in few tabs and subscribed on same channels / groups list.
Modified
- Don't send
heartbeatrequest to unsubscribe.
v8.6.0
January 21 2025
Added
- A new optional parameter
ifMatchesEtagis added tosetUUIDMetadataandsetChannelMetadata. When provided, the server compares the argument value with the ETag on the server and if they don't match a HTTP 412 error is returned.
v8.5.0
January 15 2025
Added
- Add
fileRequestTimeoutclient configuration option which is specific only for requests which upload and download files.
Fixed
- Fix issue with
instanceIdset toundefinedfor requests withuseInstanceIdconfiguration flag set totrue.
v8.4.1
January 02 2025
Fixed
- Fixed issue of hereNow response parsing for
totalOccupancyfield.
v8.4.0
December 17 2024
Added
- Add
typefield for members and membership objects and subscribe response.
Fixed
- Fixed type which limited number of options which can be included into response / used in sorting for members / membership setting API.
- Fix missing
hereNowRefreshflag from the presence object received from subscribe. - Fix issue because of which
logVerbosityset totruestill didn't print logs for Node.js.
Modified
- Change format and add proper request body output.
v8.3.2
December 12 2024
Fixed
- Fix issue with
SubscriptionandSubscriptionSetwhen one can unsubscribe channel / group which is still in use by another. - Fix particular
TypeErroremitted when browser forcefully closes long-poll connection before its timeout and reported as bad request. This type of error will be reported as a network error. - Fix issue because of which
node-fetchused default agent, which after Node.js 19+ haskeepAliveenabled by default.