Skip to content

Commit 1f99c8e

Browse files
mohitpubnubMohit Tejanipubnub-release-bot
authored
deps: upgrade form-data to 4.0.4 for vulnerability fix (#468)
* deps: upgrade form-data to 4.0.4 for vulnerability fix * docs-syntax: resolve name conflic issue by adding dummy scope for examples * codacy: applied lint suggestions * PubNub SDK v9.8.2 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
1 parent c0d021b commit 1f99c8e

File tree

10 files changed

+45
-33
lines changed

10 files changed

+45
-33
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: 2025-07-28
4+
version: v9.8.2
5+
changes:
6+
- type: improvement
7+
text: "Upgraded `form-data` dependency to version 4.0.4 to address potential vulnerability issue."
38
- date: 2025-07-15
49
version: v9.8.1
510
changes:
@@ -1298,7 +1303,7 @@ supported-platforms:
12981303
- 'Ubuntu 14.04 and up'
12991304
- 'Windows 7 and up'
13001305
version: 'Pubnub Javascript for Node'
1301-
version: '9.8.1'
1306+
version: '9.8.2'
13021307
sdks:
13031308
- full-name: PubNub Javascript SDK
13041309
short-name: Javascript
@@ -1314,7 +1319,7 @@ sdks:
13141319
- distribution-type: source
13151320
distribution-repository: GitHub release
13161321
package-name: pubnub.js
1317-
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.1.zip
1322+
location: https://github.com/pubnub/javascript/archive/refs/tags/v9.8.2.zip
13181323
requires:
13191324
- name: 'agentkeepalive'
13201325
min-version: '3.5.2'
@@ -1985,7 +1990,7 @@ sdks:
19851990
- distribution-type: library
19861991
distribution-repository: GitHub release
19871992
package-name: pubnub.js
1988-
location: https://github.com/pubnub/javascript/releases/download/v9.8.1/pubnub.9.8.1.js
1993+
location: https://github.com/pubnub/javascript/releases/download/v9.8.2/pubnub.9.8.2.js
19891994
requires:
19901995
- name: 'agentkeepalive'
19911996
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+
## v9.8.2
2+
July 28 2025
3+
4+
#### Modified
5+
- Upgraded `form-data` dependency to version 4.0.4 to address potential vulnerability issue.
6+
17
## v9.8.1
28
July 15 2025
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.9.8.1.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.1.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.2.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.9.8.2.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
@@ -5333,7 +5333,7 @@
53335333
return base.PubNubFile;
53345334
},
53355335
get version() {
5336-
return '9.8.1';
5336+
return '9.8.2';
53375337
},
53385338
getVersion() {
53395339
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.

docs-snippets/publish-subscribe.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -219,24 +219,24 @@ pubnub.unsubscribe({
219219
subscriptionSet.subscribe();
220220
// snippet.end
221221
}
222+
{
223+
// snippet.SubscriptionSetFrom2Sets
224+
// create a subscription set with multiple channels
225+
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });
226+
227+
// create another subscription set with multiple channels and options
228+
const subscriptionSet2 = pubnub.subscriptionSet({
229+
channels: ['ch3', 'ch4'],
230+
subscriptionOptions: { receivePresenceEvents: true },
231+
});
222232

223-
// snippet.SubscriptionSetFrom2Sets
224-
// create a subscription set with multiple channels
225-
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });
226-
227-
// create another subscription set with multiple channels and options
228-
const subscriptionSet2 = pubnub.subscriptionSet({
229-
channels: ['ch3', 'ch4'],
230-
subscriptionOptions: { receivePresenceEvents: true },
231-
});
232-
233-
// add a subscription set to another subscription set
234-
subscriptionSet1.addSubscriptionSet(subscriptionSet2);
235-
236-
// remove a subscription set from another subscription set
237-
subscriptionSet1.removeSubscriptionSet(subscriptionSet2);
238-
// snippet.end
233+
// add a subscription set to another subscription set
234+
subscriptionSet1.addSubscriptionSet(subscriptionSet2);
239235

236+
// remove a subscription set from another subscription set
237+
subscriptionSet1.removeSubscriptionSet(subscriptionSet2);
238+
// snippet.end
239+
}
240240
// snippet.AddToExistingSubscriptionSet
241241
// create a subscription set with multiple channels
242242
const subscriptionSet1 = pubnub.subscriptionSet({ channels: ['ch1', 'ch2'] });

lib/core/components/configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const makeConfiguration = (base, setupCryptoModule) => {
164164
return base.PubNubFile;
165165
},
166166
get version() {
167-
return '9.8.1';
167+
return '9.8.2';
168168
},
169169
getVersion() {
170170
return this.version;

package-lock.json

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pubnub",
3-
"version": "9.8.1",
3+
"version": "9.8.2",
44
"author": "PubNub <[email protected]>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"scripts": {
@@ -61,7 +61,7 @@
6161
"cbor-js": "^0.1.0",
6262
"cbor-sync": "^1.0.4",
6363
"fflate": "^0.8.2",
64-
"form-data": "^4.0.0",
64+
"form-data": "^4.0.4",
6565
"lil-uuid": "^0.1.1",
6666
"node-fetch": "^2.7.0",
6767
"proxy-agent": "^6.3.0",

src/core/components/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export const makeConfiguration = (
232232
return base.PubNubFile;
233233
},
234234
get version(): string {
235-
return '9.8.1';
235+
return '9.8.2';
236236
},
237237
getVersion(): string {
238238
return this.version;

0 commit comments

Comments
 (0)