Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 8580b13

Browse files
committed
Merge remote-tracking branch 'origin/develop' into staging
2 parents 2bf3335 + cf8b87f commit 8580b13

File tree

229 files changed

+6540
-3582
lines changed

Some content is hidden

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

229 files changed

+6540
-3582
lines changed

.eslintrc.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@ module.exports = {
7878
name: "matrix-react-sdk/",
7979
message: "Please use matrix-react-sdk/src/index instead",
8080
},
81+
{
82+
name: "emojibase-regex",
83+
message:
84+
"This regex doesn't actually test for emoji. See the docs at https://emojibase.dev/docs/regex/ and prefer our own EMOJI_REGEX from HtmlUtils.",
85+
},
8186
],
8287
patterns: [
8388
{
@@ -115,13 +120,9 @@ module.exports = {
115120
"!matrix-js-sdk/src/extensible_events_v1/InvalidEventError",
116121
"!matrix-js-sdk/src/crypto",
117122
"!matrix-js-sdk/src/crypto/aes",
118-
"!matrix-js-sdk/src/crypto/olmlib",
119-
"!matrix-js-sdk/src/crypto/crypto",
120123
"!matrix-js-sdk/src/crypto/keybackup",
121-
"!matrix-js-sdk/src/crypto/RoomList",
122124
"!matrix-js-sdk/src/crypto/deviceinfo",
123125
"!matrix-js-sdk/src/crypto/key_passphrase",
124-
"!matrix-js-sdk/src/crypto/CrossSigning",
125126
"!matrix-js-sdk/src/crypto/recoverykey",
126127
"!matrix-js-sdk/src/crypto/dehydration",
127128
"!matrix-js-sdk/src/oidc",
@@ -144,6 +145,11 @@ module.exports = {
144145
],
145146
message: "Please use matrix-js-sdk/src/matrix instead",
146147
},
148+
{
149+
group: ["emojibase-regex/emoji*"],
150+
message:
151+
"This regex doesn't actually test for emoji. See the docs at https://emojibase.dev/docs/regex/ and prefer our own EMOJI_REGEX from HtmlUtils.",
152+
},
147153
],
148154
},
149155
],

.github/workflows/end-to-end-tests.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
- uses: actions/setup-node@v4
5757
with:
5858
cache: "yarn"
59+
node-version: "lts/*"
5960

6061
- name: Fetch layered build
6162
id: layered_build
@@ -103,7 +104,7 @@ jobs:
103104
fail-fast: false
104105
matrix:
105106
# Run multiple instances in parallel to speed up the tests
106-
runner: [1, 2, 3, 4, 5, 6, 7, 8]
107+
runner: [1, 2, 3, 4, 5, 6]
107108
steps:
108109
- uses: actions/checkout@v4
109110
with:
@@ -121,6 +122,7 @@ jobs:
121122
with:
122123
cache: "yarn"
123124
cache-dependency-path: matrix-react-sdk/yarn.lock
125+
node-version: "lts/*"
124126

125127
- name: Install dependencies
126128
working-directory: matrix-react-sdk
@@ -145,10 +147,8 @@ jobs:
145147
run: yarn playwright install --with-deps
146148

147149
- name: Run Playwright tests
148-
uses: coactions/setup-xvfb@6b00cf1889f4e1d5a48635647013c0508128ee1a
149-
with:
150-
run: yarn playwright test --shard ${{ matrix.runner }}/${{ strategy.job-total }}
151-
working-directory: matrix-react-sdk
150+
run: yarn playwright test --shard ${{ matrix.runner }}/${{ strategy.job-total }}
151+
working-directory: matrix-react-sdk
152152

153153
- name: Upload blob report to GitHub Actions Artifacts
154154
if: always()
@@ -174,6 +174,7 @@ jobs:
174174
if: inputs.skip != true
175175
with:
176176
cache: "yarn"
177+
node-version: "lts/*"
177178

178179
- name: Install dependencies
179180
if: inputs.skip != true

.github/workflows/playwright-image-updates.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
update:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

1212
- name: Update matrixdotorg/synapse image
1313
run: |
@@ -20,7 +20,7 @@ jobs:
2020

