Comparing version 4.28.3 to 4.28.4
@@ -0,1 +1,8 @@ | ||
## [v4.28.4](https://github.com/pubnub/javascript/releases/tag/v4.28.4) | ||
July-15-2020 | ||
[Full Changelog](https://github.com/pubnub/javascript/compare/v4.28.3...v4.28.4) | ||
- 🐛 Fixes issue of high cpu usage when heartbeat interval is not set. | ||
## [v4.28.3](https://github.com/pubnub/javascript/releases/tag/v4.28.3) | ||
@@ -2,0 +9,0 @@ July-15-2020 |
@@ -266,3 +266,3 @@ "use strict"; | ||
value: function getVersion() { | ||
return '4.28.3'; | ||
return '4.28.4'; | ||
} | ||
@@ -269,0 +269,0 @@ }, { |
@@ -371,3 +371,3 @@ "use strict"; | ||
if (this._config.getHeartbeatInterval() === 0) { | ||
if (this._config.getHeartbeatInterval() === 0 || this._config.getHeartbeatInterval() === undefined) { | ||
return; | ||
@@ -374,0 +374,0 @@ } |
{ | ||
"name": "pubnub", | ||
"version": "4.28.3", | ||
"version": "4.28.4", | ||
"author": "PubNub <support@pubnub.com>", | ||
@@ -5,0 +5,0 @@ "description": "Publish & Subscribe Real-time Messaging with PubNub", |
@@ -25,3 +25,3 @@ # PubNub JavaScript SDK (V4) | ||
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.28.3.min.js | ||
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.28.3.js | ||
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.28.4.min.js | ||
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.28.4.js |
@@ -310,3 +310,3 @@ /* @flow */ | ||
getVersion(): string { | ||
return '4.28.3'; | ||
return '4.28.4'; | ||
} | ||
@@ -313,0 +313,0 @@ |
@@ -353,4 +353,4 @@ /* @flow */ | ||
// if the interval is 0, do not queue up heartbeating | ||
if (this._config.getHeartbeatInterval() === 0) { | ||
// if the interval is 0 or undefined, do not queue up heartbeating | ||
if (this._config.getHeartbeatInterval() === 0 || this._config.getHeartbeatInterval() === undefined) { | ||
return; | ||
@@ -357,0 +357,0 @@ } |
@@ -26,2 +26,3 @@ /* global describe, beforeEach, it, before, afterEach, after */ | ||
uuid: 'myUUID', | ||
heartbeatInterval :1, // for quick test of heartbeat calls | ||
announceSuccessfulHeartbeats: true, | ||
@@ -28,0 +29,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5245071
47786