Skip to content

Commit 26d6baf

Browse files
phairowRai PhairowClient Engineering Bot
authored
fix export for cjs and es module compatibility (#276)
* fix export for cjs and es module compatibility * exclude node files from rollup * fix lint * remove karma babel * PubNub SDK v7.0.1 release. Co-authored-by: Rai Phairow <[email protected]> Co-authored-by: Client Engineering Bot <60980775+Client Engineering [email protected]>
1 parent 6854231 commit 26d6baf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+479
-1055
lines changed

.pubnub.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
---
22
changelog:
3+
- date: 2022-05-24
4+
version: v7.0.1
5+
changes:
6+
37
- date: 2022-05-24
48
version: v7.0.0
59
changes:
@@ -1112,7 +1116,7 @@ supported-platforms:
11121116
- "Ubuntu 14.04 and up"
11131117
- "Windows 7 and up"
11141118
version: "Pubnub Javascript for Node"
1115-
version: "7.0.0"
1119+
version: "7.0.1"
11161120
sdks:
11171121
-
11181122
full-name: PubNub Javascript SDK
@@ -1131,7 +1135,7 @@ sdks:
11311135
distribution-type: source
11321136
distribution-repository: GitHub release
11331137
package-name: pubnub.js
1134-
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.0.0.zip
1138+
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.0.1.zip
11351139
requires:
11361140
-
11371141
name: "agentkeepalive"
@@ -1895,7 +1899,7 @@ sdks:
18951899
distribution-type: library
18961900
distribution-repository: GitHub release
18971901
package-name: pubnub.js
1898-
location: https://github.com/pubnub/javascript/releases/download/v7.0.0/pubnub.7.0.0.js
1902+
location: https://github.com/pubnub/javascript/releases/download/v7.0.1/pubnub.7.0.1.js
18991903
requires:
19001904
-
19011905
name: "agentkeepalive"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## v7.0.1
2+
May 24 2022
3+
14
## v7.0.0
25
May 24 2022
36

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ You will need the publish and subscribe keys to authenticate your app. Get your
2222
npm install pubnub
2323
```
2424
* or download one of our builds from our CDN:
25-
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.0.0.js
26-
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.0.0.min.js
25+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.0.1.js
26+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.0.1.min.js
2727
2828
2. Configure your keys:
2929

dist/web/pubnub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@
747747
return this;
748748
};
749749
default_1.prototype.getVersion = function () {
750-
return '7.0.0';
750+
return '7.0.1';
751751
};
752752
default_1.prototype._addPnsdkSuffix = function (name, suffix) {
753753
this._PNSDKSuffix[name] = suffix;

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.

karma/chrome.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ module.exports = function (config) {
99
frameworks: ['mocha', 'chai'],
1010

1111
files: [
12-
'node_modules/@babel/polyfill/dist/polyfill.js',
1312
'../src/web/index.js',
1413
'../' + process.argv[process.argv.length - 1],
1514
],

lib/core/components/config.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
"use strict";
22
/* */
33
/* global location */
4+
var __importDefault = (this && this.__importDefault) || function (mod) {
5+
return (mod && mod.__esModule) ? mod : { "default": mod };
6+
};
47
Object.defineProperty(exports, "__esModule", { value: true });
5-
var uuid_1 = require("./uuid");
8+
var uuid_1 = __importDefault(require("./uuid"));
69
var PRESENCE_TIMEOUT_MINIMUM = 20;
710
var PRESENCE_TIMEOUT_DEFAULT = 300;
811
var makeDefaultOrigins = function () { return Array.from({ length: 20 }, function (_, i) { return "ps".concat(i + 1, ".pndsn.com"); }); };
@@ -145,7 +148,7 @@ var default_1 = /** @class */ (function () {
145148
return this;
146149
};
147150
default_1.prototype.getVersion = function () {
148-
return '7.0.0';
151+
return '7.0.1';
149152
};
150153
default_1.prototype._addPnsdkSuffix = function (name, suffix) {
151154
this._PNSDKSuffix[name] = suffix;

lib/core/components/cryptography/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
"use strict";
22
/* */
3+
var __importDefault = (this && this.__importDefault) || function (mod) {
4+
return (mod && mod.__esModule) ? mod : { "default": mod };
5+
};
36
Object.defineProperty(exports, "__esModule", { value: true });
4-
var hmac_sha256_1 = require("./hmac-sha256");
7+
var hmac_sha256_1 = __importDefault(require("./hmac-sha256"));
58
function bufferToWordArray(b) {
69
var wa = [];
710
var i;

lib/core/components/endpoint.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ var __assign = (this && this.__assign) || function () {
2525
};
2626
return __assign.apply(this, arguments);
2727
};
28+
var __importDefault = (this && this.__importDefault) || function (mod) {
29+
return (mod && mod.__esModule) ? mod : { "default": mod };
30+
};
2831
Object.defineProperty(exports, "__esModule", { value: true });
2932
exports.signRequest = exports.generatePNSDK = exports.createValidationError = exports.PubNubError = void 0;
30-
var uuid_1 = require("./uuid");
31-
var utils_1 = require("../utils");
32-
var operations_1 = require("../constants/operations");
33-
var categories_1 = require("../constants/categories");
33+
var uuid_1 = __importDefault(require("./uuid"));
34+
var utils_1 = __importDefault(require("../utils"));
35+
var operations_1 = __importDefault(require("../constants/operations"));
36+
var categories_1 = __importDefault(require("../constants/categories"));
3437
var PubNubError = /** @class */ (function (_super) {
3538
__extends(PubNubError, _super);
3639
function PubNubError(message, status) {

lib/core/components/listener_manager.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
"use strict";
2+
var __importDefault = (this && this.__importDefault) || function (mod) {
3+
return (mod && mod.__esModule) ? mod : { "default": mod };
4+
};
25
Object.defineProperty(exports, "__esModule", { value: true });
3-
var categories_1 = require("../constants/categories");
6+
var categories_1 = __importDefault(require("../constants/categories"));
47
var default_1 = /** @class */ (function () {
58
function default_1() {
69
this._listeners = [];

0 commit comments

Comments
 (0)