2121
- name: Create Pull Request
2222
id: cpr
23-
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5
23+
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6
2424
with:
2525
token: ${{ secrets.ELEMENT_BOT_TOKEN }}
2626
branch: actions/playwright-image-updates

.github/workflows/pull_request_base_branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Check PR base branch
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/github-script@v3
10+
- uses: actions/github-script@v7
1111
with:
1212
script: |
1313
const baseBranch = context.payload.pull_request.base.ref;

.github/workflows/static_analysis.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
cache: "yarn"
28+
node-version: "lts/*"
2829

2930
- name: Install Deps
3031
run: "./scripts/ci/install-deps.sh"
@@ -83,6 +84,7 @@ jobs:
8384
- uses: actions/setup-node@v4
8485
with:
8586
cache: "yarn"
87+
node-version: "lts/*"
8688

8789
# Does not need branch matching as only analyses this layer
8890
- name: Install Deps
@@ -100,6 +102,7 @@ jobs:
100102
- uses: actions/setup-node@v4
101103
with:
102104
cache: "yarn"
105+
node-version: "lts/*"
103106

104107
# Does not need branch matching as only analyses this layer
105108
- name: Install Deps
@@ -117,6 +120,7 @@ jobs:
117120
- uses: actions/setup-node@v4
118121
with:
119122
cache: "yarn"
123+
node-version: "lts/*"
120124

121125
# Does not need branch matching as only analyses this layer
122126
- name: Install Deps
@@ -134,6 +138,7 @@ jobs:
134138
- uses: actions/setup-node@v4
135139
with:
136140
cache: "yarn"
141+
node-version: "lts/*"
137142

138143
- name: Install Deps
139144
run: "scripts/ci/layered.sh"

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
- name: Yarn cache
4545
uses: actions/setup-node@v4
4646
with:
47+
node-version: "lts/*"
4748
cache: "yarn"
4849

4950
- name: Install Deps
@@ -115,6 +116,7 @@ jobs:
115116
- uses: actions/setup-node@v4
116117
with:
117118
cache: "yarn"
119+
node-version: "lts/*"
118120

