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

Update all non-major dependencies #9766

Merged
merged 4 commits into from
Mar 6, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
path: webapp

- name: Run Cypress tests
uses: cypress-io/github-action@v5.0.2
uses: cypress-io/github-action@v5.1.0
with:
# The built-in Electron runner seems to grind to a halt trying
# to run the tests, so use chrome.
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"dependencies": {
"@babel/runtime": "^7.12.5",
"@matrix-org/analytics-events": "^0.4.0",
"@matrix-org/analytics-events": "^0.5.0",
"@matrix-org/matrix-wysiwyg": "^1.1.1",
"@matrix-org/react-sdk-module-api": "^0.0.4",
"@sentry/browser": "^7.0.0",
Expand All @@ -79,7 +79,7 @@
"emojibase-regex": "6.0.1",
"escape-html": "^1.0.3",
"file-saver": "^2.0.5",
"filesize": "10.0.5",
"filesize": "10.0.6",
"flux": "4.0.3",
"focus-visible": "^5.2.0",
"gfm.css": "^1.1.2",
Expand All @@ -104,18 +104,18 @@
"pako": "^2.0.3",
"parse5": "^6.0.1",
"png-chunks-extract": "^1.0.0",
"posthog-js": "1.36.0",
"posthog-js": "1.50.3",
"qrcode": "1.5.1",
"re-resizable": "^6.9.0",
"react": "17.0.2",
"react-beautiful-dnd": "^13.1.0",
"react-blurhash": "^0.2.0",
"react-blurhash": "^0.3.0",
"react-dom": "17.0.2",
"react-focus-lock": "^2.5.1",
"react-transition-group": "^4.4.1",
"rfc4648": "^1.4.0",
"sanitize-filename": "^1.6.3",
"sanitize-html": "2.8.0",
"sanitize-html": "2.10.0",
"tar-js": "^0.3.0",
"ua-parser-js": "^1.0.2",
"url": "^0.11.0",
Expand Down Expand Up @@ -177,22 +177,22 @@
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.6.0",
"allchange": "^1.1.0",
"axe-core": "4.4.3",
"axe-core": "4.6.3",
"babel-jest": "^29.0.0",
"blob-polyfill": "^7.0.0",
"chokidar": "^3.5.1",
"cypress": "^12.0.0",
"cypress-axe": "^1.0.0",
"cypress-multi-reporters": "^1.6.1",
"cypress-real-events": "^1.7.1",
"eslint": "8.28.0",
"eslint": "8.35.0",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-deprecate": "^0.7.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-matrix-org": "1.0.0",
"eslint-plugin-matrix-org": "1.1.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-unicorn": "^45.0.0",
Expand All @@ -209,14 +209,14 @@
"mocha-junit-reporter": "^2.2.0",
"node-fetch": "2",
"postcss-scss": "^4.0.4",
"prettier": "2.8.0",
"prettier": "2.8.4",
"raw-loader": "^4.0.2",
"rimraf": "^4.0.0",
"stylelint": "^15.0.0",
"stylelint-config-prettier": "^9.0.4",
"stylelint-config-standard": "^30.0.0",
"stylelint-scss": "^4.2.0",
"typescript": "4.9.3",
"typescript": "4.9.5",
"walk": "^2.3.14"
},
"jest": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/views/dialogs/ChangelogDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface IProps {
onFinished: (success: boolean) => void;
}

type State = Partial<Record<typeof REPOS[number], null | string | Commit[]>>;
type State = Partial<Record<(typeof REPOS)[number], null | string | Commit[]>>;

interface Commit {
sha: string;
Expand All @@ -46,7 +46,7 @@ export default class ChangelogDialog extends React.Component<IProps, State> {
this.state = {};
}

private async fetchChanges(repo: typeof REPOS[number], oldVersion: string, newVersion: string): Promise<void> {
private async fetchChanges(repo: (typeof REPOS)[number], oldVersion: string, newVersion: string): Promise<void> {
const url = `https://riot.im/github/repos/${repo}/compare/${oldVersion}...${newVersion}`;

try {
Expand Down
6 changes: 3 additions & 3 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const HIGH_CONTRAST_THEMES: Record<string, string> = {
light: "light-high-contrast",
};

interface IFontFaces extends Omit<Record<typeof allowedFontFaceProps[number], string>, "src"> {
interface IFontFaces extends Omit<Record<(typeof allowedFontFaceProps)[number], string>, "src"> {
src: {
format: string;
url: string;
Expand Down Expand Up @@ -145,9 +145,9 @@ function generateCustomFontFaceCSS(faces: IFontFaces[]): string {
return "";
})
.join(", ");
const props = Object.keys(face).filter((prop: typeof allowedFontFaceProps[number]) =>
const props = Object.keys(face).filter((prop: (typeof allowedFontFaceProps)[number]) =>
allowedFontFaceProps.includes(prop),
) as Array<typeof allowedFontFaceProps[number]>;
) as Array<(typeof allowedFontFaceProps)[number]>;
const body = props
.map((prop) => {
let value: string;
Expand Down
Loading