# Upgrade from v5

## Breaking changes

### stream-chat-js@9

stream-chat-angular@6 requires a minimum version of stream-chat-js@9.

stream-chat-js@9 no longer have generic parameters to define typings for custom data stored on Stream entities (such as channel, message, user etc.). You can now provide this infromation using declaration merging.

Who is affected by this change?

- Integrators who read custom properties defined by the SDK (such as `channel.name` or `channel.image`)
- Integrators who created custom generics for custom properties
- Integrators who use custom properties without generics (the new system will cause type errors)

To see how you need to update your code please see the [custom types guide](/chat/docs/sdk/angular/v6/concepts/custom-types/)

Please also checkout the [upgrade guide for stream-chat-js](/chat/docs/javascript/upgrade-stream-chat-to-v9/).

### GalleryAttachmentContext

The input context of `customTemplatesService.galleryAttachmentTemplate$` is changed from `{attachment: Attachment}` to `{attachment: GalleryAttachment}`.

---

This page was last updated at 2025-11-25T16:21:23.487Z.

For the most recent version of this documentation, visit [https://getstream.io/chat/docs/sdk/angular/v6/basics/upgrade-v5/](https://getstream.io/chat/docs/sdk/angular/v6/basics/upgrade-v5/).