@stream-io/feeds-client 0.3.23 → 0.3.24

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.24](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.23...@stream-io/feeds-client-0.3.24) (2025-12-17)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * proper poll typing with user response ([#196](https://github.com/GetStream/stream-feeds-js/issues/196)) ([6d83e88](https://github.com/GetStream/stream-feeds-js/commit/6d83e88d75f8810129f607ec61c1e0ac30b4074c)), closes [#171](https://github.com/GetStream/stream-feeds-js/issues/171)
11
+
5
12
  ## [0.3.23](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.3.22...@stream-io/feeds-client-0.3.23) (2025-12-16)
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-BUZVIyHd.js");
4
+ const feedsClient = require("../feeds-client-CuCL126K.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-BUZVIyHd.js");
5
+ const feedsClient = require("../feeds-client-CuCL126K.js");
6
6
  var shim = { exports: {} };
7
7
  var useSyncExternalStoreShim_production = {};
8
8
  /**
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-BJQdmCB4.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-BJQdmCB4.mjs";
3
+ import { d as debounce } from "../feeds-client-DljxtRSI.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-DljxtRSI.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-BJQdmCB4.mjs";
3
+ import { F as FeedsClient, g as isCommentResponse, c as checkHasAnotherPage } from "../feeds-client-DljxtRSI.mjs";
4
4
  var shim = { exports: {} };
5
5
  var useSyncExternalStoreShim_production = {};
6
6
  /**
@@ -3936,7 +3936,7 @@ const getRateLimitFromResponseHeader = (response_headers) => {
3936
3936
  };
3937
3937
  return result;
3938
3938
  };
3939
- const version = "0.3.23";
3939
+ const version = "0.3.24";
3940
3940
  const axios = axiosImport.default ?? axiosImport;
3941
3941
  class ApiClient {
3942
3942
  constructor(apiKey, tokenManager, connectionIdManager, options) {
@@ -4439,7 +4439,6 @@ class StreamPoll {
4439
4439
  } = event.poll;
4440
4440
  this.state.partialNext({
4441
4441
  answers_count,
4442
- // @ts-expect-error Incompatibility between PollResponseData and Poll due to teams_role, remove when OpenAPI spec is fixed
4443
4442
  latest_votes_by_option,
4444
4443
  vote_count,
4445
4444
  vote_counts_by_option,
@@ -4462,7 +4461,6 @@ class StreamPoll {
4462
4461
  if (isOwnVote) {
4463
4462
  if (isVoteAnswer(event.poll_vote)) {
4464
4463
  latestAnswers = [
4465
- // @ts-expect-error Incompatibility between PollResponseData and Poll due to teams_role, remove when OpenAPI spec is fixed
4466
4464
  event.poll_vote,
4467
4465
  ...latestAnswers.filter((answer) => answer.id !== event.poll_vote.id)
4468
4466
  ];
@@ -4502,7 +4500,6 @@ class StreamPoll {
4502
4500
  } = event.poll;
4503
4501
  this.state.partialNext({
4504
4502
  answers_count,
4505
- // @ts-expect-error Incompatibility between PollResponseData and Poll due to teams_role, remove when OpenAPI spec is fixed
4506
4503
  latest_votes_by_option,
4507
4504
  vote_count,
4508
4505
  vote_counts_by_option,
@@ -4545,7 +4542,6 @@ class StreamPoll {
4545
4542
  } = event.poll;
4546
4543
  this.state.partialNext({
4547
4544
  answers_count,
4548
- // @ts-expect-error Incompatibility between PollResponseData and Poll due to teams_role, remove when OpenAPI spec is fixed
4549
4545
  latest_votes_by_option,
4550
4546
  vote_count,
4551
4547
  vote_counts_by_option,
@@ -7805,4 +7801,4 @@ exports.replaceUniqueArrayMerge = replaceUniqueArrayMerge;
7805
7801
  exports.shouldUpdateState = shouldUpdateState;
7806
7802
  exports.uniqueArrayMerge = uniqueArrayMerge;
7807
7803
  exports.updateEntityInArray = updateEntityInArray;
7808
- //# sourceMappingURL=feeds-client-BUZVIyHd.js.map
7804
+ //# sourceMappingURL=feeds-client-CuCL126K.js.map