@stream-io/feeds-client 0.3.3 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/react-bindings.js +1 -1
- package/dist/es/index.mjs +2 -2
- package/dist/es/react-bindings.mjs +1 -1
- package/dist/{feeds-client-BWaXWhhB.mjs → feeds-client-CNHZvctN.mjs} +12 -5
- package/dist/{feeds-client-BWaXWhhB.mjs.map → feeds-client-CNHZvctN.mjs.map} +1 -1
- package/dist/{feeds-client-Ddac-BnP.js → feeds-client-HvoTzr-z.js} +12 -5
- package/dist/{feeds-client-Ddac-BnP.js.map → feeds-client-HvoTzr-z.js.map} +1 -1
- package/dist/types/feed/feed.d.ts +5 -1
- package/dist/types/feed/feed.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/feed/feed.ts +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.3.4](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.3...@stream-io/feeds-client-0.3.4) (2025-11-04)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* forward all relevant config options from getOrCreate in getNextPage ([#158](https://github.com/GetStream/stream-feeds-js/issues/158)) ([a6216a8](https://github.com/GetStream/stream-feeds-js/commit/a6216a83d26f7045e8fcc38b6ff142e5bc75f7e6))
|
|
11
|
+
* getNextPage returns undefined if there is no more page to fetch ([#157](https://github.com/GetStream/stream-feeds-js/issues/157)) ([7bf9093](https://github.com/GetStream/stream-feeds-js/commit/7bf90938585032aec9160b6f07885dd5a681953f))
|
|
12
|
+
|
|
5
13
|
## [0.3.3](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.2...@stream-io/feeds-client-0.3.3) (2025-10-31)
|
|
6
14
|
|
|
7
15
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const stateStore = require("@stream-io/state-store");
|
|
4
|
-
const feedsClient = require("../feeds-client-
|
|
4
|
+
const feedsClient = require("../feeds-client-HvoTzr-z.js");
|
|
5
5
|
const loggerInternal = require("@stream-io/logger");
|
|
6
6
|
const ChannelOwnCapability = {
|
|
7
7
|
BAN_CHANNEL_MEMBERS: "ban-channel-members",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const require$$0 = require("react");
|
|
4
4
|
require("@stream-io/state-store");
|
|
5
|
-
const feedsClient = require("../feeds-client-
|
|
5
|
+
const feedsClient = require("../feeds-client-HvoTzr-z.js");
|
|
6
6
|
require("@stream-io/logger");
|
|
7
7
|
require("axios");
|
|
8
8
|
var shim = { exports: {} };
|
package/dist/es/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StateStore } from "@stream-io/state-store";
|
|
2
2
|
export * from "@stream-io/state-store";
|
|
3
|
-
import { d as debounce } from "../feeds-client-
|
|
4
|
-
import { C, a, F, S, b, c, m, o, n, k, g, e, h, f, j, i, r, s, u, l } from "../feeds-client-
|
|
3
|
+
import { d as debounce } from "../feeds-client-CNHZvctN.mjs";
|
|
4
|
+
import { C, a, F, S, b, c, m, o, n, k, g, e, h, f, j, i, r, s, u, l } from "../feeds-client-CNHZvctN.mjs";
|
|
5
5
|
import { LogLevelEnum, restoreDefaults } from "@stream-io/logger";
|
|
6
6
|
const ChannelOwnCapability = {
|
|
7
7
|
BAN_CHANNEL_MEMBERS: "ban-channel-members",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import require$$0, { useCallback, useMemo, useState, useEffect, createContext, useContext, useRef } from "react";
|
|
2
2
|
import "@stream-io/state-store";
|
|
3
|
-
import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-
|
|
3
|
+
import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-CNHZvctN.mjs";
|
|
4
4
|
import "@stream-io/logger";
|
|
5
5
|
import "axios";
|
|
6
6
|
var shim = { exports: {} };
|
|
@@ -3764,7 +3764,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
|
|
|
3764
3764
|
};
|
|
3765
3765
|
return result;
|
|
3766
3766
|
};
|
|
3767
|
-
const version = "0.3.
|
|
3767
|
+
const version = "0.3.4";
|
|
3768
3768
|
class ApiClient {
|
|
3769
3769
|
constructor(apiKey, tokenManager, connectionIdManager, options) {
|
|
3770
3770
|
this.apiKey = apiKey;
|
|
@@ -6582,9 +6582,17 @@ const _Feed = class _Feed extends FeedApi {
|
|
|
6582
6582
|
});
|
|
6583
6583
|
return response;
|
|
6584
6584
|
}
|
|
6585
|
+
/**
|
|
6586
|
+
* Fetches the next page of activities for the feed.
|
|
6587
|
+
* @returns The response from the API or `undefined` if there is no next page.
|
|
6588
|
+
*/
|
|
6585
6589
|
async getNextPage() {
|
|
6586
6590
|
const currentState = this.currentState;
|
|
6591
|
+
if (!currentState.next) {
|
|
6592
|
+
return;
|
|
6593
|
+
}
|
|
6587
6594
|
return await this.getOrCreate({
|
|
6595
|
+
...currentState.last_get_or_create_request_config,
|
|
6588
6596
|
member_pagination: {
|
|
6589
6597
|
limit: 0
|
|
6590
6598
|
},
|
|
@@ -6594,9 +6602,8 @@ const _Feed = class _Feed extends FeedApi {
|
|
|
6594
6602
|
following_pagination: {
|
|
6595
6603
|
limit: 0
|
|
6596
6604
|
},
|
|
6597
|
-
|
|
6598
|
-
next: currentState.next
|
|
6599
|
-
limit: currentState.last_get_or_create_request_config?.limit ?? 20
|
|
6605
|
+
watch: void 0,
|
|
6606
|
+
next: currentState.next
|
|
6600
6607
|
});
|
|
6601
6608
|
}
|
|
6602
6609
|
async addActivity(request) {
|
|
@@ -7308,4 +7315,4 @@ export {
|
|
|
7308
7315
|
shouldUpdateState as s,
|
|
7309
7316
|
uniqueArrayMerge as u
|
|
7310
7317
|
};
|
|
7311
|
-
//# sourceMappingURL=feeds-client-
|
|
7318
|
+
//# sourceMappingURL=feeds-client-CNHZvctN.mjs.map
|