@stream-io/feeds-client 0.1.7 → 0.1.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/@react-bindings/hooks/util/index.ts +1 -0
- package/CHANGELOG.md +20 -0
- package/dist/@react-bindings/hooks/util/index.d.ts +1 -0
- package/dist/@react-bindings/hooks/util/useBookmarkActions.d.ts +13 -0
- package/dist/@react-bindings/hooks/util/useReactionActions.d.ts +1 -1
- package/dist/index-react-bindings.browser.cjs +363 -141
- package/dist/index-react-bindings.browser.cjs.map +1 -1
- package/dist/index-react-bindings.browser.js +363 -142
- package/dist/index-react-bindings.browser.js.map +1 -1
- package/dist/index-react-bindings.node.cjs +363 -141
- package/dist/index-react-bindings.node.cjs.map +1 -1
- package/dist/index-react-bindings.node.js +363 -142
- package/dist/index-react-bindings.node.js.map +1 -1
- package/dist/index.browser.cjs +337 -140
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +337 -141
- package/dist/index.browser.js.map +1 -1
- package/dist/index.node.cjs +337 -140
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +337 -141
- package/dist/index.node.js.map +1 -1
- package/dist/src/Feed.d.ts +42 -11
- package/dist/src/FeedsClient.d.ts +10 -3
- package/dist/src/common/real-time/StableWSConnection.d.ts +3 -3
- package/dist/src/gen/models/index.d.ts +25 -2
- package/dist/src/gen-imports.d.ts +1 -1
- package/dist/src/state-updates/follow-utils.d.ts +19 -0
- package/dist/src/state-updates/state-update-queue.d.ts +15 -0
- package/dist/src/utils.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/Feed.ts +230 -192
- package/src/FeedsClient.ts +75 -3
- package/src/gen/feeds/FeedsApi.ts +0 -1
- package/src/gen/model-decoders/decoders.ts +16 -0
- package/src/gen/model-decoders/event-decoder-mapping.ts +3 -0
- package/src/gen/models/index.ts +42 -4
- package/src/gen-imports.ts +1 -1
- package/src/state-updates/activity-reaction-utils.test.ts +1 -0
- package/src/state-updates/activity-utils.test.ts +1 -0
- package/src/state-updates/follow-utils.test.ts +552 -0
- package/src/state-updates/follow-utils.ts +126 -0
- package/src/state-updates/state-update-queue.test.ts +53 -0
- package/src/state-updates/state-update-queue.ts +35 -0
- package/src/utils.test.ts +175 -0
- package/src/utils.ts +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [0.1.9](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.8...@stream-io/feeds-client-0.1.9) (2025-07-28)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* comments and activity actions ([#76](https://github.com/GetStream/stream-feeds-js/issues/76)) ([5484864](https://github.com/GetStream/stream-feeds-js/commit/54848641043c379e9c9b3d290260375dee5ccfa6))
|
|
11
|
+
* consider `depth` option for `loadNextPageComments` ([#65](https://github.com/GetStream/stream-feeds-js/issues/65)) ([5ffc786](https://github.com/GetStream/stream-feeds-js/commit/5ffc78626a8415f2c77d24d234810712b2f1e52c))
|
|
12
|
+
* enable queryFeeds without watch: true ([#75](https://github.com/GetStream/stream-feeds-js/issues/75)) ([fbd2851](https://github.com/GetStream/stream-feeds-js/commit/fbd285146fb4cec99711ec4fb18b22e5ae0847e6)), closes [/github.com/GetStream/stream-feeds-js/pull/75/files#diff-5fe26340feefe9212a93cb4f25c7996731c1245bb6253d4c106ef98afbcc3a17](https://github.com/GetStream//github.com/GetStream/stream-feeds-js/pull/75/files/issues/diff-5fe26340feefe9212a93cb4f25c7996731c1245bb6253d4c106ef98afbcc3a17) [/github.com/GetStream/stream-feeds-js/pull/75/files#diff-20886f4c7cbf4a14b78ed974d55bb6d44f278117f37d1864e494443c3ee8f73dR30](https://github.com/GetStream//github.com/GetStream/stream-feeds-js/pull/75/files/issues/diff-20886f4c7cbf4a14b78ed974d55bb6d44f278117f37d1864e494443c3ee8f73dR30)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* adjust how we merge/update members ([#74](https://github.com/GetStream/stream-feeds-js/issues/74)) ([220aa07](https://github.com/GetStream/stream-feeds-js/commit/220aa07868bd56637c37f4b1434020ae548b5a9b))
|
|
18
|
+
* catch irrelevant error to avoid test failiure ([#77](https://github.com/GetStream/stream-feeds-js/issues/77)) ([836a8bb](https://github.com/GetStream/stream-feeds-js/commit/836a8bbb58d4d0fe150f4c370d0a05dcc26252cb))
|
|
19
|
+
|
|
20
|
+
## [0.1.8](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.7...@stream-io/feeds-client-0.1.8) (2025-07-23)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
* [FEEDS-538] bump openapi to support notifcation event ([#73](https://github.com/GetStream/stream-feeds-js/issues/73)) ([6829746](https://github.com/GetStream/stream-feeds-js/commit/6829746dd64ac171e17133c1d1a44161346cc17b))
|
|
24
|
+
|
|
5
25
|
## [0.1.7](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.6...@stream-io/feeds-client-0.1.7) (2025-07-22)
|
|
6
26
|
|
|
7
27
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ActivityResponse } from '../../../src/gen/models';
|
|
2
|
+
/**
|
|
3
|
+
* A utility hook that takes in an entity and creates bookmark actions
|
|
4
|
+
* that can then be used on the UI. The entity is expected to be an ActivityResponse.
|
|
5
|
+
* @param entity - The entity to which we want to apply reaction actions, expects an ActivityResponse.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useBookmarkActions: ({ entity, }: {
|
|
8
|
+
entity: ActivityResponse;
|
|
9
|
+
}) => {
|
|
10
|
+
addBookmark: import("../internal").StableCallback<[], Promise<void>>;
|
|
11
|
+
removeBookmark: import("../internal").StableCallback<[], Promise<void>>;
|
|
12
|
+
toggleBookmark: import("../internal").StableCallback<[], Promise<void>>;
|
|
13
|
+
};
|
|
@@ -4,7 +4,7 @@ import { CommentParent } from '../../../src/types';
|
|
|
4
4
|
* that can then be used on the UI. The entity can be either an ActivityResponse or a CommentResponse
|
|
5
5
|
* as the hook determines internally which APIs it is supposed to use, while taking the
|
|
6
6
|
* correct ownCapabilities into account.
|
|
7
|
-
* @param entity - The entity to which we want to
|
|
7
|
+
* @param entity - The entity to which we want to apply reaction actions, can be either ActivityResponse or CommentResponse.
|
|
8
8
|
* @param type - The type of reaction we want to add or remove.
|
|
9
9
|
*/
|
|
10
10
|
export declare const useReactionActions: ({ entity, type, }: {
|