Skip to content

Commit 89bf72a

Browse files
authored
Merge pull request #1492 from GetStream/develop
v8.1
2 parents 2033017 + 0a812b4 commit 89bf72a

File tree

117 files changed

+6260
-2325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+6260
-2325
lines changed

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
E2E_APP_KEY='my-stream-api-key'
2+
E2E_APP_SECRET='my-stream-api-secret'
3+
E2E_TEST_USER_1='test-user-1'
4+
E2E_TEST_USER_1_TOKEN='test-user-1-jwt'
5+
E2E_TEST_USER_2='test-user-2'
6+
E2E_TEST_USER_2_TOKEN='test-user-2-jwt'
7+
E2E_JUMP_TO_MESSAGE_CHANNEL='jump-to-message'
8+
E2E_ADD_MESSAGE_CHANNEL='add-message'

.github/workflows/ci.yml

Lines changed: 61 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,85 @@
1-
name: test
1+
name: Test
22

33
on: [push]
44

55
jobs:
6+
tsc:
7+
runs-on: ubuntu-latest
8+
name: Typescript
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: 💾 Cache Dependencies
13+
uses: actions/cache@v2
14+
with:
15+
path: ./node_modules
16+
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
17+
18+
- name: 🔨 Install Dependencies & Build
19+
run: yarn install --frozen-lockfile --ignore-engines
20+
21+
- name: 🧪 tsc
22+
run: yarn types
23+
24+
e2e:
25+
runs-on: ubuntu-latest
26+
name: End-to-end tests
27+
steps:
28+
- uses: actions/checkout@v2
29+
30+
- name: 💾 Cache Dependencies
31+
uses: actions/cache@v2
32+
with:
33+
path: ./node_modules
34+
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
35+
36+
- name: 🔨 Install Dependencies & Build
37+
run: yarn install --frozen-lockfile --ignore-engines
38+
39+
- name: ⚗️ End-to-end tests
40+
run: |
41+
npx playwright install
42+
npx playwright install-deps
43+
yarn e2e-fixtures
44+
# running with --browser=all causes failures
45+
yarn e2e --browser=chromium
46+
yarn e2e --browser=webkit
47+
yarn e2e --browser=firefox
48+
env:
49+
E2E_JUMP_TO_MESSAGE_CHANNEL: jump-to-message
50+
E2E_ADD_MESSAGE_CHANNEL: add-message
51+
E2E_TEST_USER_1: test-user-1
52+
E2E_TEST_USER_2: test-user-2
53+
E2E_APP_KEY: ${{ secrets.E2E_APP_KEY }}
54+
E2E_APP_SECRET: ${{ secrets.E2E_APP_SECRET }}
55+
E2E_TEST_USER_1_TOKEN: ${{ secrets.E2E_TEST_USER_1_TOKEN }}
56+
E2E_TEST_USER_2_TOKEN: ${{ secrets.E2E_TEST_USER_2_TOKEN }}
57+
658
test:
759
runs-on: ubuntu-latest
860
strategy:
961
matrix:
10-
node: [10, 12, 14]
11-
typescript: ['no']
12-
include:
13-
- typescript: 'yes'
62+
node: [14, 16]
63+
name: Test with Node ${{ matrix.node }}
1464
steps:
1565
- uses: actions/checkout@v2
1666
- uses: actions/setup-node@v2-beta
1767
with:
1868
node-version: ${{ matrix.node }}
1969

20-
- name: Cache Dependencies
70+
- name: 💾 Cache Dependencies
2171
uses: actions/cache@v2
2272
with:
2373
path: ./node_modules
2474
key: ${{ runner.os }}-${{ matrix.node }}-modules-${{ hashFiles('**/yarn.lock') }}
2575

26-
- name: Install Dependencies & Build
76+
- name: 🔨 Install Dependencies & Build
2777
run: yarn install --frozen-lockfile --ignore-engines
2878

29-
- name: Lint and Test with ${{ matrix.node }}
79+
- name: 🧪 Lint and Test with ${{ matrix.node }}
3080
env:
3181
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
32-
TYPESCRIPT: ${{ matrix.typescript }}
3382
run: |
34-
if [ "$TYPESCRIPT" == "no" ]; then yarn lint; fi
35-
if [ "$TYPESCRIPT" == "no" ]; then yarn coverage; fi
36-
if [ "$TYPESCRIPT" == "no" ]; then yarn validate-translations; fi
37-
if [ "$TYPESCRIPT" == "yes" ]; then yarn types; fi
83+
yarn lint
84+
yarn coverage
85+
yarn validate-translations

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- master
6+
- main
67

