Update all non-major dependencies (#11329)
* Update all non-major dependencies * Add isLocation to ComposerEvent analytics events * Remove cypress-each as it is incompatible with modern typescript * Roll back eslint-plugin-deprecate * Remove stale comment --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Andy Balaam <andy.balaam@matrix.org> Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>pull/28217/head
parent
d405160080
commit
5405c22db1
|
@ -149,9 +149,8 @@ describe("Cryptography", function () {
|
||||||
cy.stopHomeserver(this.homeserver);
|
cy.stopHomeserver(this.homeserver);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.each([{ isDeviceVerified: true }, { isDeviceVerified: false }])(
|
for (const isDeviceVerified of [true, false]) {
|
||||||
"setting up secure key backup should work %j",
|
it(`setting up secure key backup should work isDeviceVerified=${isDeviceVerified}`, () => {
|
||||||
({ isDeviceVerified }) => {
|
|
||||||
/**
|
/**
|
||||||
* Verify that the `m.cross_signing.${keyType}` key is available on the account data on the server
|
* Verify that the `m.cross_signing.${keyType}` key is available on the account data on the server
|
||||||
* @param keyType
|
* @param keyType
|
||||||
|
@ -251,8 +250,8 @@ describe("Cryptography", function () {
|
||||||
verifyKey("self_signing");
|
verifyKey("self_signing");
|
||||||
verifyKey("user_signing");
|
verifyKey("user_signing");
|
||||||
});
|
});
|
||||||
},
|
});
|
||||||
);
|
}
|
||||||
|
|
||||||
it("creating a DM should work, being e2e-encrypted / user verification", function (this: CryptoTestContext) {
|
it("creating a DM should work, being e2e-encrypted / user verification", function (this: CryptoTestContext) {
|
||||||
skipIfRustCrypto();
|
skipIfRustCrypto();
|
||||||
|
|
|
@ -16,7 +16,6 @@ limitations under the License.
|
||||||
|
|
||||||
/// <reference types="cypress" />
|
/// <reference types="cypress" />
|
||||||
|
|
||||||
import "cypress-each";
|
|
||||||
import EventEmitter from "events";
|
import EventEmitter from "events";
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/runtime": "^7.12.5",
|
"@babel/runtime": "^7.12.5",
|
||||||
"@matrix-org/analytics-events": "^0.5.0",
|
"@matrix-org/analytics-events": "^0.6.0",
|
||||||
"@matrix-org/matrix-wysiwyg": "^2.3.1",
|
"@matrix-org/matrix-wysiwyg": "^2.3.1",
|
||||||
"@matrix-org/react-sdk-module-api": "^1.0.0",
|
"@matrix-org/react-sdk-module-api": "^1.0.0",
|
||||||
"@sentry/browser": "^7.0.0",
|
"@sentry/browser": "^7.0.0",
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
"opus-recorder": "^8.0.3",
|
"opus-recorder": "^8.0.3",
|
||||||
"pako": "^2.0.3",
|
"pako": "^2.0.3",
|
||||||
"png-chunks-extract": "^1.0.0",
|
"png-chunks-extract": "^1.0.0",
|
||||||
"posthog-js": "1.63.3",
|
"posthog-js": "1.73.1",
|
||||||
"proposal-temporal": "^0.9.0",
|
"proposal-temporal": "^0.9.0",
|
||||||
"qrcode": "1.5.3",
|
"qrcode": "1.5.3",
|
||||||
"re-resizable": "^6.9.0",
|
"re-resizable": "^6.9.0",
|
||||||
|
@ -184,11 +184,10 @@
|
||||||
"chokidar": "^3.5.1",
|
"chokidar": "^3.5.1",
|
||||||
"cypress": "^12.0.0",
|
"cypress": "^12.0.0",
|
||||||
"cypress-axe": "^1.0.0",
|
"cypress-axe": "^1.0.0",
|
||||||
"cypress-each": "^1.13.3",
|
|
||||||
"cypress-multi-reporters": "^1.6.1",
|
"cypress-multi-reporters": "^1.6.1",
|
||||||
"cypress-real-events": "^1.7.1",
|
"cypress-real-events": "^1.7.1",
|
||||||
"cypress-terminal-report": "^5.3.2",
|
"cypress-terminal-report": "^5.3.2",
|
||||||
"eslint": "8.43.0",
|
"eslint": "8.45.0",
|
||||||
"eslint-config-google": "^0.14.0",
|
"eslint-config-google": "^0.14.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-deprecate": "^0.7.0",
|
"eslint-plugin-deprecate": "^0.7.0",
|
||||||
|
@ -219,7 +218,7 @@
|
||||||
"stylelint-config-standard": "^34.0.0",
|
"stylelint-config-standard": "^34.0.0",
|
||||||
"stylelint-scss": "^5.0.0",
|
"stylelint-scss": "^5.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"typescript": "5.0.4",
|
"typescript": "5.1.6",
|
||||||
"walk": "^2.3.14"
|
"walk": "^2.3.14"
|
||||||
},
|
},
|
||||||
"@casualbot/jest-sonar-reporter": {
|
"@casualbot/jest-sonar-reporter": {
|
||||||
|
|
|
@ -308,6 +308,7 @@ class EditMessageComposer extends React.Component<IEditMessageComposerProps, ISt
|
||||||
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
|
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
|
||||||
eventName: "Composer",
|
eventName: "Composer",
|
||||||
isEditing: true,
|
isEditing: true,
|
||||||
|
isLocation: false,
|
||||||
inThread: !!editedEvent?.getThread(),
|
inThread: !!editedEvent?.getThread(),
|
||||||
isReply: !!editedEvent.replyEventId,
|
isReply: !!editedEvent.replyEventId,
|
||||||
});
|
});
|
||||||
|
|
|
@ -447,6 +447,7 @@ export class SendMessageComposer extends React.Component<ISendMessageComposerPro
|
||||||
const posthogEvent: ComposerEvent = {
|
const posthogEvent: ComposerEvent = {
|
||||||
eventName: "Composer",
|
eventName: "Composer",
|
||||||
isEditing: false,
|
isEditing: false,
|
||||||
|
isLocation: false,
|
||||||
isReply: !!this.props.replyToEvent,
|
isReply: !!this.props.replyToEvent,
|
||||||
inThread: this.props.relation?.rel_type === THREAD_RELATION_TYPE.name,
|
inThread: this.props.relation?.rel_type === THREAD_RELATION_TYPE.name,
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,6 +64,7 @@ export async function sendMessage(
|
||||||
const posthogEvent: ComposerEvent = {
|
const posthogEvent: ComposerEvent = {
|
||||||
eventName: "Composer",
|
eventName: "Composer",
|
||||||
isEditing: false,
|
isEditing: false,
|
||||||
|
isLocation: false,
|
||||||
isReply: Boolean(replyToEvent),
|
isReply: Boolean(replyToEvent),
|
||||||
// TODO thread
|
// TODO thread
|
||||||
inThread: relation?.rel_type === THREAD_RELATION_TYPE.name,
|
inThread: relation?.rel_type === THREAD_RELATION_TYPE.name,
|
||||||
|
@ -199,6 +200,7 @@ export async function editMessage(
|
||||||
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
|
PosthogAnalytics.instance.trackEvent<ComposerEvent>({
|
||||||
eventName: "Composer",
|
eventName: "Composer",
|
||||||
isEditing: true,
|
isEditing: true,
|
||||||
|
isLocation: false,
|
||||||
inThread: Boolean(editedEvent?.getThread()),
|
inThread: Boolean(editedEvent?.getThread()),
|
||||||
isReply: Boolean(editedEvent.replyEventId),
|
isReply: Boolean(editedEvent.replyEventId),
|
||||||
});
|
});
|
||||||
|
|
|
@ -15,7 +15,6 @@ limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
// eslint-disable-next-line deprecate/import
|
|
||||||
import { render, screen, waitFor } from "@testing-library/react";
|
import { render, screen, waitFor } from "@testing-library/react";
|
||||||
import userEvent from "@testing-library/user-event";
|
import userEvent from "@testing-library/user-event";
|
||||||
import { jest } from "@jest/globals";
|
import { jest } from "@jest/globals";
|
||||||
|
|
Loading…
Reference in New Issue