stream-chat 5.1.0 → 5.3.0

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/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Stream Chat JS
2
2
 
3
3
  [![NPM](https://img.shields.io/npm/v/stream-chat.svg)](https://www.npmjs.com/package/stream-chat)
4
- [![Actions Status](https://github.com/GetStream/stream-chat-js/workflows/build/badge.svg)](https://github.com/GetStream/stream-chat-js/actions)
5
4
 
6
5
  stream-chat-js is the official JavaScript client for Stream Chat, a service for building chat applications.
7
6
 
@@ -56,7 +55,7 @@ type AdminMessage = { priorityLevel: number };
56
55
  type ChatAttachment = { originalURL?: string };
57
56
  type CustomReaction = { size?: number };
58
57
  type ChatEvent = { quitChannel?: boolean };
59
- type CustomCommands = 'imgur';
58
+ type CustomCommands = 'giphy';
60
59
 
61
60
  // Instantiate a new client (server side)
62
61
  // you can also use `new StreamChat<T,T,...>()`
@@ -146,17 +145,26 @@ client.connectUser({ id: 'testId', nickname: 'testUser', country: 'NL' }, 'TestT
146
145
  - [Logging](docs/logging.md)
147
146
  - [User Token](docs/userToken.md)
148
147
 
149
- ## Publishing a new version
148
+ ## Contributing
150
149
 
151
- Note that you need 2FA enabled on NPM, publishing with Yarn gives error, use NPM directly for this:
150
+ We welcome code changes that improve this library or fix a problem, please make sure to follow all best practices and add tests if applicable before submitting a Pull Request on Github. We are very happy to merge your code in the official repository. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our license file for more details.
152
151
 
153
- ```bash
154
- npm version patch|minor|major
155
- ```
152
+ ### Commit message convention
156
153
 
157
- ## Contributing
154
+ Since we're autogenerating our [CHANGELOG](./CHANGELOG.md), we need to follow a specific commit message convention.
155
+ You can read about conventional commits [here](https://www.conventionalcommits.org/). Here's how a usual commit message looks like for a new feature: `feat: allow provided config object to extend other configs`. A bugfix: `fix: prevent racing of requests`.
158
156
 
159
- We welcome code changes that improve this library or fix a problem, please make sure to follow all best practices and add tests if applicable before submitting a Pull Request on Github. We are very happy to merge your code in the official repository. Make sure to sign our [Contributor License Agreement (CLA)](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) first. See our license file for more details.
157
+ ## Release (for Stream developers)
158
+
159
+ Releasing this package involves two GitHub Action steps:
160
+
161
+ - Kick off a job called `initiate_release` ([link](https://github.com/GetStream/stream-chat-js/actions/workflows/initiate_release.yml)).
162
+
163
+ The job creates a pull request with the changelog. Check if it looks good.
164
+
165
+ - Merge the pull request.
166
+
167
+ Once the PR is merged, it automatically kicks off another job which will create the tag and created a GitHub release.
160
168
 
161
169
  ## We are hiring
162
170