chore: bump a few dependencies (#1835)

<!-- Please read
https://github.com/SableClient/Sable/blob/dev/CONTRIBUTING.md before
submitting your pull request -->

### Description

<!-- Please include a summary of the change. Please also include
relevant motivation and context. List any dependencies that are required
for this change. -->

Bumps some hopefully low risk dependencies

#### Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] This change requires a documentation update

### Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings

### AI disclosure:

- [ ] Partially AI assisted (clarify which code was AI assisted and
briefly explain what it does).
- [ ] Fully AI generated (explain what all the generated code does in
moderate detail).
<!-- Write any explanation required here, but do not generate the
explanation using AI!! You must prove you understand what the code in
this PR does. -->
This commit is contained in:
7w1 authored and GitHub committed 2026-08-17 14:54:46 -05:00
commit 1a2cfdfd24
9 files changed
+1884 -1787

No files matched your search

+34 -34
View File
@@ -42,40 +42,40 @@
},
"dependencies": {
"@arborium/arborium": "^2.18.1",
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
"@atlaskit/pragmatic-drag-and-drop": "^2.0.2",
"@atlaskit/pragmatic-drag-and-drop-auto-scroll": "^3.0.0",
"@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.0.0",
"@choochmeque/tauri-plugin-notifications-api": "0.5.0-rc.11",
"@choochmeque/tauri-plugin-sharekit-api": "0.4.0-rc.5",
"@fontsource-variable/nunito": "5.2.7",
"@fontsource/space-mono": "5.2.9",
"@fontsource-variable/nunito": "5.3.0",
"@fontsource/space-mono": "5.3.0",
"@livekit/components-react": "2.9.23",
"@lottiefiles/dotlottie-react": "^0.12.0",
"@lottiefiles/dotlottie-web": "0.40.1",
"@noble/hashes": "^2.2.0",
"@lottiefiles/dotlottie-react": "^0.19.14",
"@lottiefiles/dotlottie-web": "0.79.1",
"@noble/hashes": "^2.3.0",
"@phosphor-icons/react": "^2.1.10",
"@sableclient/matrixrtc": "github:SableClient/matrix-rtc#519fe6b863cfac78700f4e2b1748649103bb8a8d",
"@sableclient/tauri-plugin-livekit-mobile": "github:SableClient/tauri-plugin-livekit-mobile#c6f0d02ab3da1174535bc1dc8e598a2e6873f977",
"@sableclient/twemoji-font": "^1.0.4",
"@sentry/react": "^10.63.0",
"@tanstack/react-query": "^5.101.2",
"@tanstack/react-query-devtools": "^5.101.2",
"@tanstack/react-virtual": "^3.14.5",
"@sentry/react": "^10.70.0",
"@tanstack/react-query": "^5.101.4",
"@tanstack/react-query-devtools": "^5.101.4",
"@tanstack/react-virtual": "^3.14.9",
"@tauri-apps/api": "2.11.1",
"@tauri-apps/plugin-clipboard-manager": "2.3.2",
"@tauri-apps/plugin-deep-link": "2.4.9",
"@tauri-apps/plugin-dialog": "2.7.1",
"@tauri-apps/plugin-dialog": "2.7.2",
"@tauri-apps/plugin-fs": "2.5.1",
"@tauri-apps/plugin-http": "2.5.9",
"@tauri-apps/plugin-opener": "2.5.4",
"@tauri-apps/plugin-os": "2.3.2",
"@tauri-apps/plugin-process": "~2.3.1",
"@tauri-apps/plugin-store": "^2.4.3",
"@tauri-apps/plugin-store": "^2.4.4",
"@tauri-apps/plugin-updater": "~2.10.1",
"@use-gesture/react": "10.3.1",
"@vanilla-extract/css": "^1.21.1",
"@vanilla-extract/css": "^1.21.2",
"@vanilla-extract/recipes": "^0.5.7",
"@vanilla-extract/vite-plugin": "^5.2.3",
"@vanilla-extract/vite-plugin": "^5.2.6",
"await-to-js": "^3.0.0",
"badwords-list": "2.0.1-4",
"blurhash": "^2.0.5",
@@ -84,31 +84,31 @@
"classnames": "^2.5.1",
"dayjs": "^1.11.21",
"domhandler": "^6.0.1",
"dompurify": "^3.4.11",
"dompurify": "^3.4.13",
"emojibase": "^17.0.0",
"emojibase-data": "^17.0.0",
"eventemitter3": "^5.0.4",
"file-saver": "^2.0.5",
"focus-trap-react": "^12.0.3",
"folds": "^2.7.1",
"html-dom-parser": "^8.0.0",
"html-react-parser": "^6.1.3",
"html-dom-parser": "^8.0.1",
"html-react-parser": "^6.1.5",
"i18next": "^25.10.10",
"i18next-browser-languagedetector": "^8.2.1",
"i18next-http-backend": "^2.7.3",
"immer": "^11.1.9",
"i18next-http-backend": "^3.0.5",
"immer": "^11.1.16",
"is-hotkey": "^0.2.0",
"jotai": "^2.20.1",
"jotai": "^2.20.2",
"katex": "^0.17.0",
"leaflet": "1.9.4",
"linkify-react": "^4.3.3",
"linkifyjs": "^4.3.3",
"livekit-client": "2.21.0",
"marked": "^18.0.5",
"marked": "^18.0.9",
"matrix-js-sdk": "42.0.0",
"matrix-widget-api": "^1.17.0",
"nanoid": "^6.0.0",
"pdfjs-dist": "^6.1.200",
"nanoid": "^6.0.1",
"pdfjs-dist": "^6.2.108",
"prosemirror-commands": "^1.7.2",
"prosemirror-history": "^1.5.0",
"prosemirror-keymap": "^1.2.3",
@@ -118,13 +118,13 @@
"react": "^18.3.1",
"react-aria": "^3.50.0",
"react-blurhash": "^0.3.0",
"react-colorful": "^5.7.0",
"react-colorful": "^5.8.0",
"react-dom": "^18.3.1",
"react-google-recaptcha": "^3.1.0",
"react-i18next": "^16.6.6",
"react-leaflet": "^4.2.1",
"react-range": "^1.10.0",
"react-router-dom": "^6.30.4",
"react-router-dom": "^7.18.2",
"tauri-plugin-android-fs-api": "28.4.0",
"ua-parser-js": "^2.0.10",
"virtua": "^0.50.1",
@@ -132,33 +132,33 @@
},
"devDependencies": {
"tauri-plugin-app-icon-api": "github:SableClient/tauri-plugin-app-icon#bab80ae17f6d018702e472c539d0f02eba480c21",
"@cloudflare/vite-plugin": "^1.42.4",
"@cloudflare/vite-plugin": "^1.51.1",
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@faker-js/faker": "^10.5.0",
"@playwright/test": "^1.61.1",
"@rollup/plugin-inject": "^5.0.5",
"@rollup/plugin-wasm": "^6.2.2",
"@sableclient/sable-call-embedded": "1.1.8",
"@sentry/vite-plugin": "^5.3.0",
"@sentry/vite-plugin": "^5.4.0",
"@tauri-apps/cli": "2.11.4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@testing-library/user-event": "^14.6.3",
"@types/chroma-js": "^3.1.2",
"@types/file-saver": "^2.0.7",
"@types/is-hotkey": "^0.1.10",
"@types/leaflet": "^1.9.21",
"@types/leaflet": "^1.9.22",
"@types/node": "24.13.2",
"@types/react": "^18.3.31",
"@types/react-dom": "^18.3.7",
"@types/react-google-recaptcha": "^2.1.9",
"@vitejs/plugin-react": "^5.2.0",
"@vitest/coverage-v8": "^4.1.9",
"@vitest/ui": "^4.1.9",
"@vitest/coverage-v8": "^4.1.10",
"@vitest/ui": "^4.1.10",
"buffer": "^6.0.3",
"cloudflared": "^0.7.1",
"jsdom": "^29.1.1",
"knip": "6.23.0",
"knip": "6.32.1",
"oxfmt": "^0.57.0",
"oxlint": "^1.72.0",
"oxlint-tsgolint": "^0.24.0",
@@ -170,8 +170,8 @@
"vite-plugin-static-copy": "^3.4.0",
"vite-plugin-svgr": "4.5.0",
"vite-plugin-top-level-await": "^1.6.0",
"vitest": "^4.1.9",
"wrangler": "^4.106.0"
"vitest": "^4.1.10",
"wrangler": "^4.120.0"
},
"devEngines": {
"runtime": {
+1788 -1726
View File
File diff suppressed because it is too large. Load diff
+7 -4
View File
@@ -18,15 +18,18 @@ minimumReleaseAgeExclude:
- '@sableclient/twemoji-font'
overrides:
brace-expansion: '>=1.1.12'
esbuild: '>=0.25.0'
brace-expansion: '>=5.0.9'
esbuild: '>=0.28.1'
flatted: '>=3.4.2'
jsdom>undici: '^7.28.0'
js-yaml: '>=4.3.1'
jsdom>undici: '^7.29.0'
lodash: '>=4.17.23'
minimatch: '>=10.2.3'
postcss: '>=8.5.23'
rollup: '>=4.59.0'
serialize-javascript: '>=7.0.3'
undici: '>=7.24.0'
undici: '>=7.29.0'
uuid: '>=11.1.1'
peerDependencyRules:
allowedVersions:
+16
View File
@@ -8,6 +8,22 @@ import { DecompressionStream as NodeDecompressionStream } from 'node:stream/web'
vi.stubGlobal('Blob', NodeBlob);
vi.stubGlobal('DecompressionStream', NodeDecompressionStream);
vi.stubGlobal(
'IntersectionObserver',
class {
constructor(private readonly callback: IntersectionObserverCallback) {}
observe(target: Element) {
this.callback(
[{ isIntersecting: true, target } as IntersectionObserverEntry],
this as unknown as IntersectionObserver
);
}
unobserve() {}
disconnect() {}
}
);
// file from https://github.com/LottieFiles/test-files/blob/main/data/shapes/rectangle.json
const lottieJson =
+1 -1
View File
@@ -29,7 +29,7 @@ type DotLottieInstance = Parameters<
const DotLottieReact = lazy(() =>
Promise.all([
import('@lottiefiles/dotlottie-react'),
import('@lottiefiles/dotlottie-web/dist/dotlottie-player.wasm?url'),
import('@lottiefiles/dotlottie-web/dotlottie-player.wasm?url'),
]).then(([module, wasm]) => {
module.setWasmUrl(wasm.default);
return { default: module.DotLottieReact };
+12 -4
View File
@@ -181,7 +181,9 @@ export function MobileNavDrawer({ nav, rail, bottomNav, children }: MobileNavDra
(path: string) => {
const viewport = viewportRef.current;
if (!viewport || width === 0) {
startTransition(() => navigate(path));
startTransition(() => {
void navigate(path);
});
return;
}
@@ -196,7 +198,9 @@ export function MobileNavDrawer({ nav, rail, bottomNav, children }: MobileNavDra
}
setPanelIntent(1);
});
startTransition(() => navigate(path));
startTransition(() => {
void navigate(path);
});
},
[navigate, settleToPanel, width]
);
@@ -256,7 +260,9 @@ export function MobileNavDrawer({ nav, rail, bottomNav, children }: MobileNavDra
if (section?.getRoomPath) {
const lastRoomId = lastRoom?.[section.key];
if (lastRoomId) {
startTransition(() => navigate(section.getRoomPath!(lastRoomId)));
startTransition(() => {
void navigate(section.getRoomPath!(lastRoomId));
});
return;
}
}
@@ -270,7 +276,9 @@ export function MobileNavDrawer({ nav, rail, bottomNav, children }: MobileNavDra
if (section.getRoomPath && matchedRoomId && isRoomRoute) {
setLastRoom((prev) => ({ ...prev, [section.key]: matchedRoomId }));
}
startTransition(() => navigate(section.listPath));
startTransition(() => {
void navigate(section.listPath);
});
},
[
contentOpen,
+3 -1
View File
@@ -403,7 +403,9 @@ export function RoomNavItem({
openMobileDrawerContent(linkPath);
} else {
// Render the room off the urgent path so the tap doesn't freeze the UI on mount.
startTransition(() => navigate(linkPath));
startTransition(() => {
void navigate(linkPath);
});
}
}
};
+15 -15
View File
@@ -104,46 +104,46 @@ export const getHomeJoinPath = (): string => HOME_JOIN_PATH;
export const getHomeSearchPath = (): string => HOME_SEARCH_PATH;
export const getHomeRoomPath = (roomIdOrAlias: string, eventId?: string): string => {
const params = {
roomIdOrAlias: encodeURIComponent(roomIdOrAlias),
eventId: eventId ? encodeURIComponent(eventId) : null,
roomIdOrAlias,
eventId: eventId ?? null,
};
return generatePath(HOME_ROOM_PATH, params);
};
export const getHomeForumPath = (roomIdOrAlias: string): string =>
generatePath(HOME_ROOM_FORUM_PATH, { roomIdOrAlias: encodeURIComponent(roomIdOrAlias) });
generatePath(HOME_ROOM_FORUM_PATH, { roomIdOrAlias });
export const getDirectPath = (): string => DIRECT_PATH;
export const getDirectCreatePath = (): string => DIRECT_CREATE_PATH;
export const getDirectRoomPath = (roomIdOrAlias: string, eventId?: string): string => {
const params = {
roomIdOrAlias: encodeURIComponent(roomIdOrAlias),
eventId: eventId ? encodeURIComponent(eventId) : null,
roomIdOrAlias,
eventId: eventId ?? null,
};
return generatePath(DIRECT_ROOM_PATH, params);
};
export const getDirectForumPath = (roomIdOrAlias: string): string =>
generatePath(DIRECT_ROOM_FORUM_PATH, { roomIdOrAlias: encodeURIComponent(roomIdOrAlias) });
generatePath(DIRECT_ROOM_FORUM_PATH, { roomIdOrAlias });
export const getSpacePath = (spaceIdOrAlias: string): string => {
const params = {
spaceIdOrAlias: encodeURIComponent(spaceIdOrAlias),
spaceIdOrAlias,
};
return generatePath(SPACE_PATH, params);
};
export const getSpaceLobbyPath = (spaceIdOrAlias: string): string => {
const params = {
spaceIdOrAlias: encodeURIComponent(spaceIdOrAlias),
spaceIdOrAlias,
};
return generatePath(SPACE_LOBBY_PATH, params);
};
export const getSpaceSearchPath = (spaceIdOrAlias: string): string => {
const params = {
spaceIdOrAlias: encodeURIComponent(spaceIdOrAlias),
spaceIdOrAlias,
};
return generatePath(SPACE_SEARCH_PATH, params);
};
@@ -153,24 +153,24 @@ export const getSpaceRoomPath = (
eventId?: string
): string => {
const params = {
spaceIdOrAlias: encodeURIComponent(spaceIdOrAlias),
roomIdOrAlias: encodeURIComponent(roomIdOrAlias),
eventId: eventId ? encodeURIComponent(eventId) : null,
spaceIdOrAlias,
roomIdOrAlias,
eventId: eventId ?? null,
};
return generatePath(SPACE_ROOM_PATH, params);
};
export const getSpaceForumPath = (spaceIdOrAlias: string, roomIdOrAlias: string): string =>
generatePath(SPACE_ROOM_FORUM_PATH, {
spaceIdOrAlias: encodeURIComponent(spaceIdOrAlias),
roomIdOrAlias: encodeURIComponent(roomIdOrAlias),
spaceIdOrAlias,
roomIdOrAlias,
});
export const getExplorePath = (): string => EXPLORE_PATH;
export const getExploreFeaturedPath = (): string => EXPLORE_FEATURED_PATH;
export const getExploreServerPath = (server: string): string => {
const params = {
server: encodeURIComponent(server),
server,
};
return generatePath(EXPLORE_SERVER_PATH, params);
};
+8 -2
View File
@@ -1,6 +1,9 @@
import { useCallback } from 'react';
import type * as PdfJsDist from 'pdfjs-dist';
import type { GetViewportParameters } from 'pdfjs-dist/types/src/display/api';
import type {
DocumentInitParameters,
GetViewportParameters,
} from 'pdfjs-dist/types/src/display/api';
import { useAsyncCallback } from '$hooks/useAsyncCallback';
import { trimTrailingSlash } from '$utils/common';
@@ -21,7 +24,10 @@ export const usePdfDocumentLoader = (pdfJS: typeof PdfJsDist | undefined, src: s
if (!pdfJS) {
throw new Error('PdfJS is not loaded');
}
const doc = await pdfJS.getDocument({ url: src }).promise;
const doc = await pdfJS.getDocument({
url: src,
enableScripting: false,
} as DocumentInitParameters & { enableScripting: false }).promise;
return doc;
}, [pdfJS, src])
);