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 +17 -9
- package/dist/browser.es.js +313 -234
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +313 -234
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +313 -234
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +313 -234
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/channel_state.d.ts +7 -4
- package/dist/types/channel_state.d.ts.map +1 -1
- package/dist/types/client.d.ts +30 -4
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/events.d.ts +1 -0
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/types.d.ts +29 -10
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/channel.ts +23 -5
- package/src/channel_state.ts +10 -1
- package/src/client.ts +27 -2
- package/src/events.ts +1 -0
- package/src/types.ts +31 -10
- package/src/utils.ts +5 -1
- package/CHANGELOG.md +0 -844
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# Stream Chat JS
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/stream-chat)
|
|
4
|
-
[](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 = '
|
|
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
|
-
##
|
|
148
|
+
## Contributing
|
|
150
149
|
|
|
151
|
-
|
|
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
|
-
|
|
154
|
-
npm version patch|minor|major
|
|
155
|
-
```
|
|
152
|
+
### Commit message convention
|
|
156
153
|
|
|
157
|
-
|
|
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
|
-
|
|
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
|
|