Skip to content

Commit 8d9d8c2

Browse files
mohitpubnubpubnub-release-botkazydek
authored
CLEN-1924: pagination params listChannels api for push devices (#366)
* added `start` and `count` to listChannels api for push devices * PubNub SDK v7.6.2 release. * Update .pubnub.yml Co-authored-by: Karolina Rymer <karolina.zydek@pubnub.com> --------- Co-authored-by: PubNub Release Bot <120067856+pubnub-release-bot@users.noreply.github.com> Co-authored-by: Karolina Rymer <karolina.zydek@pubnub.com>
1 parent a551a84 commit 8d9d8c2

11 files changed

Lines changed: 90 additions & 13 deletions

File tree

.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: 2024-03-28
4+
version: v7.6.2
5+
changes:
6+
- type: feature
7+
text: "Added support for pagination params for listChannels API of push notification devices."
38
- date: 2024-02-26
49
version: v7.6.1
510
changes:
@@ -948,7 +953,7 @@ supported-platforms:
948953
- 'Ubuntu 14.04 and up'
949954
- 'Windows 7 and up'
950955
version: 'Pubnub Javascript for Node'
951-
version: '7.6.1'
956+
version: '7.6.2'
952957
sdks:
953958
- full-name: PubNub Javascript SDK
954959
short-name: Javascript
@@ -964,7 +969,7 @@ sdks:
964969
- distribution-type: source
965970
distribution-repository: GitHub release
966971
package-name: pubnub.js
967-
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.6.1.zip
972+
location: https://github.com/pubnub/javascript/archive/refs/tags/v7.6.2.zip
968973
requires:
969974
- name: 'agentkeepalive'
970975
min-version: '3.5.2'
@@ -1635,7 +1640,7 @@ sdks:
16351640
- distribution-type: library
16361641
distribution-repository: GitHub release
16371642
package-name: pubnub.js
1638-
location: https://github.com/pubnub/javascript/releases/download/v7.6.1/pubnub.7.6.1.js
1643+
location: https://github.com/pubnub/javascript/releases/download/v7.6.2/pubnub.7.6.2.js
16391644
requires:
16401645
- name: 'agentkeepalive'
16411646
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+
## v7.6.2
2+
March 28 2024
3+
4+
#### Added
5+
- Added support for pagination params for listChannels api of push notification devices.
6+
17
## v7.6.1
28
February 26 2024
39

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.7.6.1.js
32-
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.6.1.min.js
31+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.6.2.js
32+
* https://cdn.pubnub.com/sdk/javascript/pubnub.7.6.2.min.js
3333
3434
2. Configure your keys:
3535

dist/web/pubnub.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@
794794
return this;
795795
};
796796
default_1.prototype.getVersion = function () {
797-
return '7.6.1';
797+
return '7.6.2';
798798
};
799799
default_1.prototype._setRetryConfiguration = function (configuration) {
800800
if (configuration.minimumdelay < 2) {
@@ -3893,12 +3893,16 @@
38933893
return true;
38943894
}
38953895
function prepareParams$l(modules, incomingParams) {
3896-
var pushGateway = incomingParams.pushGateway, _a = incomingParams.environment, environment = _a === void 0 ? 'development' : _a, topic = incomingParams.topic;
3896+
var pushGateway = incomingParams.pushGateway, _a = incomingParams.environment, environment = _a === void 0 ? 'development' : _a, topic = incomingParams.topic, start = incomingParams.start, count = incomingParams.count;
38973897
var parameters = { type: pushGateway };
38983898
if (pushGateway === 'apns2') {
38993899
parameters = __assign(__assign({}, parameters), { environment: environment, topic: topic });
39003900
delete parameters.type;
39013901
}
3902+
if (start)
3903+
parameters.start = start;
3904+
if (count && count > 0)
3905+
parameters.count = count;
39023906
return parameters;
39033907
}
39043908
function handleResponse$l(modules, serverResponse) {

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/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ var default_1 = /** @class */ (function () {
180180
return this;
181181
};
182182
default_1.prototype.getVersion = function () {
183-
return '7.6.1';
183+
return '7.6.2';
184184
};
185185
default_1.prototype._setRetryConfiguration = function (configuration) {
186186
if (configuration.minimumdelay < 2) {

lib/core/endpoints/push/list_push_channels.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,16 @@ function isAuthSupported() {
5353
}
5454
exports.isAuthSupported = isAuthSupported;
5555
function prepareParams(modules, incomingParams) {
56-
var pushGateway = incomingParams.pushGateway, _a = incomingParams.environment, environment = _a === void 0 ? 'development' : _a, topic = incomingParams.topic;
56+
var pushGateway = incomingParams.pushGateway, _a = incomingParams.environment, environment = _a === void 0 ? 'development' : _a, topic = incomingParams.topic, start = incomingParams.start, count = incomingParams.count;
5757
var parameters = { type: pushGateway };
5858
if (pushGateway === 'apns2') {
5959
parameters = __assign(__assign({}, parameters), { environment: environment, topic: topic });
6060
delete parameters.type;
6161
}
62+
if (start)
63+
parameters.start = start;
64+
if (count && count > 0)
65+
parameters.count = count;
6266
return parameters;
6367
}
6468
exports.prepareParams = prepareParams;

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": "7.6.1",
3+
"version": "7.6.2",
44
"author": "PubNub <support@pubnub.com>",
55
"description": "Publish & Subscribe Real-time Messaging with PubNub",
66
"scripts": {

src/core/components/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export default class {
358358
}
359359

360360
getVersion() {
361-
return '7.6.1';
361+
return '7.6.2';
362362
}
363363

364364
_setRetryConfiguration(configuration) {

src/core/endpoints/push/list_push_channels.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,17 @@ export function isAuthSupported() {
3535
}
3636

3737
export function prepareParams(modules, incomingParams) {
38-
const { pushGateway, environment = 'development', topic } = incomingParams;
38+
const { pushGateway, environment = 'development', topic, start, count } = incomingParams;
3939
let parameters = { type: pushGateway };
4040

4141
if (pushGateway === 'apns2') {
4242
parameters = { ...parameters, environment, topic };
4343
delete parameters.type;
4444
}
4545

46+
if (start) parameters.start = start;
47+
if (count && count > 0) parameters.count = count;
48+
4649
return parameters;
4750
}
4851

0 commit comments

Comments
 (0)