Releases: pubnub/javascript
Releases · pubnub/javascript
v8.7.1
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
heartbeat
request to unsubscribe.
v8.6.0
January 21 2025
Added
- A new optional parameter
ifMatchesEtag
is added tosetUUIDMetadata
andsetChannelMetadata
. 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
fileRequestTimeout
client configuration option which is specific only for requests which upload and download files.
Fixed
- Fix issue with
instanceId
set toundefined
for requests withuseInstanceId
configuration flag set totrue
.
v8.4.1
January 02 2025
Fixed
- Fixed issue of hereNow response parsing for
totalOccupancy
field.
v8.4.0
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 totrue
still 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
Subscription
andSubscriptionSet
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+ haskeepAlive
enabled by default.
v8.3.1
November 18 2024
Fixed
- Fix issue because of which presence events not delivered to the
Subscription
andSubscriptionSet
objects (only global listeners).
v8.3.0
November 14 2024
Added
- Add custom message type support for the following APIs: publish, signal, share file, subscribe and history.
v8.2.10
October 31 2024
Fixed
- Fix
Actions
type definition.
Modified
- Remove indexed signature for publish.
- Add serializable objects to
Payload
type. - Aggregate generated types definitions.
- Fix definition of type which represents message actions received from history and list of users which added action of specific type and value to the message. Fixed the following issues reported by @yo1dog: #407.
- Remove redundant indexed signature from publish message parameters type definition. Fixed the following issues reported by @yo1dog: #413.
- Extend
Payload
type definition with objects which can be serialized byJSON.stringify
usingtoJSON()
methods. Fixed the following issues reported by @yo1dog: #412. - Aggregate multiple types definitions into single type definition type with proper type names and namespaces. Fixed
the following issues reported by @Tallyb and @yo1dog: #405 and #409 and #410. - Add the Subscribe Event Engine and Event Listener types to the bundled types definition file. Fixed the following
issues reported by @roman-rr: #377.