Skip to content

Commit 8da3dca

Browse files
mohitpubnubMohit Tejanipubnub-release-bot
authored
fix(types): add missing listenToBrowserNetworkEvents config option (#493)
* fix(types): add missing `listenToBrowserNetworkEvents` config option * PubNub SDK v10.2.9 release. --------- Co-authored-by: Mohit Tejani <mohit.tejani@Mohits-MacBook-Pro.local> Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com>
1 parent 6d5d12c commit 8da3dca

File tree

11 files changed

+44
-12
lines changed

11 files changed

+44
-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: 2026-03-16
4+
version: v10.2.9
5+
changes:
6+
- type: bug
7+
text: "Added missing property `listenToBrowserNetworkEvents` to type definition file."
38
- date: 2026-03-10
49
version: v10.2.8
510
changes:
@@ -1394,7 +1399,7 @@ supported-platforms:
13941399
- 'Ubuntu 14.04 and up'
13951400
- 'Windows 7 and up'
13961401
version: 'Pubnub Javascript for Node'
1397-
version: '10.2.8'
1402+
version: '10.2.9'
13981403
sdks:
13991404
- full-name: PubNub Javascript SDK
14001405
short-name: Javascript
@@ -1410,7 +1415,7 @@ sdks:
14101415
- distribution-type: source
14111416
distribution-repository: GitHub release
14121417
package-name: pubnub.js
1413-
location: https://github.com/pubnub/javascript/archive/refs/tags/v10.2.8.zip
1418+
location: https://github.com/pubnub/javascript/archive/refs/tags/v10.2.9.zip
14141419
requires:
14151420
- name: 'agentkeepalive'
14161421
min-version: '3.5.2'
@@ -2081,7 +2086,7 @@ sdks:
20812086
- distribution-type: library
20822087
distribution-repository: GitHub release
20832088
package-name: pubnub.js
2084-
location: https://github.com/pubnub/javascript/releases/download/v10.2.8/pubnub.10.2.8.js
2089+
location: https://github.com/pubnub/javascript/releases/download/v10.2.9/pubnub.10.2.9.js
20852090
requires:
20862091
- name: 'agentkeepalive'
20872092
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+
## v10.2.9
2+
March 16 2026
3+
4+
#### Fixed
5+
- Added missing property `listenToBrowserNetworkEvents` to type definition file.
6+
17
## v10.2.8
28
March 10 2026
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.10.2.8.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.8.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.9.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.9.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
@@ -5438,7 +5438,7 @@
54385438
return base.PubNubFile;
54395439
},
54405440
get version() {
5441-
return '10.2.8';
5441+
return '10.2.9';
54425442
},
54435443
getVersion() {
54445444
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
@@ -168,7 +168,7 @@ const makeConfiguration = (base, setupCryptoModule) => {
168168
return base.PubNubFile;
169169
},
170170
get version() {
171-
return '10.2.8';
171+
return '10.2.9';
172172
},
173173
getVersion() {
174174
return this.version;

lib/types/index.d.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2667,6 +2667,16 @@ declare namespace PubNub {
26672667
* @default `false`
26682668
*/
26692669
autoNetworkDetection?: boolean;
2670+
/**
2671+
* If the browser fails to detect the network changes from Wi-Fi to LAN and vice versa, or you
2672+
* get reconnection issues, set the flag to `false`. This allows the SDK reconnection logic to
2673+
* take over.
2674+
*
2675+
* **Note:** This option is available only in the **browser** environment.
2676+
*
2677+
* @default `true`
2678+
*/
2679+
listenToBrowserNetworkEvents?: boolean;
26702680
/**
26712681
* Whether to use the standardized workflows for subscribe and presence.
26722682
*

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": "10.2.8",
3+
"version": "10.2.9",
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
@@ -236,7 +236,7 @@ export const makeConfiguration = (
236236
return base.PubNubFile;
237237
},
238238
get version(): string {
239-
return '10.2.8';
239+
return '10.2.9';
240240
},
241241
getVersion(): string {
242242
return this.version;

0 commit comments

Comments
 (0)