Skip to content

Commit 28c82ea

Browse files
mohitpubnubMohit Tejani
andauthored
fix(react-native): explicit export to static members (#470)
Explicit export for PubNubCore static members, which got missing due to javascript-react-native bundler export pattern conflicts --------- Co-authored-by: Mohit Tejani <mohit.tejani@Mohits-MacBook-Pro.local>
1 parent 8d6f94e commit 28c82ea

File tree

12 files changed

+303
-12
lines changed

12 files changed

+303
-12
lines changed

.pubnub.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
changelog:
3+
- date: 2025-08-07
4+
version: v9.8.4
5+
changes:
6+
- type: bug
7+
text: "Resolved an issue that prevented access to static fields of the PubNub class when using the SDK in React Native target builds."
38
- date: 2025-07-28
49
version: v9.8.3
510
changes:
@@ -1308,7 +1313,7 @@ supported-platforms:
13081313
- 'Ubuntu 14.04 and up'
13091314
- 'Windows 7 and up'
13101315
version: 'Pubnub Javascript for Node'
1311-
version: '9.8.3'
1316+
version: '9.8.4'
13121317
sdks:
13131318
- full-name: PubNub Javascript SDK
13141319
short-name: Javascript
@@ -1324,7 +1329,7 @@ sdks:
13241329
- distribution-type: source
13251330
distribution-repository: GitHub release
13261331
package-name: pubnub.js
1327-
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.3.zip
1332+
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.4.zip
13281333
requires:
13291334
- name: 'agentkeepalive'
13301335
min-version: '3.5.2'
@@ -1995,7 +2000,7 @@ sdks:
19952000
- distribution-type: library
19962001
distribution-repository: GitHub release
19972002
package-name: pubnub.js
1998-
location: https://github.com/pubnub/javascript/releases/download/v9.8.3/pubnub.9.8.3.js
2003+
location: https://github.com/pubnub/javascript/releases/download/v9.8.4/pubnub.9.8.4.js
19992004
requires:
20002005
- name: 'agentkeepalive'
20012006
min-version: '3.5.2'

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## v9.8.4
2+
August 07 2025
3+
4+
#### Fixed
5+
- Resolved an issue that prevented access to static fields of the PubNub class when using the SDK in React Native target builds.
6+
17
## v9.8.3
28
July 28 2025
39

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
2727
npm install pubnub
2828
```
2929
* or download one of our builds from our CDN:
30-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.3.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.3.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.4.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.4.min.js
3232
3333
2. Configure your keys:
3434

dist/web/pubnub.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5333,7 +5333,7 @@
53335333
return base.PubNubFile;
53345334
},
53355335
get version() {
5336-
return '9.8.3';
5336+
return '9.8.4';
53375337
},
53385338
getVersion() {
53395339
return this.version;

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/configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const makeConfiguration = (base, setupCryptoModule) => {
164164
return base.PubNubFile;
165165
},
166166
get version() {
167-
return '9.8.3';
167+
return '9.8.4';
168168
},
169169
getVersion() {
170170
return this.version;

lib/react_native/index.js

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,40 @@ class PubNub extends pubnub_common_1.PubNubCore {
7373
});
7474
}
7575
}
76+
/**
77+
* Exponential retry policy constructor.
78+
*/
79+
PubNub.ExponentialRetryPolicy = pubnub_common_1.PubNubCore.ExponentialRetryPolicy;
80+
/**
81+
* Linear retry policy constructor.
82+
*/
83+
PubNub.LinearRetryPolicy = pubnub_common_1.PubNubCore.LinearRetryPolicy;
84+
/**
85+
* Disabled / inactive retry policy.
86+
*/
87+
PubNub.NoneRetryPolicy = pubnub_common_1.PubNubCore.NoneRetryPolicy;
88+
/**
89+
* API call status category.
90+
*/
91+
PubNub.CATEGORIES = pubnub_common_1.PubNubCore.CATEGORIES;
92+
/**
93+
* Enum with API endpoint groups which can be used with retry policy to set up exclusions.
94+
*/
95+
PubNub.Endpoint = pubnub_common_1.PubNubCore.Endpoint;
96+
/**
97+
* Available minimum log levels.
98+
*/
99+
PubNub.LogLevel = pubnub_common_1.PubNubCore.LogLevel;
100+
/**
101+
* Type of REST API endpoint which reported status.
102+
*/
103+
PubNub.OPERATIONS = pubnub_common_1.PubNubCore.OPERATIONS;
104+
/**
105+
* Generate unique identifier.
106+
*/
107+
PubNub.generateUUID = pubnub_common_1.PubNubCore.generateUUID;
108+
/**
109+
* Construct notification payload which will trigger push notification.
110+
*/
111+
PubNub.notificationPayload = pubnub_common_1.PubNubCore.notificationPayload;
76112
exports.default = PubNub;

package-lock.json

Lines changed: 2 additions & 2 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": "9.8.3",
3+
"version": "9.8.4",
44
"author": "PubNub <support@pubnub.com>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"scripts": {

src/core/components/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const makeConfiguration = (
232232
return base.PubNubFile;
233233
},
234234
get version(): string {
235-
return '9.8.3';
235+
return '9.8.4';
236236
},
237237
getVersion(): string {
238238
return this.version;

0 commit comments

Comments
 (0)