Skip to content

Commit d8b92af

Browse files
mohitpubnubMohit Tejanipubnub-release-bot
authored
fix: expose File construct for web target (#483)
* expose pubnub.File for target specific file handling construct * test for web to confirm access to File * update dist/lib * update .npmignore * PubNub SDK v10.2.1 release. --------- Co-authored-by: Mohit Tejani <[email protected]> Co-authored-by: PubNub Release Bot <[email protected]>
1 parent 76d53e6 commit d8b92af

File tree

16 files changed

+188
-15
lines changed

16 files changed

+188
-15
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ dist/contract
1616
dist/cucumber
1717
upload
1818
test/specs
19+
.claude/*
1920

2021
# GitHub Actions #
2122
##################

.npmignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,15 @@ coverage/
88
.idea
99
*.iml
1010
.travis
11-
11+
test/*
12+
.eslintignore
13+
.eslintrc.cjs
14+
.prettierrc
15+
.prettierignore
16+
.prettierignore
17+
.claude/*
1218
.babelrc
13-
1419
.github
1520
release-artifacts-*
1621
resources/*
22+
docs-snippets/*

.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-11-03
4+
version: v10.2.1
5+
changes:
6+
- type: improvement
7+
text: "Expose `File` on pubnub instance to manually create supported File construct."
38
- date: 2025-10-29
49
version: v10.2.0
510
changes:
@@ -1354,7 +1359,7 @@ supported-platforms:
13541359
- 'Ubuntu 14.04 and up'
13551360
- 'Windows 7 and up'
13561361
version: 'Pubnub Javascript for Node'
1357-
version: '10.2.0'
1362+
version: '10.2.1'
13581363
sdks:
13591364
- full-name: PubNub Javascript SDK
13601365
short-name: Javascript
@@ -1370,7 +1375,7 @@ sdks:
13701375
- distribution-type: source
13711376
distribution-repository: GitHub release
13721377
package-name: pubnub.js
1373-
location: https://github.com/pubnub/javascript/archive/refs/tags/v10.2.0.zip
1378+
location: https://github.com/pubnub/javascript/archive/refs/tags/v10.2.1.zip
13741379
requires:
13751380
- name: 'agentkeepalive'
13761381
min-version: '3.5.2'
@@ -2041,7 +2046,7 @@ sdks:
20412046
- distribution-type: library
20422047
distribution-repository: GitHub release
20432048
package-name: pubnub.js
2044-
location: https://github.com/pubnub/javascript/releases/download/v10.2.0/pubnub.10.2.0.js
2049+
location: https://github.com/pubnub/javascript/releases/download/v10.2.1/pubnub.10.2.1.js
20452050
requires:
20462051
- name: 'agentkeepalive'
20472052
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.1
2+
November 03 2025
3+
4+
#### Modified
5+
- Expose `File` on pubnub instance to manually create supported File construct.
6+
17
## v10.2.0
28
October 29 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.10.2.0.js
31-
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.0.min.js
30+
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.1.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.10.2.1.min.js
3232
3333
2. Configure your keys:
3434

dist/web/pubnub.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5436,7 +5436,7 @@
54365436
return base.PubNubFile;
54375437
},
54385438
get version() {
5439-
return '10.2.0';
5439+
return '10.2.1';
54405440
},
54415441
getVersion() {
54425442
return this.version;
@@ -18358,6 +18358,10 @@
1835818358
tokenManager,
1835918359
crypto,
1836018360
});
18361+
/**
18362+
* PubNub File constructor.
18363+
*/
18364+
this.File = PubNubFile;
1836118365
this.onHeartbeatIntervalChange = heartbeatIntervalChangeHandler;
1836218366
this.onAuthenticationChange = authenticationChangeHandler;
1836318367
this.onPresenceStateChange = presenceStateChangeHandler;

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.0';
171+
return '10.2.1';
172172
},
173173
getVersion() {
174174
return this.version;

lib/react_native/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class PubNub extends pubnub_common_1.PubNubCore {
8888
tokenManager,
8989
crypto,
9090
});
91+
/**
92+
* PubNub File constructor.
93+
*/
94+
this.File = react_native_1.default;
9195
}
9296
}
9397
/**

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.

0 commit comments

Comments
 (0)