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
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* @mohitpubnub @parfeon @seba-aln
* @mohitpubnub @parfeon @jguz-pubnub
README.md @techwritermat @kazydek @mohitpubnub @parfeon
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
strategy:
fail-fast: true
matrix:
node: [18.18.0, 20]
node: [22, 24]
env: ['ci:node']
include:
- node: 18.18.0
- node: 22
env: 'ci:web'
steps:
- name: Checkout repository
Expand All @@ -51,7 +51,7 @@ jobs:
npm install
npm run ${{ matrix.env }}
- name: Test docs snippets syntax
if: matrix.node == '18.18.0' && matrix.env == 'ci:node'
if: matrix.node == '22' && matrix.env == 'ci:node'
run: npm run test:snippets
- name: Cancel workflow runs for commit on error
if: failure()
Expand Down
13 changes: 10 additions & 3 deletions .pubnub.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
---
changelog:
- date: 2026-06-22
version: v12.0.0
changes:
- type: feature
text: "BREAKING CHANGES: Added HTTP/2 support for Node, upgrade minimum node version requirements to v22."
- type: bug
text: "React native specific dependencies is made as peer-dependency for package dependency installation."
- date: 2026-06-11
version: v11.0.2
changes:
Expand Down Expand Up @@ -1416,7 +1423,7 @@ supported-platforms:
- 'Ubuntu 14.04 and up'
- 'Windows 7 and up'
version: 'Pubnub Javascript for Node'
version: '11.0.2'
version: '12.0.0'
sdks:
- full-name: PubNub Javascript SDK
short-name: Javascript
Expand All @@ -1432,7 +1439,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/archive/refs/tags/v11.0.2.zip
location: https://github.com/pubnub/javascript/archive/refs/tags/v12.0.0.zip
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down Expand Up @@ -2103,7 +2110,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/releases/download/v11.0.2/pubnub.11.0.2.js
location: https://github.com/pubnub/javascript/releases/download/v12.0.0/pubnub.12.0.0.js
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## v12.0.0
June 22 2026

#### Added
- **BREAKING CHANGES**: Added HTTP/2 support for Node, upgrade minimum node version requirements to v22.

#### Fixed
- React native specific dependencies is made as peer-dependency for package dependency installation. Fixed the following issues reported by [@tmcpartlin](https://github.com/tmcpartlin): [#383](https://github.com/pubnub/javascript/issues/383).

## v11.0.2
June 11 2026

Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,20 @@ 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.11.0.2.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.11.0.2.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.12.0.0.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.12.0.0.min.js

> **React Native:** the SDK relies on a global `URL` implementation, which React Native does not
> provide, so it depends on [`react-native-url-polyfill`](https://www.npmjs.com/package/react-native-url-polyfill).
> This is declared as an **optional peer dependency** — only React Native projects need it, while
> Node.js and browser consumers are unaffected. Install it alongside the SDK:
>
> ```
> npm install react-native-url-polyfill
> ```
>
> The SDK loads the polyfill automatically (`import 'react-native-url-polyfill/auto'`), so no extra
> import is required once the package is installed.

2. Configure your keys:

Expand Down
4 changes: 2 additions & 2 deletions dist/web/pubnub.js
Original file line number Diff line number Diff line change
Expand Up @@ -4621,7 +4621,7 @@
const formattedBody = this.formattedBody(message);
const padding = ((formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.formData) ? 'Headers' : 'Status').length;
const response = message.message;
return `Received HTTP response:\n ${this.paddedString('URL', padding)}: ${response.url}\n ${this.paddedString('Status', padding)}: ${response.status}${headersList ? `\n ${this.paddedString('Headers', padding)}:\n${headersList}` : ''}${(formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.body) ? `\n ${this.paddedString('Body', padding)}:\n${formattedBody.body}` : ''}`;
return `Received HTTP response:\n ${this.paddedString('URL', padding)}: ${response.url}\n ${this.paddedString('Status', padding)}: ${response.status}${message.details ? `\n ${this.paddedString('Details', padding)}: ${message.details}` : ''}${headersList ? `\n ${this.paddedString('Headers', padding)}:\n${headersList}` : ''}${(formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.body) ? `\n ${this.paddedString('Body', padding)}:\n${formattedBody.body}` : ''}`;
}
else if (message.messageType === 'error') {
const formattedStatus = this.formattedErrorStatus(message);
Expand Down Expand Up @@ -5432,7 +5432,7 @@
return base.PubNubFile;
},
get version() {
return '11.0.2';
return '12.0.0';
},
getVersion() {
return this.version;
Expand Down
4 changes: 2 additions & 2 deletions 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 @@ -168,7 +168,7 @@ const makeConfiguration = (base, setupCryptoModule) => {
return base.PubNubFile;
},
get version() {
return '11.0.2';
return '12.0.0';
},
getVersion() {
return this.version;
Expand Down
2 changes: 1 addition & 1 deletion lib/loggers/console-logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ConsoleLogger {
const formattedBody = this.formattedBody(message);
const padding = ((formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.formData) ? 'Headers' : 'Status').length;
const response = message.message;
return `Received HTTP response:\n ${this.paddedString('URL', padding)}: ${response.url}\n ${this.paddedString('Status', padding)}: ${response.status}${headersList ? `\n ${this.paddedString('Headers', padding)}:\n${headersList}` : ''}${(formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.body) ? `\n ${this.paddedString('Body', padding)}:\n${formattedBody.body}` : ''}`;
return `Received HTTP response:\n ${this.paddedString('URL', padding)}: ${response.url}\n ${this.paddedString('Status', padding)}: ${response.status}${message.details ? `\n ${this.paddedString('Details', padding)}: ${message.details}` : ''}${headersList ? `\n ${this.paddedString('Headers', padding)}:\n${headersList}` : ''}${(formattedBody === null || formattedBody === void 0 ? void 0 : formattedBody.body) ? `\n ${this.paddedString('Body', padding)}:\n${formattedBody.body}` : ''}`;
}
else if (message.messageType === 'error') {
const formattedStatus = this.formattedErrorStatus(message);
Expand Down
Loading
Loading