78
jobs:
89
release:
@@ -23,4 +24,4 @@ jobs:
2324
env:
2425
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2526
GH_TOKEN: ${{ secrets.GH_TOKEN }}
26-
run: npx semantic-release
27+
run: yarn semantic-release --branches master main

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ coverage
2424
# nyc test coverage
2525
.nyc_output
2626

27-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
27+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
2828
.grunt
2929

3030
# Bower dependency directory (https://bower.io/)
@@ -60,6 +60,7 @@ typings/
6060

6161
# dotenv environment variables file
6262
.env
63+
/.env.local
6364
/.env.development
6465
/.env.production
6566

.ladle/components.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import type { GlobalProvider } from "@ladle/react";
2+
import React from 'react';
3+
4+
import "./styles.css";
5+
6+
7+
export const Provider: GlobalProvider = ({ children }) => (
8+
<>
9+
{children}
10+
</>
11+
);

.ladle/config.mjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// https://www.ladle.dev/docs/config
2+
export default {
3+
envPrefix: 'E2E_',
4+
}

.ladle/styles.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.ladle-main {
2+
padding: 0 1rem 3rem;
3+
}
4+
.str-chat {
5+
height: 700px !important;
6+
}
7+
8+
.str-chat-channel-list {
9+
overflow: auto;
10+
}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.0.0
1+
lts/*

.releaserc.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"plugins": [
3+
"@semantic-release/commit-analyzer",
4+
"@semantic-release/release-notes-generator",
5+
[
6+
"@semantic-release/changelog",
7+
{
8+
"changelogFile": "./CHANGELOG.md"
9+
}
10+
],
11+
"@semantic-release/github",
12+
"@semantic-release/npm"
13+
]
14+
}

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# Changelog
22

3+
## [8.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v7.0.0) 2022-03-17
4+
5+
### Bug Fixes
6+
7+
* improve performance of VirtualizedMessageList ([d2f28af](https://github.com/GetStream/stream-chat-react/commit/d2f28af0efc26a029062c36790975d00cdcfde1d))
8+
* maintain correct reference to values inside doMarkReadRequest ([#1442](https://github.com/GetStream/stream-chat-react/issues/1442)) ([30b79d6](https://github.com/GetStream/stream-chat-react/commit/30b79d6ff8270df1054dec644391eb313ada9dd7)), closes [#1324](https://github.com/GetStream/stream-chat-react/issues/1324)
9+
* make scrollToLatestMessageOnFocus smarter ([f37b193](https://github.com/GetStream/stream-chat-react/commit/f37b1937ab2f20b95496a79f2b243168a5b13061)), closes [#1415](https://github.com/GetStream/stream-chat-react/issues/1415)
10+
* move UploadsPreview outside textarea wrapper ([#1454](https://github.com/GetStream/stream-chat-react/issues/1454)) ([8ebbf29](https://github.com/GetStream/stream-chat-react/commit/8ebbf29fa6d3041d6357c2b373b8a71bac21186c))
11+
* name from StreamChatType to StreamChatGenerics ([653aef3](https://github.com/GetStream/stream-chat-react/commit/653aef3d27078fa9659bb39afea4a06398b882f8))
12+
* remove obsolete polyfill ([2b13594](https://github.com/GetStream/stream-chat-react/commit/2b13594c42d72e6b7de8ad1a0834579f73e8f949)), closes [#1375](https://github.com/GetStream/stream-chat-react/issues/1375)
13+
* remove translation warning ([3d951f2](https://github.com/GetStream/stream-chat-react/commit/3d951f27ad550c0efb861f4bcb4f611efaf795e1))
14+
15+
### Features
16+
17+
* onBlur prop for ChatAutoComplete ([c9897f4](https://github.com/GetStream/stream-chat-react/commit/c9897f422d0d04d606f149965b510bee749e0151)), closes [#1345](https://github.com/GetStream/stream-chat-react/issues/1345)
18+
* support choosing a giphy version ([0d97fc6](https://github.com/GetStream/stream-chat-react/commit/0d97fc62d4e5f166162e1d375689196305fad420))
19+
20+
### ⚠️ BREAKING CHANGES ⚠️
21+
22+
* All types now accept a single generic ([help article](https://getstream.io/chat/docs/sdk/react/customization/typescript_and_generics/))
23+
24+
325
## [7.0.0](https://github.com/GetStream/stream-chat-react/releases/tag/v7.0.0) 2022-02-10
426

527
### ⚠️ BREAKING CHANGES ⚠️

0 commit comments

Comments
 (0)