chore(deps): dependency upgrades — react-router 7, eslint 10, TS 6, plugin-react 6; drop unused zod (v0.16.5-beta)
Applies the open dependabot PRs in one validated pass: - react-router-dom 6.30 -> 7.18 (drop-in for our API surface; verified in-browser: login, sidebar routing, ?type= deep-links, legacy redirects) - react + react-dom -> 19.2.7, axios -> 1.18.0, lucide-react -> 1.21.0 - actions/checkout v6 -> v7 across all workflows - backend: eslint 10 + @eslint/js 10 (fix 5 new no-useless-assignment findings), typescript 6.0.3 (explicit types: ["node","jest"] in tsconfig — TS 6 no longer auto-includes @types), remove zod (unused) - frontend: @vitejs/plugin-react 6 Not taken: ioredis 5.11.1 (#55) — bullmq pins ioredis to exactly 5.10.1 (including latest bullmq 5.79), so the bump nests a second ioredis and breaks BullMQ connection types. Validation: backend tsc/lint/build + 92 tests green; frontend tsc/lint/ build + 11 tests green; docker stack rebuilt and browser-verified. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Fable 5
parent
dd1b6b7d13
commit
6f0fbdb74f
@@ -91,7 +91,7 @@ router.get('/', async (req: Request, res: Response) => {
|
||||
LEFT JOIN client_traffic_daily ctd
|
||||
ON ctd.mac_address = LOWER(deduped.mac_address) AND ctd.day = CURRENT_DATE
|
||||
${orderBy}
|
||||
LIMIT $${idx++} OFFSET $${idx++}
|
||||
LIMIT $${idx++} OFFSET $${idx}
|
||||
`;
|
||||
const clients = await query(sql, [...filterParams, parseInt(String(limit), 10), parseInt(String(offset), 10)]);
|
||||
|
||||
|
||||
@@ -369,7 +369,7 @@ router.put('/:id', requireWrite, async (req: Request, res: Response) => {
|
||||
);
|
||||
if (!existing) return res.status(404).json({ error: 'Device not found' });
|
||||
|
||||
let preset: Awaited<ReturnType<typeof loadCredentialPreset>> = null;
|
||||
let preset: Awaited<ReturnType<typeof loadCredentialPreset>>;
|
||||
try {
|
||||
preset = await loadCredentialPreset(credential_preset_id ?? null, {
|
||||
requestingUserRole: req.user?.role,
|
||||
|
||||
@@ -78,7 +78,7 @@ export class WebhookService {
|
||||
if (hook.secret) {
|
||||
headers['X-MTM-Signature'] = 'sha256=' + createHmac('sha256', hook.secret).update(body).digest('hex');
|
||||
}
|
||||
let status = 0;
|
||||
let status: number;
|
||||
try {
|
||||
status = await postJson(hook.url, body, headers);
|
||||
} catch (e) {
|
||||
|
||||
@@ -80,7 +80,7 @@ export async function createDeviceFromBody(
|
||||
credential_preset_id,
|
||||
} = input;
|
||||
|
||||
let preset: Awaited<ReturnType<typeof loadCredentialPreset>> = null;
|
||||
let preset: Awaited<ReturnType<typeof loadCredentialPreset>>;
|
||||
try {
|
||||
preset = await loadCredentialPreset(credential_preset_id ?? null, ctx);
|
||||
} catch (err) {
|
||||
@@ -107,7 +107,7 @@ export async function createDeviceFromBody(
|
||||
}
|
||||
|
||||
const testClient = new RouterOSClient(ip_address, api_port, api_username, api_password, 10_000);
|
||||
let detectedSerial: string | null = null;
|
||||
let detectedSerial: string | null;
|
||||
try {
|
||||
await testClient.connect();
|
||||
const rb = await testClient.execute('/system/routerboard/print').catch(() => [] as Record<string, string>[]);
|
||||
|
||||
Reference in New Issue
Block a user