Skip to content

Commit

Permalink
Releasing v4.28.4
Browse files Browse the repository at this point in the history
  • Loading branch information
client-engineering-bot committed Jul 15, 2020
1 parent 76631f8 commit 30ecabb
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 19 deletions.
9 changes: 8 additions & 1 deletion .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
changelog:
-
changes:
-
text: "Fixes issue of high cpu usage when heartbeat interval is not set."
type: bug
date: 2020-07-15
version: v4.28.4
-
changes:
-
Expand Down Expand Up @@ -861,4 +868,4 @@ supported-platforms:
- "Ubuntu 14.04 and up"
- "Windows 7 and up"
version: "Pubnub Javascript for Node"
version: "4.28.3"
version: "4.28.4"
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [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)
July-15-2020

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ please use the [master_3x](https://github.com/pubnub/javascript/tree/master_3x)



* 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
6 changes: 3 additions & 3 deletions dist/titanium/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.28.3 / Consumer */
/*! 4.28.4 / Consumer */
exports["PubNub"] =
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
Expand Down Expand Up @@ -506,7 +506,7 @@ var _default = function () {
}, {
key: "getVersion",
value: function getVersion() {
return '4.28.3';
return '4.28.4';
}
}, {
key: "_addPnsdkSuffix",
Expand Down Expand Up @@ -3591,7 +3591,7 @@ var _default = function () {
value: function _registerHeartbeatTimer() {
this._stopHeartbeatTimer();

if (this._config.getHeartbeatInterval() === 0) {
if (this._config.getHeartbeatInterval() === 0 || this._config.getHeartbeatInterval() === undefined) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/titanium/pubnub.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! 4.28.3 / Consumer */
/*! 4.28.4 / Consumer */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
Expand Down Expand Up @@ -516,7 +516,7 @@ var _default = function () {
}, {
key: "getVersion",
value: function getVersion() {
return '4.28.3';
return '4.28.4';
}
}, {
key: "_addPnsdkSuffix",
Expand Down Expand Up @@ -3499,7 +3499,7 @@ var _default = function () {
value: function _registerHeartbeatTimer() {
this._stopHeartbeatTimer();

if (this._config.getHeartbeatInterval() === 0) {
if (this._config.getHeartbeatInterval() === 0 || this._config.getHeartbeatInterval() === undefined) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion dist/web/pubnub.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core/components/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/components/config.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core/components/subscription_manager.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/core/components/subscription_manager.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pubnub",
"version": "4.28.3",
"version": "4.28.4",
"author": "PubNub <support@pubnub.com>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"bin": {},
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default class {
}

getVersion(): string {
return '4.28.3';
return '4.28.4';
}

_addPnsdkSuffix(name: string, suffix: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/core/components/subscription_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ export default class {
_registerHeartbeatTimer() {
this._stopHeartbeatTimer();

// 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;
}

Expand Down
1 change: 1 addition & 0 deletions test/integration/operations/heartbeat.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ describe('heartbeat', () => {
subscribeKey: 'mySubscribeKey',
publishKey: 'myPublishKey',
uuid: 'myUUID',
heartbeatInterval :1, // for quick test of heartbeat calls
announceSuccessfulHeartbeats: true,
});
});
Expand Down

0 comments on commit 30ecabb

Please sign in to comment.