Skip to content

Commit 4de79ca

Browse files
committed
Merge branch 'develop' into florianduros/rip-out-legacy-crypto/migrate-getBackupVersion
# Conflicts: # test/test-utils/test-utils.ts
2 parents 4bfe8e2 + 08f41a4 commit 4de79ca

File tree

191 files changed

+3219
-2458
lines changed

Some content is hidden

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

191 files changed

+3219
-2458
lines changed

.eslintrc.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,6 @@ module.exports = {
117117
"!matrix-js-sdk/src/extensible_events_v1/PollResponseEvent",
118118
"!matrix-js-sdk/src/extensible_events_v1/PollEndEvent",
119119
"!matrix-js-sdk/src/extensible_events_v1/InvalidEventError",
120-
"!matrix-js-sdk/src/crypto",
121-
"!matrix-js-sdk/src/crypto/keybackup",
122-
"!matrix-js-sdk/src/crypto/deviceinfo",
123-
"!matrix-js-sdk/src/crypto/dehydration",
124120
"!matrix-js-sdk/src/oidc",
125121
"!matrix-js-sdk/src/oidc/discovery",
126122
"!matrix-js-sdk/src/oidc/authorize",

.github/workflows/dockerhub.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ jobs:
2121
fetch-depth: 0 # needed for docker-package to be able to calculate the version
2222

2323
- name: Install Cosign
24-
uses: sigstore/cosign-installer@4959ce089c160fddf62f7b42464195ba1a56d382 # v3
24+
uses: sigstore/cosign-installer@dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da # v3
2525

2626
- name: Set up QEMU
2727
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
2828

2929
- name: Set up Docker Buildx
30-
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3
30+
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3
3131
with:
3232
install: true
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
report:
1616
if: github.event.workflow_run.conclusion != 'cancelled'
1717
name: Report results
18-
runs-on: ubuntu-22.04
18+
runs-on: ubuntu-24.04
1919
environment: Netlify
2020
permissions:
2121
statuses: write

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ env:
3636
jobs:
3737
build:
3838
name: "Build Element-Web"
39-
runs-on: ubuntu-22.04
39+
runs-on: ubuntu-24.04
4040
if: inputs.skip != true
4141
steps:
4242
- name: Checkout code
@@ -69,7 +69,6 @@ jobs:
6969
VERSION: "${{ steps.layered_build.outputs.VERSION }}"
7070
run: |
7171
yarn build
72-
echo $VERSION > webapp/version
7372
7473
- name: Upload Artifact
7574
uses: actions/upload-artifact@v4
@@ -144,7 +143,7 @@ jobs:
144143
name: end-to-end-tests
145144
needs: playwright
146145
if: always()
147-
runs-on: ubuntu-22.04
146+
runs-on: ubuntu-24.04
148147
steps:
149148
- uses: actions/checkout@v4
150149
if: inputs.skip != true

.github/workflows/netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
deploy:
1111
if: github.event.workflow_run.conclusion != 'cancelled' && github.event.workflow_run.event == 'pull_request'
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
environment: Netlify
1414
steps:
1515
- name: 📝 Create Deployment

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
- cron: "0 6 * * *" # Every day at 6am UTC
66
jobs:
77
update:
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v4
1111

.github/workflows/pull_request_base_branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
jobs:
66
check_base_branch:
77
name: Check PR base branch
8-
runs-on: ubuntu-22.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/github-script@v7
1111
with:

.github/workflows/static_analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
5151
rethemendex_lint:
5252
name: "Rethemendex Check"
53-
runs-on: ubuntu-22.04
53+
runs-on: ubuntu-24.04
5454
steps:
5555
- uses: actions/checkout@v4
5656

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ env:
2929
jobs:
3030
jest:
3131
name: Jest
32-
runs-on: ubuntu-22.04
32+
runs-on: ubuntu-24.04
3333
strategy:
3434
fail-fast: false
3535
matrix:
@@ -93,7 +93,7 @@ jobs:
9393
name: jest-tests
9494
needs: jest
9595
if: always()
96-
runs-on: ubuntu-22.04
96+
runs-on: ubuntu-24.04
9797
steps:
9898
- if: needs.jest.result != 'skipped' && needs.jest.result != 'success'
9999
run: exit 1

.stylelintrc.js

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
extends: ["stylelint-config-standard"],
33
customSyntax: "postcss-scss",
4-
plugins: ["stylelint-scss"],
4+
plugins: ["stylelint-scss", "stylelint-value-no-unknown-custom-properties"],
55
rules: {
66
"comment-empty-line-before": null,
77
"declaration-empty-line-before": null,
@@ -46,5 +46,33 @@ module.exports = {
4646
"number-max-precision": null,
4747
"no-invalid-double-slash-comments": true,
4848
"media-feature-range-notation": null,
49+
"csstools/value-no-unknown-custom-properties": [
50+
true,
51+
{
52+
importFrom: [
53+
{ from: "res/css/_common.pcss", type: "css" },
54+
{ from: "res/themes/light/css/_light.pcss", type: "css" },
55+
// Right now our styles share vars all over the place, this is not ideal but acceptable for now
56+
{ from: "res/css/views/rooms/_EventTile.pcss", type: "css" },
57+
{ from: "res/css/views/rooms/_IRCLayout.pcss", type: "css" },
58+
{ from: "res/css/views/rooms/_EventBubbleTile.pcss", type: "css" },
59+
{ from: "res/css/views/rooms/_ReadReceiptGroup.pcss", type: "css" },
60+
{ from: "res/css/views/rooms/_EditMessageComposer.pcss", type: "css" },
61+
{ from: "res/css/views/right_panel/_BaseCard.pcss", type: "css" },
62+
{ from: "res/css/views/messages/_MessageTimestamp.pcss", type: "css" },
63+
{ from: "res/css/views/messages/_EventTileBubble.pcss", type: "css" },
64+
{ from: "res/css/views/messages/_MessageActionBar.pcss", type: "css" },
65+
{ from: "res/css/views/voip/LegacyCallView/_LegacyCallViewButtons.pcss", type: "css" },
66+
{ from: "res/css/views/elements/_ToggleSwitch.pcss", type: "css" },
67+
{ from: "res/css/views/settings/tabs/_SettingsTab.pcss", type: "css" },
68+
{ from: "res/css/structures/_RoomView.pcss", type: "css" },
69+
// Compound vars
70+
"node_modules/@vector-im/compound-design-tokens/assets/web/css/cpd-common-base.css",
71+
"node_modules/@vector-im/compound-design-tokens/assets/web/css/cpd-common-semantic.css",
72+
"node_modules/@vector-im/compound-design-tokens/assets/web/css/cpd-theme-light-base-mq.css",
73+
"node_modules/@vector-im/compound-design-tokens/assets/web/css/cpd-theme-light-semantic-mq.css",
74+
],
75+
},
76+
],
4977
},
5078
};

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Changes in [1.11.85](https://github.com/element-hq/element-web/releases/tag/v1.11.85) (2024-11-12)
2+
==================================================================================================
3+
# Security
4+
- Fixes for [CVE-2024-51750](https://www.cve.org/CVERecord?id=CVE-2024-51750) / [GHSA-w36j-v56h-q9pc](https://github.com/element-hq/element-web/security/advisories/GHSA-w36j-v56h-q9pc)
5+
- Fixes for [CVE-2024-51749](https://www.cve.org/CVERecord?id=CVE-2024-51749) / [GHSA-5486-384g-mcx2](https://github.com/element-hq/element-web/security/advisories/GHSA-5486-384g-mcx2)
6+
- Update JS SDK with the fixes for [CVE-2024-50336](https://www.cve.org/CVERecord?id=CVE-2024-50336) / [GHSA-xvg8-m4x3-w6xr](https://github.com/matrix-org/matrix-js-sdk/security/advisories/GHSA-xvg8-m4x3-w6xr)
7+
8+
19
Changes in [1.11.84](https://github.com/element-hq/element-web/releases/tag/v1.11.84) (2024-11-05)
210
==================================================================================================
311
## ✨ Features

jest.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const config: Config = {
3838
"recorderWorkletFactory": "<rootDir>/__mocks__/empty.js",
3939
"^fetch-mock$": "<rootDir>/node_modules/fetch-mock",
4040
},
41-
transformIgnorePatterns: ["/node_modules/(?!matrix-js-sdk).+$"],
41+
transformIgnorePatterns: ["/node_modules/(?!(mime|matrix-js-sdk)).+$"],
4242
collectCoverageFrom: [
4343
"<rootDir>/src/**/*.{js,ts,tsx}",
4444
// getSessionLock is piped into a different JS context via stringification, and the coverage functionality is

package.json

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "element-web",
3-
"version": "1.11.84",
3+
"version": "1.11.85",
44
"description": "A feature-rich client for Matrix.org",
55
"author": "New Vector Ltd.",
66
"repository": {
@@ -73,7 +73,7 @@
7373
"resolutions": {
7474
"oidc-client-ts": "3.1.0",
7575
"jwt-decode": "4.0.0",
76-
"caniuse-lite": "1.0.30001668",
76+
"caniuse-lite": "1.0.30001679",
7777
"wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0",
7878
"wrap-ansi": "npm:wrap-ansi@^7.0.0"
7979
},
@@ -85,14 +85,14 @@
8585
"@matrix-org/react-sdk-module-api": "^2.4.0",
8686
"@matrix-org/spec": "^1.7.0",
8787
"@sentry/browser": "^8.0.0",
88-
"@vector-im/compound-design-tokens": "^1.8.0",
89-
"@vector-im/compound-web": "^7.1.0",
88+
"@vector-im/compound-design-tokens": "^2.0.1",
89+
"@vector-im/compound-web": "^7.3.0",
9090
"@vector-im/matrix-wysiwyg": "2.37.13",
9191
"@zxcvbn-ts/core": "^3.0.4",
9292
"@zxcvbn-ts/language-common": "^3.0.4",
9393
"@zxcvbn-ts/language-en": "^3.0.2",
9494
"await-lock": "^2.1.0",
95-
"bloom-filters": "^3.0.2",
95+
"bloom-filters": "^3.0.3",
9696
"blurhash": "^2.0.3",
9797
"browserslist": "^4.23.2",
9898
"classnames": "^2.2.6",
@@ -119,19 +119,20 @@
119119
"linkify-string": "4.1.3",
120120
"linkifyjs": "4.1.3",
121121
"lodash": "^4.17.21",
122-
"maplibre-gl": "^2.0.0",
122+
"maplibre-gl": "^4.0.0",
123123
"matrix-encrypt-attachment": "^1.0.3",
124124
"matrix-events-sdk": "0.0.1",
125125
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop",
126126
"matrix-widget-api": "^1.10.0",
127127
"memoize-one": "^6.0.0",
128+
"mime": "^4.0.4",
128129
"oidc-client-ts": "^3.0.1",
129130
"opus-recorder": "^8.0.3",
130131
"pako": "^2.0.3",
131132
"png-chunks-extract": "^1.0.0",
132133
"posthog-js": "1.157.2",
133134
"qrcode": "1.5.4",
134-
"re-resizable": "6.9.17",
135+
"re-resizable": "6.10.1",
135136
"react": "^18.3.1",
136137
"react-beautiful-dnd": "^13.1.0",
137138
"react-blurhash": "^0.3.0",
@@ -203,7 +204,6 @@
203204
"@types/react-dom": "18.3.1",
204205
"@types/react-transition-group": "^4.4.0",
205206
"@types/sanitize-html": "2.13.0",
206-
"@types/seedrandom": "3.0.8",
207207
"@types/semver": "^7.5.8",
208208
"@types/tar-js": "^0.3.5",
209209
"@types/ua-parser-js": "^0.7.36",
@@ -264,7 +264,7 @@
264264
"postcss-import": "16.1.0",
265265
"postcss-loader": "8.1.1",
266266
"postcss-mixins": "^11.0.0",
267-
"postcss-nested": "^6.0.0",
267+
"postcss-nested": "^7.0.0",
268268
"postcss-preset-env": "^10.0.0",
269269
"postcss-scss": "^4.0.4",
270270
"postcss-simple-vars": "^7.0.1",
@@ -276,6 +276,7 @@
276276
"stylelint": "^16.1.0",
277277
"stylelint-config-standard": "^36.0.0",
278278
"stylelint-scss": "^6.0.0",
279+
"stylelint-value-no-unknown-custom-properties": "^6.0.1",
279280
"terser-webpack-plugin": "^5.3.9",
280281
"ts-node": "^10.9.1",
281282
"ts-prune": "^0.10.3",
@@ -286,6 +287,7 @@
286287
"webpack-bundle-analyzer": "^4.8.0",
287288
"webpack-cli": "^5.0.0",
288289
"webpack-dev-server": "^5.0.0",
290+
"webpack-version-file-plugin": "^0.5.0",
289291
"yaml": "^2.3.3"
290292
},
291293
"@casualbot/jest-sonar-reporter": {

playwright/e2e/threads/threads.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ test.describe("Threads", () => {
357357
await bot.joinRoom(roomId);
358358
await page.goto("/#/room/" + roomId);
359359

360-
// Exclude timestamp, read marker, and mapboxgl-map from snapshots
360+
// Exclude timestamp, read marker, and maplibregl-map from snapshots
361361
const css =
362-
".mx_MessageTimestamp, .mx_MessagePanel_myReadMarker, .mapboxgl-map { visibility: hidden !important; }";
362+
".mx_MessageTimestamp, .mx_MessagePanel_myReadMarker, .maplibregl-map { visibility: hidden !important; }";
363363

364364
let locator = page.locator(".mx_RoomView_body");
365365
// User sends message

0 commit comments

Comments
 (0)