@stream-io/feeds-client 0.2.19 → 0.2.20

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 CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.2.20](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.19...@stream-io/feeds-client-0.2.20) (2025-10-20)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * only send maximum 100 feeds to batch capabilities endpoint ([#141](https://github.com/GetStream/stream-feeds-js/issues/141)) ([5d662da](https://github.com/GetStream/stream-feeds-js/commit/5d662dac991296025612ddad8db076259a04e910))
11
+
5
12
  ## [0.2.19](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.2.18...@stream-io/feeds-client-0.2.19) (2025-10-20)
6
13
 
7
14
 
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-C09giTf1.js");
4
+ const feedsClient = require("../feeds-client-BlR_3zy2.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-C09giTf1.js");
5
+ const feedsClient = require("../feeds-client-BlR_3zy2.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-CFadXO-B.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-CFadXO-B.mjs";
3
+ import { d as debounce } from "../feeds-client-BObWT4vl.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-BObWT4vl.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-CFadXO-B.mjs";
3
+ import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-BObWT4vl.mjs";
4
4
  import "@stream-io/logger";
5
5
  import "axios";
6
6
  var shim = { exports: {} };
@@ -3730,7 +3730,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
3730
3730
  };
3731
3731
  return result;
3732
3732
  };
3733
- const version = "0.2.19";
3733
+ const version = "0.2.20";
3734
3734
  class ApiClient {
3735
3735
  constructor(apiKey, tokenManager, connectionIdManager, options) {
3736
3736
  this.apiKey = apiKey;
@@ -6628,6 +6628,7 @@ const throttle = (fn, timeout = 200, {
6628
6628
  }
6629
6629
  };
6630
6630
  };
6631
+ const BATCH_OWN_CAPABILITIES_API_LIMIT = 100;
6631
6632
  const DEFAULT_BATCH_OWN_CAPABILITIES_THROTTLING_INTERVAL = 2e3;
6632
6633
  const queuedFeeds = /* @__PURE__ */ new Set();
6633
6634
  function queueBatchedOwnCapabilities({ feeds }) {
@@ -6636,7 +6637,7 @@ function queueBatchedOwnCapabilities({ feeds }) {
6636
6637
  }
6637
6638
  if (queuedFeeds.size > 0) {
6638
6639
  this.throttledGetBatchOwnCapabilities(
6639
- [...queuedFeeds],
6640
+ [...queuedFeeds].slice(0, BATCH_OWN_CAPABILITIES_API_LIMIT),
6640
6641
  (feedsToClear) => {
6641
6642
  for (const feed of feedsToClear) {
6642
6643
  queuedFeeds.delete(feed);
@@ -7192,4 +7193,4 @@ export {
7192
7193
  shouldUpdateState as s,
7193
7194
  uniqueArrayMerge as u
7194
7195
  };
7195
- //# sourceMappingURL=feeds-client-CFadXO-B.mjs.map
7196
+ //# sourceMappingURL=feeds-client-BObWT4vl.mjs.map