|
| 1 | +## [9.2.0-offline-support-beta.1](https://github.com/GetStream/stream-chat-js/compare/v9.1.1...v9.2.0-offline-support-beta.1) (2025-05-22) |
| 2 | + |
| 3 | +### Bug Fixes |
| 4 | + |
| 5 | +* add new poll option only when all of the current options are filled ([#1532](https://github.com/GetStream/stream-chat-js/issues/1532)) ([86cd646](https://github.com/GetStream/stream-chat-js/commit/86cd64656df76179745236ef8b6758f79a399e60)) |
| 6 | +* adjust MessageBase.type to MessageLabel ([55a988e](https://github.com/GetStream/stream-chat-js/commit/55a988e4d4a39523aca68c0b416cc52bb7a03c67)) |
| 7 | +* adjust TextComposer middleware to correctly handle triggers in combination ([6922024](https://github.com/GetStream/stream-chat-js/commit/69220249d3e652785c02c12f0a4b89bc05997946)) |
| 8 | +* allow to compose non-empty message from draft without local edits ([#1533](https://github.com/GetStream/stream-chat-js/issues/1533)) ([a704fc3](https://github.com/GetStream/stream-chat-js/commit/a704fc37e441f4e38b769bce39aef98bc50dea4d)) |
| 9 | +* channel.truncated edge cases and missing functionality ([c7887d6](https://github.com/GetStream/stream-chat-js/commit/c7887d6b333041234543e2176336ecfcd8690c3d)) |
| 10 | +* check for commands trigger and not hardcoded string values ([20eb30d](https://github.com/GetStream/stream-chat-js/commit/20eb30d5d70fdf2c508f52321da4738a0ac46340)) |
| 11 | +* check for composition type before message type when storing edited message ([2febce6](https://github.com/GetStream/stream-chat-js/commit/2febce61e3429fa48112bbc14798e0b5e55d1466)) |
| 12 | +* check for message in undefined message draft ([0b1b773](https://github.com/GetStream/stream-chat-js/commit/0b1b77376e32c5266f65b2ef30c57413e927daed)) |
| 13 | +* commands trigger ([598f8cb](https://github.com/GetStream/stream-chat-js/commit/598f8cb613ebfee846c328e01890425777632505)) |
| 14 | +* create draft even though some attachments are uploading ([dc28f61](https://github.com/GetStream/stream-chat-js/commit/dc28f618221045f5e5c3faf43dde935a92cb8516)) |
| 15 | +* create draft with link preview from link preview data ([324e4c4](https://github.com/GetStream/stream-chat-js/commit/324e4c4c8f6a44bb113a696a3247df310bd61b96)) |
| 16 | +* do not add fields to LocalMessage object ([c34e365](https://github.com/GetStream/stream-chat-js/commit/c34e365b06d748e1e843b9817a7a4d87c432004d)) |
| 17 | +* do not check for the first argument in commands middleware onChange handler ([9d136d0](https://github.com/GetStream/stream-chat-js/commit/9d136d006007716d9b58b0916d87b37d616c1d14)) |
| 18 | +* do not perform link preview enrichment if server-side enrichment is disabled ([4ff6380](https://github.com/GetStream/stream-chat-js/commit/4ff638045e434cc091a1200ecff4749b428d6936)) |
| 19 | +* do not pick any other occurances of / in the text for commands ([04d927f](https://github.com/GetStream/stream-chat-js/commit/04d927f3ceb4c6a3ad00dce11f9832000cb65bc9)) |
| 20 | +* get link preview data correctly on composition ([448b6ac](https://github.com/GetStream/stream-chat-js/commit/448b6ac5a0cecc324689a520aa98dccb4279cd16)) |
| 21 | +* handle error thrown in withCancellation pipeline of TextComposerComposerMiddlewareExecutor ([a3529c1](https://github.com/GetStream/stream-chat-js/commit/a3529c16e35d3a00a16b59223453b35e2dc6306a)) |
| 22 | +* ignore own_capability errors for pending tasks ([d614dcb](https://github.com/GetStream/stream-chat-js/commit/d614dcb598999cfd17ffad2aae09a8bf80180b68)) |
| 23 | +* improve apis ([4f898b0](https://github.com/GetStream/stream-chat-js/commit/4f898b04bfea03b040fac003df0d9836f5451659)) |
| 24 | +* initiate composer text from the default value with cursor at the end ([d4a095d](https://github.com/GetStream/stream-chat-js/commit/d4a095d0d5e7e8c282fc2edefef9d2097467604e)) |
| 25 | +* local message error type ([9bc7935](https://github.com/GetStream/stream-chat-js/commit/9bc79358e9d0a23e0ff7e2a056711289e5bdf917)) |
| 26 | +* make command search case-insensitive and reset custom command search source before use ([f523b90](https://github.com/GetStream/stream-chat-js/commit/f523b9024ea5a7532d104c43c7d08e8ca82a655b)) |
| 27 | +* make getStateBeforeFirstQuery for MentionsSearchSource public and middleware options partial ([785c6f0](https://github.com/GetStream/stream-chat-js/commit/785c6f0440370903e4af55635dba176c025fd5ad)) |
| 28 | +* make sure command trigger is reflected only if at the beginning of text ([4a5a958](https://github.com/GetStream/stream-chat-js/commit/4a5a958f8a0d0bd0600ef7122fb6c4852f8ce68a)) |
| 29 | +* make updated message payload to carry undefined mentioned users if empty ([10b5bbc](https://github.com/GetStream/stream-chat-js/commit/10b5bbcc4357e5c7638115e8b452f72ed28a7918)) |
| 30 | +* merge conflicts ([ccef0b1](https://github.com/GetStream/stream-chat-js/commit/ccef0b11ef579fd19884d42ba1dda7e931ab9e07)) |
| 31 | +* more merge conflicts ([f41cd88](https://github.com/GetStream/stream-chat-js/commit/f41cd88c7fd6ca1444286e308c923315945d79a6)) |
| 32 | +* move db apis to main class ([c4bb2ab](https://github.com/GetStream/stream-chat-js/commit/c4bb2ab4ec6812d787f53a20dcc535651ebfda06)) |
| 33 | +* pending tasks type ([deec2f1](https://github.com/GetStream/stream-chat-js/commit/deec2f181047c85d9c02aeca862ee08df154dec2)) |
| 34 | +* prevent empty poll options and questions in composition ([#1541](https://github.com/GetStream/stream-chat-js/issues/1541)) ([b2e2702](https://github.com/GetStream/stream-chat-js/commit/b2e2702af1b3a838bd0f7cde2e932bae1f56d2ee)) |
| 35 | +* queries with channel guard and member count ([ad8197b](https://github.com/GetStream/stream-chat-js/commit/ad8197b806469417520da57a25c83bd9f178075c)) |
| 36 | +* race condition with query scheduling ([34e6af2](https://github.com/GetStream/stream-chat-js/commit/34e6af294700fecdfd05b9146f59723ac784d6a7)) |
| 37 | +* remove storing draft in channel state ([b382912](https://github.com/GetStream/stream-chat-js/commit/b382912f9c07c8a98f6f19a639bf8793a2ba7a9a)) |
| 38 | +* remove tokenization payload from user suggestion on select ([d0e091c](https://github.com/GetStream/stream-chat-js/commit/d0e091c28c3ad982217a5ff9a4786c7a94b0bbf6)) |
| 39 | +* return selection from insertItemWithTrigger instead of selections ([e9881ec](https://github.com/GetStream/stream-chat-js/commit/e9881ec1d8172db86615da3e286563d6a9cfc2a2)) |
| 40 | +* schedule only on successful sync ([e9428d5](https://github.com/GetStream/stream-chat-js/commit/e9428d5980156fa916b16c0109b5108350023beb)) |
| 41 | +* set MessageComposer editedMessage on each initState call ([69d78dd](https://github.com/GetStream/stream-chat-js/commit/69d78dd0d47573051b3f441f0c6db3c090ae68a7)) |
| 42 | +* solve weird merging issue ([abd4049](https://github.com/GetStream/stream-chat-js/commit/abd404951246b6ead1d68ec52843747093e87b72)) |
| 43 | +* types ([78baf2e](https://github.com/GetStream/stream-chat-js/commit/78baf2e4b31ed06f9170854b3b8582b3839168eb)) |
| 44 | +* update last sync timestamp when closing connection ([ba4cf09](https://github.com/GetStream/stream-chat-js/commit/ba4cf09701fa9b37bdd65eb38e7f5448bdd56c15)) |
| 45 | +* update pending tasks ([ee06fc3](https://github.com/GetStream/stream-chat-js/commit/ee06fc3234bc4f0df2c49ab7aa0716bcf9e4210d)) |
| 46 | +* update the composer text with default value if config changes ([cb37c34](https://github.com/GetStream/stream-chat-js/commit/cb37c34ee27cbcc0f2405026fe16ecaf6b22bd1c)) |
| 47 | +* use event member properly ([007ad1d](https://github.com/GetStream/stream-chat-js/commit/007ad1dd80552183609cf6263932b5d5068eee22)) |
| 48 | + |
| 49 | +### Features |
| 50 | + |
| 51 | +* [MOD-513]: Soft/Hard Delete Messages on Ban ([#1538](https://github.com/GetStream/stream-chat-js/issues/1538)) ([5fff918](https://github.com/GetStream/stream-chat-js/commit/5fff918f3682ed80b49f34d14397cedcc1b59bc0)) |
| 52 | +* add api for fetching app settings ([6446c4f](https://github.com/GetStream/stream-chat-js/commit/6446c4f8bbfaa9f935d1a10e3bbd1e0bf968fd9c)) |
| 53 | +* add channel manager retry policy ([dc01d4d](https://github.com/GetStream/stream-chat-js/commit/dc01d4d3284cc32a04fd810a2fb3e615503ce5c9)) |
| 54 | +* add channel.truncated handling ([c566c51](https://github.com/GetStream/stream-chat-js/commit/c566c510c977f57c9bb5ebecff660763e90112c4)) |
| 55 | +* add configurations to AttachmentManager, LinkPreviewsManager, TextComposer ([9e1ef60](https://github.com/GetStream/stream-chat-js/commit/9e1ef600d0cddeaece197300df5cc59dcf59748d)) |
| 56 | +* add custom data message composer ([0c2d04d](https://github.com/GetStream/stream-chat-js/commit/0c2d04d967fcbdf60c709fe7835578e739f7b888)) |
| 57 | +* add default middleware in TextComposerMiddlewareExecutor constructor ([92e585a](https://github.com/GetStream/stream-chat-js/commit/92e585a3a128cdf2f37534b607923d724515ec6e)) |
| 58 | +* add delete channel api ([5ea33e4](https://github.com/GetStream/stream-chat-js/commit/5ea33e46bc2e1c9fb71466421ec096a49c6e4c55)) |
| 59 | +* add draft management to message composer ([a7c98f6](https://github.com/GetStream/stream-chat-js/commit/a7c98f67daaf2967f0d0004fe85f549f65055f2a)) |
| 60 | +* add field origin to Notification ([b860910](https://github.com/GetStream/stream-chat-js/commit/b86091078d35fd006522b7b1807452b69f50c7c4)) |
| 61 | +* add MentionsSearchSource with support for discarding obsolete middleware results ([699ff25](https://github.com/GetStream/stream-chat-js/commit/699ff25777569f64ba058ebecfe6de1bf4b229bd)) |
| 62 | +* add message composition with middleware to MessageComposer ([12d809a](https://github.com/GetStream/stream-chat-js/commit/12d809ab12501dacd8a5a7f698d0a79cc3d523f3)) |
| 63 | +* add message removal functionality ([676661e](https://github.com/GetStream/stream-chat-js/commit/676661ed3c98658e72d27ce50372020fab8377df)) |
| 64 | +* add MessageComposer ([99dfcfc](https://github.com/GetStream/stream-chat-js/commit/99dfcfc864cf2245d071a74c16a748f51be86b2f)) |
| 65 | +* add NotificationManager.ts ([82afe07](https://github.com/GetStream/stream-chat-js/commit/82afe073ae7db625ad7307b5a8556a3f43b1ee58)) |
| 66 | +* add NotificationManager.ts ([79cd303](https://github.com/GetStream/stream-chat-js/commit/79cd30368f991ff2d66e1a70d5f384d3248e4da1)) |
| 67 | +* add offline api for querying reactions ([4deedf8](https://github.com/GetStream/stream-chat-js/commit/4deedf8b5be33c61e5922c40b9990aa6ed91586f)) |
| 68 | +* add optimistic reaction removal capability to llc ([6c1cb2a](https://github.com/GetStream/stream-chat-js/commit/6c1cb2a3510355ca652bb49b8f13b9864a010131)) |
| 69 | +* add pending tasks for sending messages ([640a15d](https://github.com/GetStream/stream-chat-js/commit/640a15d244a55be3c46459f38aac0319c4a01f6e)) |
| 70 | +* add poll db updates to llc ([109fcd2](https://github.com/GetStream/stream-chat-js/commit/109fcd2cf35b2b3b33ab53d04849e0799557c329)) |
| 71 | +* add PollComposer ([880a7af](https://github.com/GetStream/stream-chat-js/commit/880a7af09db1139fe404cf852d322822a4ab4c4d)) |
| 72 | +* add removing reactions and fix sending reactions ([e509932](https://github.com/GetStream/stream-chat-js/commit/e5099325253eec804881d41cc97fc536e7fadb0b)) |
| 73 | +* add sending reactions support ([4c7812e](https://github.com/GetStream/stream-chat-js/commit/4c7812ea215c2a299f4ecfd797b9ae2f8a5994a2)) |
| 74 | +* add sync manager implementation ([ab43f54](https://github.com/GetStream/stream-chat-js/commit/ab43f541954904c4efcf797a4fac8b162e3f342d)) |
| 75 | +* add text length validation on change and centralize configuration ([cd89372](https://github.com/GetStream/stream-chat-js/commit/cd893722a5a9507b48245cebcd9f5f0bd43311cd)) |
| 76 | +* add toJSON to ErrorFromResponse class ([#1540](https://github.com/GetStream/stream-chat-js/issues/1540)) ([8f6948f](https://github.com/GetStream/stream-chat-js/commit/8f6948f124babcdb3b4d71d09788ea50ca5ff32d)), closes [GetStream/chat#8211](https://github.com/GetStream/chat/issues/8211) |
| 77 | +* alias the FormatMessageResponse to LocalMessage ([047cc33](https://github.com/GetStream/stream-chat-js/commit/047cc338b5566c6f60c1edc222c5bab650982bb7)) |
| 78 | +* allow for custom non-message data storage in MessageComposer ([d87590e](https://github.com/GetStream/stream-chat-js/commit/d87590e481a98d94f3631ee3268e1d94354ace99)) |
| 79 | +* enable send reaction state updates from llc ([ea47d2b](https://github.com/GetStream/stream-chat-js/commit/ea47d2bfe3e8a8cdeea9bf44a197d348d5c8162e)) |
| 80 | +* error handling of db query writes ([62512a2](https://github.com/GetStream/stream-chat-js/commit/62512a267ea518799e4f461adac111221e9b69cc)) |
| 81 | +* export middleware module from stream-chat ([768e697](https://github.com/GetStream/stream-chat-js/commit/768e6975ddb5a7016f13bdec3171f08f71d51828)) |
| 82 | +* init textComposer selection from the provided text ([fac5313](https://github.com/GetStream/stream-chat-js/commit/fac531340bdf97ab1565f97ce12decd5412b8a43)) |
| 83 | +* initial pass at queryChannels and related endpoints ([262520c](https://github.com/GetStream/stream-chat-js/commit/262520cec5b014ad4fa9860be9bb416f9bb2e3e6)) |
| 84 | +* initiate composer text from the default value ([6ed186f](https://github.com/GetStream/stream-chat-js/commit/6ed186ff3ad32eb8f9075a69b3e779a69f4f6eba)) |
| 85 | +* introduce LocalMessage type and use it in the state ([6619304](https://github.com/GetStream/stream-chat-js/commit/66193045f050b81ac9dee61d914fc7f6adc4f623)) |
| 86 | +* keep draft id in the message composer state ([f50a9d0](https://github.com/GetStream/stream-chat-js/commit/f50a9d0e4a8535fd45e8a96bfccec9f55cfbd62b)) |
| 87 | +* **link-previews:** strengthen URL hostname validation ([3d99bf9](https://github.com/GetStream/stream-chat-js/commit/3d99bf9d042afba3c634b70ff3f1ebf1cbf88482)) |
| 88 | +* make AttachmentManager upload RN files ([9eff316](https://github.com/GetStream/stream-chat-js/commit/9eff31605e07d2c0c70b560a9cf23ddcbb4587c6)) |
| 89 | +* message deletes ([6048498](https://github.com/GetStream/stream-chat-js/commit/6048498222a0929a5523f0216f494a02f9bfd964)) |
| 90 | +* move event handling to single abstraction ([08ce31c](https://github.com/GetStream/stream-chat-js/commit/08ce31c409155a861ddf1b4057494f14e73373a1)) |
| 91 | +* move member and message updated events to llc ([d356bbf](https://github.com/GetStream/stream-chat-js/commit/d356bbf1e5df4bdcd0a976c0dc0c4b416d0a779b)) |
| 92 | +* move more channel events to llc ([0a54969](https://github.com/GetStream/stream-chat-js/commit/0a54969f318a56666e95389a1eb733ead6b947a7)) |
| 93 | +* move notification events to the llc too ([6e3f18a](https://github.com/GetStream/stream-chat-js/commit/6e3f18a2771ea61566edb6940069f287f0bc1ee6)) |
| 94 | +* new message handling and query guards ([0b5ed66](https://github.com/GetStream/stream-chat-js/commit/0b5ed669e06fcfadf08ef381bc9ddc3a3e4986c2)) |
| 95 | +* read and unread events ([588791b](https://github.com/GetStream/stream-chat-js/commit/588791bcd97021e81a8e2c0d727a68e3b2d5567d)) |
| 96 | +* set custom upload fn, uploads in progress count toward available slots, preserve original attachment id ([11ecf89](https://github.com/GetStream/stream-chat-js/commit/11ecf899782dc738eee42e592322218fd2f39eef)) |
| 97 | +* support message drafts for channels ([e3a1cb8](https://github.com/GetStream/stream-chat-js/commit/e3a1cb8c7655bdc8ce2e6749a2cf3fcf2c0acd46)) |
| 98 | +* sync api and synced reactins and ws events ([02de287](https://github.com/GetStream/stream-chat-js/commit/02de287c95c1e43d320de0483b0dc898a30c63f9)) |
| 99 | + |
| 100 | +### Refactors |
| 101 | + |
| 102 | +* add ability to signal middleware result to be discarded ([7e227e7](https://github.com/GetStream/stream-chat-js/commit/7e227e78892706698b2a605013684fbcddf7b4cb)) |
| 103 | +* add MessageDraftComposerMiddlewareValue type ([d658d8b](https://github.com/GetStream/stream-chat-js/commit/d658d8b8bd6a43e66c0d2ddbdc14e2e6316424a3)) |
| 104 | +* add MessageDraftComposerMiddlewareValue type ([74237d5](https://github.com/GetStream/stream-chat-js/commit/74237d58b7ae56a3cbebb66e07e1926b0abcc2ea)) |
| 105 | +* add NotificationManager state getters and use single object arguments ([054aa7b](https://github.com/GetStream/stream-chat-js/commit/054aa7b79c67971241109b0c96831a908a646824)) |
| 106 | +* adjust updatedMessage method to server-side use and LocalMessage revert ([e76c8b9](https://github.com/GetStream/stream-chat-js/commit/e76c8b92a055714e10a091a516a3322baad2c8a6)) |
| 107 | +* change Notification.origin to type NotificationOrigin ([fd3d758](https://github.com/GetStream/stream-chat-js/commit/fd3d758351d4f999b0dc131612da1d9577f1c927)) |
| 108 | +* keep central configuration in MessageComposer ([26659f3](https://github.com/GetStream/stream-chat-js/commit/26659f30cde46386006f3742d9e310b24c871a6b)) |
| 109 | +* list all the local members at once with local mentions search ([ee51690](https://github.com/GetStream/stream-chat-js/commit/ee516903a9c615b8bd65c5f4097d760d891828b7)) |
| 110 | +* make LocalMessage.error optional ([f2a9b86](https://github.com/GetStream/stream-chat-js/commit/f2a9b86229a0afbeb03f7228bf99ffbffcb0a3f7)) |
| 111 | +* provide default messageComposer config param ([cdf85bc](https://github.com/GetStream/stream-chat-js/commit/cdf85bcd3c19a1e7631a97a41d3b2fcb651faf64)) |
| 112 | +* remove console.log ([f95c5f4](https://github.com/GetStream/stream-chat-js/commit/f95c5f4689a828eee65f7050a7047784dfc853c0)) |
| 113 | +* remove LinkPreview class in favor of plain objects ([cfb6799](https://github.com/GetStream/stream-chat-js/commit/cfb67997bea50ed94369246dd70d6293870c35a6)) |
| 114 | +* remove MessageComposer setter on Thread and Channel ([e872576](https://github.com/GetStream/stream-chat-js/commit/e8725766e091f9d2c1c8da013469d235d9a2d6a5)) |
| 115 | +* rename isRNFile to isFileReference ([abe6fac](https://github.com/GetStream/stream-chat-js/commit/abe6facef5bef65cfc14e07801b32a01171ce543)) |
| 116 | +* rename message composer middleware ids ([5dd0f20](https://github.com/GetStream/stream-chat-js/commit/5dd0f201ac8d439a3412085aea282c5db88ee591)) |
| 117 | +* rename MessageComposer middlewareManager to compositionMiddlewareManager ([63bcebd](https://github.com/GetStream/stream-chat-js/commit/63bcebd3ac9aabb7a5098bc52c2fb13fbbbe7f6d)) |
| 118 | +* rename RNFile to FileReference ([70708da](https://github.com/GetStream/stream-chat-js/commit/70708dab4cc8d753cee2d426a1f6f4a49e7cfdc2)) |
| 119 | +* rename tokenizedDisplayName attribute ([3f85887](https://github.com/GetStream/stream-chat-js/commit/3f858877b686ac1da3b771777d389a82aff90dac)) |
| 120 | + |
1 | 121 | ## [9.1.1](https://github.com/GetStream/stream-chat-js/compare/v9.1.0...v9.1.1) (2025-05-12)
|
2 | 122 |
|
3 | 123 | ### Bug Fixes
|
|
0 commit comments