chore: dependency updates and minor refactors

- Bump `@tanstack/react-query` and related packages to 5.95.0
- Add `@orpc/json-schema`, `@orpc/openapi`, `@orpc/server`, `@orpc/zod` to catalog and use catalog refs in `apps/server`
- Move `ORPCError` throws for backup not-found/invalid into `@sofa/core/backup` so the server procedure can simply `await deleteBackup()` without re-wrapping errors
- Add `@orpc/server` dep to `packages/core` to support the above
- Add `expo-updates` to native deps; switch `requireNativeModule` import to `expo` in `WidgetImagesModule`
- Pin native `react`/`react-dom` to catalog to avoid duplicate copies
- Add `@lingui/core` to web and `react` to i18n package deps
This commit is contained in:
2026-03-22 14:11:45 -04:00
parent 2c7068ced3
commit 6be586bd53
10 changed files with 77 additions and 185 deletions
@@ -1,3 +1,3 @@
import { requireNativeModule } from "expo-modules-core";
import { requireNativeModule } from "expo";
export default requireNativeModule("WidgetImages");
+5 -4
View File
@@ -36,10 +36,10 @@
"@sofa/api": "workspace:*",
"@sofa/i18n": "workspace:*",
"@tabler/icons-react-native": "3.40.0",
"@tanstack/query-async-storage-persister": "5.94.5",
"@tanstack/query-async-storage-persister": "5.95.0",
"@tanstack/react-form": "1.28.5",
"@tanstack/react-query": "catalog:",
"@tanstack/react-query-persist-client": "5.94.5",
"@tanstack/react-query-persist-client": "5.95.0",
"better-auth": "catalog:",
"burnt": "0.13.0",
"expo": "55.0.8",
@@ -64,11 +64,12 @@
"expo-status-bar": "55.0.4",
"expo-system-ui": "55.0.10",
"expo-tracking-transparency": "55.0.9",
"expo-updates": "55.0.15",
"expo-web-browser": "55.0.10",
"expo-widgets": "55.0.7",
"posthog-react-native": "4.37.5",
"react": "19.2.0",
"react-dom": "19.2.0",
"react": "catalog:",
"react-dom": "catalog:",
"react-native": "0.83.2",
"react-native-gesture-handler": "2.30.0",
"react-native-ios-context-menu": "3.2.0",
+4 -4
View File
@@ -13,10 +13,10 @@
},
"dependencies": {
"@orpc/contract": "catalog:",
"@orpc/json-schema": "1.13.9",
"@orpc/openapi": "1.13.9",
"@orpc/server": "1.13.9",
"@orpc/zod": "1.13.9",
"@orpc/json-schema": "catalog:",
"@orpc/openapi": "catalog:",
"@orpc/server": "catalog:",
"@orpc/zod": "catalog:",
"@sofa/api": "workspace:*",
"@sofa/auth": "workspace:*",
"@sofa/config": "workspace:*",
+1 -16
View File
@@ -36,22 +36,7 @@ export const backupsCreate = os.admin.backups.create.use(admin).handler(async ()
});
export const backupsDelete = os.admin.backups.delete.use(admin).handler(async ({ input }) => {
try {
await deleteBackup(input.filename);
} catch (err) {
if (err instanceof ORPCError) throw err;
const msg = err instanceof Error ? err.message : String(err);
if (msg.includes("not found")) {
throw new ORPCError("NOT_FOUND", {
message: msg,
data: { code: AppErrorCode.BACKUP_NOT_FOUND },
});
}
throw new ORPCError("BAD_REQUEST", {
message: msg,
data: { code: AppErrorCode.BACKUP_DELETE_FAILED },
});
}
await deleteBackup(input.filename);
});
export const backupsRestore = os.admin.backups.restore
+2 -1
View File
@@ -18,6 +18,7 @@
"@fontsource-variable/dm-sans": "5.2.8",
"@fontsource-variable/geist-mono": "5.2.7",
"@fontsource/dm-serif-display": "5.2.8",
"@lingui/core": "catalog:",
"@lingui/react": "catalog:",
"@orpc/client": "catalog:",
"@orpc/contract": "catalog:",
@@ -51,7 +52,7 @@
"@tailwindcss/vite": "4.2.2",
"@tanstack/devtools-vite": "0.6.0",
"@tanstack/react-devtools": "0.10.0",
"@tanstack/react-query-devtools": "5.94.5",
"@tanstack/react-query-devtools": "5.95.0",
"@tanstack/react-router-devtools": "1.166.11",
"@tanstack/router-plugin": "1.167.3",
"@types/bun": "catalog:",