@stream-io/feeds-client 0.3.8 → 0.3.9

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.3.9](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.8...@stream-io/feeds-client-0.3.9) (2025-11-14)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * add missing current_feed in activity.updated ([e6f0d94](https://github.com/GetStream/stream-feeds-js/commit/e6f0d94c9862549844df58a3152d3eb3177b43fb))
11
+
5
12
  ## [0.3.8](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.7...@stream-io/feeds-client-0.3.8) (2025-11-12)
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-CwioZBvA.js");
4
+ const feedsClient = require("../feeds-client-DvR7ZYd1.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-CwioZBvA.js");
5
+ const feedsClient = require("../feeds-client-DvR7ZYd1.js");
6
6
  require("axios");
7
7
  var shim = { exports: {} };
8
8
  var useSyncExternalStoreShim_production = {};
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-DVbsjKUf.mjs";
4
- import { A, C, a, F, S, b, c, n, m, k, g, e, h, f, j, i, r, s, u, l } from "../feeds-client-DVbsjKUf.mjs";
3
+ import { d as debounce } from "../feeds-client-CI-WG0y0.mjs";
4
+ import { A, C, a, F, S, b, c, n, m, k, g, e, h, f, j, i, r, s, u, l } from "../feeds-client-CI-WG0y0.mjs";
5
5
  import { LogLevelEnum } 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-DVbsjKUf.mjs";
3
+ import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-CI-WG0y0.mjs";
4
4
  import "axios";
5
5
  var shim = { exports: {} };
6
6
  var useSyncExternalStoreShim_production = {};
@@ -3844,7 +3844,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
3844
3844
  };
3845
3845
  return result;
3846
3846
  };
3847
- const version = "0.3.8";
3847
+ const version = "0.3.9";
3848
3848
  class ApiClient {
3849
3849
  constructor(apiKey, tokenManager, connectionIdManager, options) {
3850
3850
  this.apiKey = apiKey;
@@ -5564,6 +5564,12 @@ function handleActivityUpdated(payload, fromWs) {
5564
5564
  activities: currentActivities,
5565
5565
  pinned_activities: currentPinnedActivities
5566
5566
  } = this.currentState;
5567
+ const currentActivity = currentActivities?.find(
5568
+ (a) => a.id === payload.activity.id
5569
+ );
5570
+ if (!payload.activity.current_feed && payload.activity.feeds.length === 1 && currentActivity?.current_feed) {
5571
+ payload.activity.current_feed = currentActivity.current_feed;
5572
+ }
5567
5573
  const [result1, result2] = [
5568
5574
  this.hasActivity(payload.activity.id) ? updateActivityInState(payload, currentActivities) : void 0,
5569
5575
  updatePinnedActivityInState(payload, currentPinnedActivities)
@@ -7642,4 +7648,4 @@ export {
7642
7648
  shouldUpdateState as s,
7643
7649
  uniqueArrayMerge as u
7644
7650
  };
7645
- //# sourceMappingURL=feeds-client-DVbsjKUf.mjs.map
7651
+ //# sourceMappingURL=feeds-client-CI-WG0y0.mjs.map