Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
---
changelog:
- date: 2025-08-07
version: v9.8.4
changes:
- type: bug
text: "Resolved an issue that prevented access to static fields of the PubNub class when using the SDK in React Native target builds."
- date: 2025-07-28
version: v9.8.3
changes:
Expand Down Expand Up @@ -1308,7 +1313,7 @@ supported-platforms:
- 'Ubuntu 14.04 and up'
- 'Windows 7 and up'
version: 'Pubnub Javascript for Node'
version: '9.8.3'
version: '9.8.4'
sdks:
- full-name: PubNub Javascript SDK
short-name: Javascript
Expand All @@ -1324,7 +1329,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.3.zip
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.4.zip
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down Expand Up @@ -1995,7 +2000,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/releases/download/v9.8.3/pubnub.9.8.3.js
location: https://github.com/pubnub/javascript/releases/download/v9.8.4/pubnub.9.8.4.js
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v9.8.4
August 07 2025

#### Fixed
- Resolved an issue that prevented access to static fields of the PubNub class when using the SDK in React Native target builds.

## v9.8.3
July 28 2025

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ Watch [Getting Started with PubNub JS SDK](https://app.dashcam.io/replay/64ee0d2
npm install pubnub
```
* or download one of our builds from our CDN:
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.3.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.3.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.4.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.4.min.js

2. Configure your keys:

Expand Down
2 changes: 1 addition & 1 deletion dist/web/pubnub.js
Original file line number Diff line number Diff line change
Expand Up @@ -5333,7 +5333,7 @@
return base.PubNubFile;
},
get version() {
return '9.8.3';
return '9.8.4';
},
getVersion() {
return this.version;
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/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const makeConfiguration = (base, setupCryptoModule) => {
return base.PubNubFile;
},
get version() {
return '9.8.3';
return '9.8.4';
},
getVersion() {
return this.version;
Expand Down
36 changes: 36 additions & 0 deletions lib/react_native/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,40 @@ class PubNub extends pubnub_common_1.PubNubCore {
});
}
}
/**
* Exponential retry policy constructor.
*/
PubNub.ExponentialRetryPolicy = pubnub_common_1.PubNubCore.ExponentialRetryPolicy;
/**
* Linear retry policy constructor.
*/
PubNub.LinearRetryPolicy = pubnub_common_1.PubNubCore.LinearRetryPolicy;
/**
* Disabled / inactive retry policy.
*/
PubNub.NoneRetryPolicy = pubnub_common_1.PubNubCore.NoneRetryPolicy;
/**
* API call status category.
*/
PubNub.CATEGORIES = pubnub_common_1.PubNubCore.CATEGORIES;
/**
* Enum with API endpoint groups which can be used with retry policy to set up exclusions.
*/
PubNub.Endpoint = pubnub_common_1.PubNubCore.Endpoint;
/**
* Available minimum log levels.
*/
PubNub.LogLevel = pubnub_common_1.PubNubCore.LogLevel;
/**
* Type of REST API endpoint which reported status.
*/
PubNub.OPERATIONS = pubnub_common_1.PubNubCore.OPERATIONS;
/**
* Generate unique identifier.
*/
PubNub.generateUUID = pubnub_common_1.PubNubCore.generateUUID;
/**
* Construct notification payload which will trigger push notification.
*/
PubNub.notificationPayload = pubnub_common_1.PubNubCore.notificationPayload;
exports.default = PubNub;
4 changes: 2 additions & 2 deletions package-lock.json

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

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": "9.8.3",
"version": "9.8.4",
"author": "PubNub <support@pubnub.com>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const makeConfiguration = (
return base.PubNubFile;
},
get version(): string {
return '9.8.3';
return '9.8.4';
},
getVersion(): string {
return this.version;
Expand Down
52 changes: 52 additions & 0 deletions src/react_native/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ import { PubNubCore } from '../core/pubnub-common';
import { setDefaults } from './configuration';
import Cbor from '../cbor/common';

export type {
LinearRetryPolicyConfiguration,
ExponentialRetryPolicyConfiguration,
RequestRetryPolicy,
Endpoint,
} from '../core/components/retry-policy';
export type { PubNubConfiguration };

// Polyfill global environment
global.TextEncoder = global.TextEncoder || TextEncoder;
global.TextDecoder = global.TextDecoder || TextDecoder;
Expand All @@ -27,6 +35,50 @@ global.Buffer = global.Buffer || Buffer;
* PubNub client for React Native platform.
*/
export default class PubNub extends PubNubCore<null, PubNubFileParameters> {
/**
* Exponential retry policy constructor.
*/
static ExponentialRetryPolicy = PubNubCore.ExponentialRetryPolicy;

/**
* Linear retry policy constructor.
*/
static LinearRetryPolicy = PubNubCore.LinearRetryPolicy;

/**
* Disabled / inactive retry policy.
*/
static NoneRetryPolicy = PubNubCore.NoneRetryPolicy;

/**
* API call status category.
*/
static CATEGORIES = PubNubCore.CATEGORIES;

/**
* Enum with API endpoint groups which can be used with retry policy to set up exclusions.
*/
static Endpoint = PubNubCore.Endpoint;

/**
* Available minimum log levels.
*/
static LogLevel = PubNubCore.LogLevel;

/**
* Type of REST API endpoint which reported status.
*/
static OPERATIONS = PubNubCore.OPERATIONS;

/**
* Generate unique identifier.
*/
static generateUUID = PubNubCore.generateUUID;

/**
* Construct notification payload which will trigger push notification.
*/
static notificationPayload = PubNubCore.notificationPayload;
/**
* Create and configure PubNub client core.
*
Expand Down
Loading
Loading