Skip to content

Commit 07b3418

Browse files
authored
Add the ability to switch transport API (#435)
feat(transport): add the ability to switch transport API For the browser version of PubNub SDK, add the ability to switch between `fetch` and `xhr` APIs (`transport` configuration option). fix(event-engine): handshake/receive requests timeout Fix issue because of which, in Event Engine mode, wrong timeout values have been set for requests which creates long-poll request. refactor(request): make sure request cancels on timeout Refactor `timeout` implementation for `fetch` transport to properly cancel request when the timeout timer will fire.
1 parent a204205 commit 07b3418

26 files changed

+954
-452
lines changed

.pubnub.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
---
22
changelog:
3+
- date: 2025-02-05
4+
version: v8.8.0
5+
changes:
6+
- type: feature
7+
text: "For the browser version of PubNub SDK, add the ability to switch between `fetch` and `xhr` APIs (`transport` configuration option)."
8+
- type: bug
9+
text: "Fix issue because of which, in Event Engine mode, wrong timeout values have been set for requests which create long-poll request."
10+
- type: improvement
11+
text: "Refactor `timeout` implementation for `fetch` transport to properly cancel request when the timeout timer will fire."
312
- date: 2025-01-31
413
version: v8.7.1
514
changes:
@@ -1123,7 +1132,7 @@ supported-platforms:
11231132
- 'Ubuntu 14.04 and up'
11241133
- 'Windows 7 and up'
11251134
version: 'Pubnub Javascript for Node'
1126-
version: '8.7.1'
1135+
version: '8.8.0'
11271136
sdks:
11281137
- full-name: PubNub Javascript SDK
11291138
short-name: Javascript
@@ -1139,7 +1148,7 @@ sdks:
11391148
- distribution-type: source
11401149
distribution-repository: GitHub release
11411150
package-name: pubnub.js
1142-
location: https://github.com/pubnub/javascript/archive/refs/tags/v8.7.1.zip
1151+
location: https://github.com/pubnub/javascript/archive/refs/tags/v8.8.0.zip
11431152
requires:
11441153
- name: 'agentkeepalive'
11451154
min-version: '3.5.2'
@@ -1810,7 +1819,7 @@ sdks:
18101819
- distribution-type: library
18111820
distribution-repository: GitHub release
18121821
package-name: pubnub.js
1813-
location: https://github.com/pubnub/javascript/releases/download/v8.7.1/pubnub.8.7.1.js
1822+
location: https://github.com/pubnub/javascript/releases/download/v8.8.0/pubnub.8.8.0.js
18141823
requires:
18151824
- name: 'agentkeepalive'
18161825
min-version: '3.5.2'

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## v8.8.0
2+
February 05 2025
3+
4+
#### Added
5+
- For the browser version of PubNub SDK, add the ability to switch between `fetch` and `xhr` APIs (`transport` configuration option).
6+
7+
#### Fixed
8+
- Fix issue because of which, in Event Engine mode, wrong timeout values have been set for requests which create long-poll request.
9+
10+
#### Modified
11+
- Refactor `timeout` implementation for `fetch` transport to properly cancel request when the timeout timer will fire.
12+
113
## v8.7.1
214
January 31 2025
315

README.md

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

0 commit comments

Comments
 (0)