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-07-28
version: v9.8.2
changes:
- type: improvement
text: "Upgraded `form-data` dependency to version 4.0.4 to address potential vulnerability issue."
- date: 2025-07-15
version: v9.8.1
changes:
Expand Down Expand Up @@ -1298,7 +1303,7 @@ supported-platforms:
- 'Ubuntu 14.04 and up'
- 'Windows 7 and up'
version: 'Pubnub Javascript for Node'
version: '9.8.1'
version: '9.8.2'
sdks:
- full-name: PubNub Javascript SDK
short-name: Javascript
Expand All @@ -1314,7 +1319,7 @@ sdks:
- distribution-type: source
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.1.zip
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.2.zip
requires:
- name: 'agentkeepalive'
min-version: '3.5.2'
Expand Down Expand Up @@ -1985,7 +1990,7 @@ sdks:
- distribution-type: library
distribution-repository: GitHub release
package-name: pubnub.js
location: https://github.com/pubnub/javascript/releases/download/v9.8.1/pubnub.9.8.1.js
location: https://github.com/pubnub/javascript/releases/download/v9.8.2/pubnub.9.8.2.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.2
July 28 2025

#### Modified
- Upgraded `form-data` dependency to version 4.0.4 to address potential vulnerability issue.

## v9.8.1
July 15 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.1.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.1.min.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.2.js
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.2.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.1';
return '9.8.2';
},
getVersion() {
return this.version;
Expand Down
2 changes: 1 addition & 1 deletion dist/web/pubnub.min.js

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions docs-snippets/publish-subscribe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,24 +219,24 @@ pubnub.unsubscribe({
subscriptionSet.subscribe();
// snippet.end
}
{
// snippet.SubscriptionSetFrom2Sets
// create a subscription set with multiple channels
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });

// create another subscription set with multiple channels and options
const subscriptionSet2 = pubnub.subscriptionSet({
channels: ['ch3', 'ch4'],
subscriptionOptions: { receivePresenceEvents: true },
});

// snippet.SubscriptionSetFrom2Sets
// create a subscription set with multiple channels
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });

// create another subscription set with multiple channels and options
const subscriptionSet2 = pubnub.subscriptionSet({
channels: ['ch3', 'ch4'],
subscriptionOptions: { receivePresenceEvents: true },
});

// add a subscription set to another subscription set
subscriptionSet1.addSubscriptionSet(subscriptionSet2);

// remove a subscription set from another subscription set
subscriptionSet1.removeSubscriptionSet(subscriptionSet2);
// snippet.end
// add a subscription set to another subscription set
subscriptionSet1.addSubscriptionSet(subscriptionSet2);

// remove a subscription set from another subscription set
subscriptionSet1.removeSubscriptionSet(subscriptionSet2);
// snippet.end
}
// snippet.AddToExistingSubscriptionSet
// create a subscription set with multiple channels
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });
Expand Down
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.1';
return '9.8.2';
},
getVersion() {
return this.version;
Expand Down
13 changes: 7 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pubnub",
"version": "9.8.1",
"version": "9.8.2",
"author": "PubNub <support@pubnub.com>",
"description": "Publish & Subscribe Real-time Messaging with PubNub",
"scripts": {
Expand Down Expand Up @@ -61,7 +61,7 @@
"cbor-js": "^0.1.0",
"cbor-sync": "^1.0.4",
"fflate": "^0.8.2",
"form-data": "^4.0.0",
"form-data": "^4.0.4",
"lil-uuid": "^0.1.1",
"node-fetch": "^2.7.0",
"proxy-agent": "^6.3.0",
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.1';
return '9.8.2';
},
getVersion(): string {
return this.version;
Expand Down
Loading