🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

pubnub

Package Overview
Dependencies
Maintainers
7
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pubnub - npm Package Versions

2345
25

9.5.2

Diff
client-engineering-bot
published 9.5.2 •

Changelog

Source

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.
client-engineering-bot
published 9.5.1 •

Changelog

Source

v9.5.1

April 15 2025

Fixed

  • Add missing NoneRetryPolicy static field for PubNub class.

Modified

  • RetryPolicy.None exported as a function to not affect tree-shaking and modules exclusion possibilities.
client-engineering-bot
published 9.5.0 •

Changelog

Source

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.
client-engineering-bot
published 9.4.0 •

Changelog

Source

v9.4.0

April 10 2025

Added

  • Compress the published payload if sent by POST.
  • Explicitly add gzip, deflate to the Accept-Encoding header.
client-engineering-bot
published 9.3.2 •

Changelog

Source

v9.3.2

March 31 2025

Fixed

  • Fix missing heartbeat and leave REST API calls when the event engine is enabled and presenceTimeout or heartbeatInterval not set.
client-engineering-bot
published 9.3.1 •

Changelog

Source

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.
client-engineering-bot
published 9.3.0 •

Changelog

Source

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.
client-engineering-bot
published 9.2.0 •

Changelog

Source

v9.2.0

March 19 2025

Added

  • On pagehide without bfcache client on page will send terminate to Shared Worker for early long-poll request termination and leave 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.
client-engineering-bot
published 9.1.0 •

Changelog

Source

v9.1.0

March 13 2025

Added

  • SubscriptionSet will re-add listener every time when Subscription or SubscriptionSet added to it - this will let receive updates from newly added subscribe capable objects.

Fixed

  • Fix issue because of errors returned by fetch taken from iframe (to protect against monkey-patching by APM packages) was't handled as Error.

Modified

  • Use access token (auth key) content instead of base64 encoded token to identify PubNub clients, which can be used for requests aggregation.
client-engineering-bot
published 9.0.0 •

Changelog

Source

v9.0.0

March 10 2025

Added

  • BREAKING CHANGES: SubscriptionSet will subscribe / unsubscribe added / removed Subscription or SubscriptionSet objects if the set itself already subscribed.

Fixed

  • Fix issue because of which throttle didn't consider difference in client settings (throttled only by user ID and subscribe key, which is not enough).
  • With the fix, smart heartbeat as feature has been added to the SDK, and it is disabled by default.
2345
25