GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
177 stars 75 forks source link

fix: fix channel.membership type #1300

Closed myandrienko closed 3 months ago

myandrienko commented 3 months ago

We had a separate type for channel.membership which seemed to be incomplete and different from the type of channel.members[i].

In this PR:

  1. Replace ChannelMembership type with ChannelMemberResponse everywhere, since it's supposed to be the same type (see backend types: [1] and [2]).
  2. Keep ChannelMembership for reverse compatibility, but deprecate it and make it an alias for ChannelMemberResponse.
github-actions[bot] commented 3 months ago

Size Change: +73 B (+0.02%)

Total Size: 369 kB

Filename Size Change
dist/browser.es.js 79.6 kB +17 B (+0.02%)
dist/browser.js 80.6 kB +20 B (+0.02%)
dist/index.es.js 79.6 kB +17 B (+0.02%)
dist/index.js 80.7 kB +19 B (+0.02%)
ℹ️ View Unchanged | Filename | Size | | :--- | :---: | | `dist/browser.full-bundle.min.js` | 48.2 kB |

compressed-size-action