diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b6924528f6..84bb3d263d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,6 +37,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Workaround for yarn install timeouts, especially on Windows - run: yarn config set network-timeout 300000 diff --git a/.github/workflows/build_develop.yml b/.github/workflows/build_develop.yml index 96b96c8398..2407d2e6f1 100644 --- a/.github/workflows/build_develop.yml +++ b/.github/workflows/build_develop.yml @@ -26,6 +26,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index e495e87eaa..2aefb39a32 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -60,7 +60,7 @@ jobs: mdbook-version: "0.4.10" - name: Install mdbook extensions - run: cargo install mdbook-combiner@0.1.15 mdbook-mermaid + run: cargo install mdbook-combiner mdbook-mermaid - name: Prepare docs run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a9b38d9a4e..3bb1418986 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,6 @@ jobs: GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} with: final: ${{ inputs.mode == 'final' }} - include-changes: matrix-react-sdk gpg-fingerprint: ${{ vars.GPG_FINGERPRINT }} asset-path: dist/*.tar.gz expected-asset-count: 3 @@ -31,11 +30,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Notify element-desktop repo that element-web release has completed to re-trigger release-drafter - uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3 + uses: benc-uk/workflow-dispatch@25b02cc069be46d637e8fe2f1e8484008e9e9609 # v1 with: - token: ${{ secrets.ELEMENT_BOT_TOKEN }} - repository: element-hq/element-desktop - event-type: upstream-release-notify + workflow: release-drafter.yml + repo: element-hq/element-desktop + ref: staging + # Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or CLI + token: "${{ secrets.ELEMENT_BOT_TOKEN }}" check: name: Post release checks diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 2caa342b6b..ed0148f36c 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -21,6 +21,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" @@ -43,6 +44,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Does not need branch matching as only analyses this layer - name: Install Deps @@ -60,6 +62,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Needs branch matching as it inherits .stylelintrc.js from matrix-react-sdk - name: Install Dependencies @@ -77,6 +80,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" # Does not need branch matching as only analyses this layer - name: Install Deps @@ -94,6 +98,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Deps run: "scripts/layered.sh" diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b654b2a3a2..01965af419 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -23,6 +23,7 @@ jobs: uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Dependencies run: "./scripts/layered.sh" diff --git a/.github/workflows/update-jitsi.yml b/.github/workflows/update-jitsi.yml index 383ed0b1c8..cf25e602e5 100644 --- a/.github/workflows/update-jitsi.yml +++ b/.github/workflows/update-jitsi.yml @@ -13,6 +13,7 @@ jobs: - uses: actions/setup-node@v4 with: cache: "yarn" + node-version: "lts/*" - name: Install Deps run: "yarn install --frozen-lockfile" diff --git a/src/vector/index.html b/src/vector/index.html index f5213701cf..37a1d294bd 100644 --- a/src/vector/index.html +++ b/src/vector/index.html @@ -81,31 +81,6 @@ - - - - - - -
diff --git a/src/vector/index.ts b/src/vector/index.ts index 0990a9be1d..374212352c 100644 --- a/src/vector/index.ts +++ b/src/vector/index.ts @@ -56,8 +56,8 @@ function checkBrowserFeatures(): boolean { return false; } - // Custom checks atop Modernizr because it doesn't have ES2018/ES2019 checks - // in it for some features we depend on. + // Custom checks atop Modernizr because it doesn't have checks in it for + // some features we depend on. // Modernizr requires rules to be lowercase with no punctuation. // ES2018: http://262.ecma-international.org/9.0/#sec-promise.prototype.finally window.Modernizr.addTest("promiseprototypefinally", () => typeof window.Promise?.prototype?.finally === "function"); @@ -70,6 +70,11 @@ function checkBrowserFeatures(): boolean { ); // ES2019: http://262.ecma-international.org/10.0/#sec-object.fromentries window.Modernizr.addTest("objectfromentries", () => typeof window.Object?.fromEntries === "function"); + // ES2024: https://tc39.es/ecma262/2024/#sec-get-regexp.prototype.unicodesets + window.Modernizr.addTest( + "regexpunicodesets", + () => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype, + ); const featureList = Object.keys(window.Modernizr) as Array;