Skip to content

Commit e3034df

Browse files
committed
hotfix for issue 'PubNub is not a constructor' in Node.js. release v4.24.6
1 parent 07c6980 commit e3034df

31 files changed

+57
-17
lines changed

.babelrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"plugins": [
55
"@babel/plugin-proposal-class-properties",
66
"@babel/plugin-transform-flow-strip-types",
7-
"@babel/plugin-transform-modules-commonjs"
7+
"@babel/plugin-transform-modules-commonjs",
8+
"add-module-exports"
89
],
910
"sourceMaps": true
1011
}

.pubnub.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
---
22
changelog:
3+
-
4+
changes:
5+
-
6+
text: "Fix regression: 'PubNub is not a constructor' in Node.js"
7+
type: bug
8+
date: 2019-08-07
9+
version: v4.24.6
310
-
411
changes:
512
-
@@ -680,4 +687,4 @@ supported-platforms:
680687
- "Ubuntu 14.04 and above"
681688
- "Windows 7, 8, 10"
682689
version: "Pubnub Javascript for Node"
683-
version: "4.24.5"
690+
version: "4.24.6"

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
## [v4.24.5](https://github.com/pubnub/javascript/tree/v4.24.5)
1+
## [v4.24.6](https://github.com/pubnub/javascript/tree/v4.24.6)
2+
August-09-2019
3+
4+
5+
[Full Changelog](https://github.com/pubnub/javascript/compare/v4.24.5...v4.24.6)
6+
7+
8+
9+
- ⭐ Fix regression: 'PubNub is not a constructor' in Node.js"
10+
11+
12+
13+
## [v4.24.5](https://github.com/pubnub/javascript/tree/v4.24.5)
214
August-07-2019
315

416

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ please use the [master_3x](https://github.com/pubnub/javascript/tree/master_3x)
2222

2323

2424

25-
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.24.5.min.js
26-
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.24.5.js
25+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.24.6.min.js
26+
* https://cdn.pubnub.com/sdk/javascript/pubnub.4.24.6.js

dist/titanium/pubnub.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/titanium/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web/pubnub.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/web/pubnub.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/config.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/config.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/cryptography/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/deduping_manager.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/endpoint.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/listener_manager.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/reconnection_manager.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/subscription_manager.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/components/uuid.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/constants/categories.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/constants/operations.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/core/pubnub-common.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/db/common.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/db/web.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/nativescript/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/networking/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/node/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/react_native/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/titanium/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/web/index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pubnub",
3-
"version": "4.24.5",
3+
"version": "4.24.6",
44
"author": "PubNub <[email protected]>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"bin": {},

src/core/components/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export default class {
296296
}
297297

298298
getVersion(): string {
299-
return '4.24.5';
299+
return '4.24.6';
300300
}
301301

302302
_decideUUID(providedUUID: string): string {

webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ let config = {
3333
output: {
3434
filename: 'pubnub.js',
3535
library: 'PubNub',
36-
libraryTarget: 'umd',
37-
libraryExport: 'default'
36+
libraryTarget: 'umd'
3837
},
3938
plugins: [
4039
new webpack.BannerPlugin({ banner: `${packageJSON.version} / Consumer `, raw: false }),

0 commit comments

Comments
 (0)