Skip to content

Commit 2dffadc

Browse files
authored
Merge branch 'develop' into dbkr/stateafter
2 parents f3d0fc4 + 48fd330 commit 2dffadc

File tree

337 files changed

+4399
-3407
lines changed

Some content is hidden

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

337 files changed

+4399
-3407
lines changed

.eslintrc-module_system.js

Lines changed: 0 additions & 60 deletions
This file was deleted.

.eslintrc.js

Lines changed: 54 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",
@@ -270,6 +266,60 @@ module.exports = {
270266
"react-hooks/rules-of-hooks": ["off"],
271267
},
272268
},
269+
{
270+
files: ["module_system/**/*.{ts,tsx}"],
271+
parserOptions: {
272+
project: ["./tsconfig.module_system.json"],
273+
},
274+
extends: ["plugin:matrix-org/typescript", "plugin:matrix-org/react"],
275+
// NOTE: These rules are frozen and new rules should not be added here.
276+
// New changes belong in https://github.com/matrix-org/eslint-plugin-matrix-org/
277+
rules: {
278+
// Things we do that break the ideal style
279+
"prefer-promise-reject-errors": "off",
280+
"quotes": "off",
281+
282+
// We disable this while we're transitioning
283+
"@typescript-eslint/no-explicit-any": "off",
284+
// We're okay with assertion errors when we ask for them
285+
"@typescript-eslint/no-non-null-assertion": "off",
286+
287+
// Ban matrix-js-sdk/src imports in favour of matrix-js-sdk/src/matrix imports to prevent unleashing hell.
288+
"no-restricted-imports": [
289+
"error",
290+
{
291+
paths: [
292+
{
293+
name: "matrix-js-sdk",
294+
message: "Please use matrix-js-sdk/src/matrix instead",
295+
},
296+
{
297+
name: "matrix-js-sdk/",
298+
message: "Please use matrix-js-sdk/src/matrix instead",
299+
},
300+
{
301+
name: "matrix-js-sdk/src",
302+
message: "Please use matrix-js-sdk/src/matrix instead",
303+
},
304+
{
305+
name: "matrix-js-sdk/src/",
306+
message: "Please use matrix-js-sdk/src/matrix instead",
307+
},
308+
{
309+
name: "matrix-js-sdk/src/index",
310+
message: "Please use matrix-js-sdk/src/matrix instead",
311+
},
312+
],
313+
patterns: [
314+
{
315+
group: ["matrix-js-sdk/lib", "matrix-js-sdk/lib/", "matrix-js-sdk/lib/**"],
316+
message: "Please use matrix-js-sdk/src/* instead",
317+
},
318+
],
319+
},
320+
],
321+
},
322+
},
273323
],
274324
settings: {
275325
react: {

.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: 7 additions & 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

@@ -123,6 +123,12 @@ jobs:
123123
cache: "yarn"
124124
node-version: "lts/*"
125125

126+
- name: Install Deps
127+
run: "yarn install --frozen-lockfile"
128+
129+
- name: Run linter
130+
run: "yarn run lint:knip"
131+
126132
- name: Install Deps
127133
run: "scripts/layered.sh"
128134

.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

0 commit comments

Comments
 (0)