Skip to content

Releases: pubnub/javascript

v8.8.0

05 Feb 10:32
07b3418
Compare
Choose a tag to compare

February 05 2025

Added

  • For the browser version of PubNub SDK, add the ability to switch between fetch and xhr APIs (transport configuration 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 timeout implementation for fetch transport to properly cancel request when the timeout timer will fire.

v8.7.1

31 Jan 06:28
a204205
Compare
Choose a tag to compare

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

30 Jan 18:11
0d424f9
Compare
Choose a tag to compare

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 heartbeat request to unsubscribe.

v8.6.0

21 Jan 14:57
f5f9670
Compare
Choose a tag to compare

January 21 2025

Added

  • A new optional parameter ifMatchesEtag is added to setUUIDMetadata and setChannelMetadata. 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

15 Jan 23:20
875e44b
Compare
Choose a tag to compare

January 15 2025

Added

  • Add fileRequestTimeout client configuration option which is specific only for requests which upload and download files.

Fixed

  • Fix issue with instanceId set to undefined for requests with useInstanceId configuration flag set to true.

v8.4.1

02 Jan 13:07
1a2ddeb
Compare
Choose a tag to compare

January 02 2025

Fixed

  • Fixed issue of hereNow response parsing for totalOccupancy field.

v8.4.0

17 Dec 12:45
6a9fa7d
Compare
Choose a tag to compare

December 17 2024

Added

  • Add type field 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 hereNowRefresh flag from the presence object received from subscribe.
  • Fix issue because of which logVerbosity set to true still didn't print logs for Node.js.

Modified

  • Change format and add proper request body output.

v8.3.2

12 Dec 09:18
d9af3ec
Compare
Choose a tag to compare

December 12 2024

Fixed

  • Fix issue with Subscription and SubscriptionSet when one can unsubscribe channel / group which is still in use by another.
  • Fix particular TypeError emitted 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-fetch used default agent, which after Node.js 19+ has keepAlive enabled by default.

v8.3.1

18 Nov 15:01
cf5aa71
Compare
Choose a tag to compare

November 18 2024

Fixed

  • Fix issue because of which presence events not delivered to the Subscription and SubscriptionSet objects (only global listeners).

v8.3.0

14 Nov 15:52
2b523b2
Compare
Choose a tag to compare

November 14 2024

Added

  • Add custom message type support for the following APIs: publish, signal, share file, subscribe and history.