chore: upgrade i18next 26, prettier 3, fontsource-variable, domhandler 6, lint-staged 17

- i18next 23->26 + react-i18next 15->17
- prettier 2->3, reformat all files
- replace @fontsource/inter with @fontsource-variable/inter 5, update import path
- domhandler 5->6 (aligns with transitive deps)
- lint-staged 16->17
This commit is contained in:
Lotus Bot
2026-05-21 23:30:50 -04:00
parent b3666fa876
commit 61a1f008d0
363 changed files with 1443 additions and 1419 deletions
+4 -4
View File
@@ -28,13 +28,13 @@ export type AutoDiscoveryInfo = Record<string, unknown> & {
{
livekit_service_url: string;
type: 'livekit';
}
},
];
};
export const autoDiscovery = async (
request: typeof fetch,
server: string
server: string,
): Promise<[AutoDiscoveryError, undefined] | [undefined, AutoDiscoveryInfo]> => {
const host = /^https?:\/\//.test(server) ? trimTrailingSlash(server) : `https://${server}`;
const autoDiscoveryUrl = `${host}/.well-known/matrix/client`;
@@ -99,7 +99,7 @@ export const autoDiscovery = async (
content['m.homeserver'].base_url = trimTrailingSlash(baseUrl);
if (content['m.identity_server']) {
content['m.identity_server'].base_url = trimTrailingSlash(
content['m.identity_server'].base_url
content['m.identity_server'].base_url,
);
}
@@ -112,7 +112,7 @@ export type SpecVersions = {
};
export const specVersions = async (
request: typeof fetch,
baseUrl: string
baseUrl: string,
): Promise<SpecVersions> => {
const res = await request(`${trimTrailingSlash(baseUrl)}/_matrix/client/versions`);