119121
- name: Run tests
120122
run: "./scripts/ci/app-tests.sh"

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const config: Config = {
2222
testEnvironment: "jsdom",
2323
testMatch: ["<rootDir>/test/**/*-test.[jt]s?(x)"],
2424
globalSetup: "<rootDir>/test/globalSetup.ts",
25-
setupFiles: ["jest-canvas-mock"],
25+
setupFiles: ["jest-canvas-mock", "web-streams-polyfill/polyfill"],
2626
setupFilesAfterEnv: ["<rootDir>/test/setupTests.ts"],
2727
moduleNameMapper: {
2828
"\\.(gif|png|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js",

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"test:playwright:open": "yarn test:playwright --ui",
5656
"test:playwright:screenshots": "yarn test:playwright:screenshots:build && yarn test:playwright:screenshots:run",
5757
"test:playwright:screenshots:build": "docker build playwright -t matrix-react-sdk-playwright",
58-
"test:playwright:screenshots:run": "docker run --rm --network host -v $(pwd)/../:/work/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/:/tmp/ -it matrix-react-sdk-playwright",
58+
"test:playwright:screenshots:run": "docker run --rm --network host -e BASE_URL -v $(pwd)/../:/work/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/:/tmp/ -it matrix-react-sdk-playwright",
5959
"coverage": "yarn test --coverage",
6060
"lint:workflows": "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) | xargs -I {} sh -c 'echo \"Linting {}\"; action-validator \"{}\"'"
6161
},
@@ -65,20 +65,20 @@
6565
"@types/seedrandom": "3.0.8",
6666
"oidc-client-ts": "3.0.1",
6767
"jwt-decode": "4.0.0",
68-
"@floating-ui/react": "0.26.11"
68+
"@floating-ui/react": "0.26.11",
69+
"@radix-ui/react-id": "1.1.0"
6970
},
7071
"dependencies": {
7172
"@babel/runtime": "^7.12.5",
7273
"@matrix-org/analytics-events": "^0.23.0",
7374
"@matrix-org/emojibase-bindings": "^1.1.2",
74-
"@matrix-org/matrix-wysiwyg": "2.37.3",
75-
"@matrix-org/olm": "3.2.15",
75+
"@matrix-org/matrix-wysiwyg": "2.37.4",
7676
"@matrix-org/react-sdk-module-api": "^2.4.0",
7777
"@matrix-org/spec": "^1.7.0",
7878
"@sentry/browser": "^8.0.0",
7979
"@testing-library/react-hooks": "^8.0.1",
8080
"@vector-im/compound-design-tokens": "^1.2.0",
81-
"@vector-im/compound-web": "^4.9.0",
81+
"@vector-im/compound-web": "^5.2.3",
8282
"@zxcvbn-ts/core": "^3.0.4",
8383
"@zxcvbn-ts/language-common": "^3.0.4",
8484
"@zxcvbn-ts/language-en": "^3.0.2",
@@ -96,7 +96,6 @@
9696
"filesize": "10.1.2",
9797
"github-markdown-css": "^5.5.1",
9898
"glob-to-regexp": "^0.4.1",
99-
"graphemer": "^1.4.0",
10099
"highlight.js": "^11.3.1",
101100
"html-entities": "^2.0.0",
102101
"is-ip": "^3.1.0",
@@ -119,8 +118,7 @@
119118
"opus-recorder": "^8.0.3",
120119
"pako": "^2.0.3",
121120
"png-chunks-extract": "^1.0.0",
122-
"posthog-js": "1.139.2",
123-
"proposal-temporal": "^0.9.0",
121+
"posthog-js": "1.141.3",
124122
"qrcode": "1.5.3",
125123
"re-resizable": "^6.9.0",
126124
"react": "17.0.2",
@@ -133,6 +131,7 @@
133131
"sanitize-filename": "^1.6.3",
134132
"sanitize-html": "2.13.0",
135133
"tar-js": "^0.3.0",
134+
"temporal-polyfill": "^0.2.5",
136135
"ua-parser-js": "^1.0.2",
137136
"uuid": "^10.0.0",
138137
"what-input": "^5.2.10"
@@ -188,7 +187,7 @@
188187
"@types/seedrandom": "3.0.8",
189188
"@types/tar-js": "^0.3.2",
190189
"@types/ua-parser-js": "^0.7.36",
191-
"@types/uuid": "^9.0.2",
190+
"@types/uuid": "^10.0.0",
192191
"@typescript-eslint/eslint-plugin": "^7.0.0",
193192
"@typescript-eslint/parser": "^7.0.0",
194193
"axe-core": "4.9.1",
@@ -204,7 +203,7 @@
204203
"eslint-plugin-matrix-org": "1.2.1",
205204
"eslint-plugin-react": "^7.28.0",
206205
"eslint-plugin-react-hooks": "^4.3.0",
207-
"eslint-plugin-unicorn": "^53.0.0",
206+
"eslint-plugin-unicorn": "^54.0.0",
208207
"express": "^4.18.2",
209208
"fake-indexeddb": "^6.0.0",
210209
"fetch-mock-jest": "^1.5.1",
@@ -227,7 +226,8 @@
227226
"stylelint-config-standard": "^36.0.0",
228227
"stylelint-scss": "^6.0.0",
229228
"ts-node": "^10.9.1",
230-
"typescript": "5.4.5"
229+
"typescript": "5.5.2",
230+
"web-streams-polyfill": "^4.0.0"
231231
},
232232
"peerDependencies": {
233233
"postcss": "^8.4.19",

playwright/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/playwright:v1.44.1-jammy
1+
FROM mcr.microsoft.com/playwright:v1.45.0-jammy
22

33
WORKDIR /work/matrix-react-sdk
44
VOLUME ["/work/element-web/node_modules"]

playwright/e2e/audio-player/audio-player.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ test.describe("Audio player", () => {
160160

161161
// Enable high contrast manually
162162
const settings = await app.settings.openUserSettings("Appearance");
163-
await settings.getByTestId("mx_ThemeChoicePanel").getByText("Use high contrast").click();
163+
await settings.getByRole("radio", { name: "High contrast" }).click();
164164

165165
await app.closeDialog();
166166

0 commit comments

Comments
 (0)