Skip to content

Commit 7bdfb0a

Browse files
authored
chore: bump deps (#436)
* chore: bump deps to latest mature versions next/posthog-js/@posthog/nextjs-config pinned to the newest releases that clear the minimumReleaseAge supply-chain policy (today's releases are too new); cypress stays at 15.16.0 for the same reason. * chore: override hono <4.12.21 to >=4.12.21 for 4 moderate advisories Transitive via @modelcontextprotocol/sdk in packages/mcp. Verified postcss and qs overrides still map to live advisories (minimum set). * chore: fix new oxlint 1.69 rule violations - method-signature-style (30): interface method signatures converted to property signatures with function types - prefer-named-capture-group (43): regex groups named or made non-capturing where the value is never read - tsconfig target ES2017 -> ES2018 (root + app): named capture groups are ES2018 syntax
1 parent 6a70513 commit 7bdfb0a

42 files changed

Lines changed: 1027 additions & 1282 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@
4444
"audit-ci": "^7.1.0",
4545
"is-ci": "^4.1.0",
4646
"lefthook": "^2.1.9",
47-
"oxfmt": "^0.52.0",
48-
"oxlint": "^1.67.0",
47+
"oxfmt": "^0.54.0",
48+
"oxlint": "^1.69.0",
4949
"rimraf": "^6.1.3",
5050
"typescript": "^6.0.3"
5151
},
5252
"engines": {
5353
"node": ">=18.0.0",
5454
"pnpm": ">=10.0.0"
5555
},
56-
"packageManager": "pnpm@11.5.0"
56+
"packageManager": "pnpm@11.5.2"
5757
}

packages/app/cypress/e2e/url-params.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const assertNoHydrationMismatch = () => {
2525
cy.get('@consoleError').then((spy) => {
2626
const calls = (spy as unknown as { args: unknown[][] }).args;
2727
const hydration = calls.filter((args) =>
28-
args.some((a) => typeof a === 'string' && /hydrat(ion|ed) (mismatch|failed)/iu.test(a)),
28+
args.some((a) => typeof a === 'string' && /hydrat(?:ion|ed) (?:mismatch|failed)/iu.test(a)),
2929
);
3030
expect(hydration, JSON.stringify(hydration)).to.have.length(0);
3131
});

packages/app/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -32,42 +32,42 @@
3232
"@chenglou/pretext": "^0.0.7",
3333
"@jpinsonneau/html-to-image": "^1.11.13",
3434
"@noble/ciphers": "^2.2.0",
35-
"@posthog/nextjs-config": "^1.9.37",
36-
"@radix-ui/react-accordion": "^1.2.12",
37-
"@radix-ui/react-dialog": "^1.1.15",
38-
"@radix-ui/react-label": "^2.1.8",
39-
"@radix-ui/react-popover": "^1.1.15",
40-
"@radix-ui/react-select": "^2.2.6",
41-
"@radix-ui/react-slot": "^1.2.4",
42-
"@radix-ui/react-switch": "^1.2.6",
43-
"@radix-ui/react-tabs": "^1.1.13",
44-
"@radix-ui/react-tooltip": "^1.2.8",
35+
"@posthog/nextjs-config": "^1.9.54",
36+
"@radix-ui/react-accordion": "^1.2.13",
37+
"@radix-ui/react-dialog": "^1.1.16",
38+
"@radix-ui/react-label": "^2.1.9",
39+
"@radix-ui/react-popover": "^1.1.16",
40+
"@radix-ui/react-select": "^2.3.0",
41+
"@radix-ui/react-slot": "^1.2.5",
42+
"@radix-ui/react-switch": "^1.3.0",
43+
"@radix-ui/react-tabs": "^1.1.14",
44+
"@radix-ui/react-tooltip": "^1.2.9",
4545
"@react-three/fiber": "^9.6.1",
4646
"@semianalysisai/inferencex-constants": "workspace:*",
4747
"@semianalysisai/inferencex-db": "workspace:*",
48-
"@shikijs/rehype": "^4.1.0",
49-
"@tailwindcss/typography": "^0.5.19",
50-
"@tanstack/react-query": "^5.100.14",
48+
"@shikijs/rehype": "^4.2.0",
49+
"@tailwindcss/typography": "^0.5.20",
50+
"@tanstack/react-query": "^5.101.0",
5151
"@vercel/analytics": "^2.0.1",
5252
"@vercel/blob": "^2.4.0",
5353
"@vercel/speed-insights": "^2.0.0",
5454
"adm-zip": "^0.5.17",
5555
"class-variance-authority": "^0.7.1",
5656
"clsx": "^2.1.1",
5757
"d3": "^7.9.0",
58-
"dompurify": "^3.4.7",
58+
"dompurify": "^3.4.8",
5959
"gray-matter": "^4.0.3",
6060
"iwanthue": "^2.0.0",
6161
"lucide-react": "^1.17.0",
6262
"mp4-muxer": "^5.2.2",
63-
"next": "^16.2.6",
63+
"next": "^16.2.7",
6464
"next-mdx-remote": "^6.0.0",
6565
"next-themes": "^0.4.6",
66-
"posthog-js": "^1.376.3",
67-
"react": "^19.2.6",
68-
"react-dom": "^19.2.6",
66+
"posthog-js": "^1.383.1",
67+
"react": "^19.2.7",
68+
"react-dom": "^19.2.7",
6969
"remark-gfm": "^4.0.1",
70-
"shiki": "^4.1.0",
70+
"shiki": "^4.2.0",
7171
"tailwind-merge": "^3.6.0",
7272
"three": "^0.184.0"
7373
},
@@ -77,11 +77,11 @@
7777
"@types/adm-zip": "^0.5.8",
7878
"@types/d3": "^7.4.3",
7979
"@types/mdast": "^4.0.4",
80-
"@types/node": "^25.9.1",
81-
"@types/react": "^19.2.15",
80+
"@types/node": "^25.9.2",
81+
"@types/react": "^19.2.17",
8282
"@types/react-dom": "^19.2.3",
8383
"@types/three": "^0.184.1",
84-
"@vitest/coverage-v8": "^4.1.7",
84+
"@vitest/coverage-v8": "^4.1.8",
8585
"cypress": "^15.16.0",
8686
"cypress-split": "^1.24.31",
8787
"dotenv": "^17.4.2",
@@ -90,10 +90,10 @@
9090
"fake-indexeddb": "^6.2.5",
9191
"jsdom": "^29.1.1",
9292
"tailwindcss": "^4.3.0",
93-
"tsx": "^4.22.3",
93+
"tsx": "^4.22.4",
9494
"tw-animate-css": "^1.4.0",
9595
"typescript": "^6.0.3",
96-
"vitest": "^4.1.7"
96+
"vitest": "^4.1.8"
9797
},
9898
"engines": {
9999
"node": ">=18.0.0",

packages/app/src/components/evaluation/ui/BarChartD3.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export default function EvalBarChartD3({ caption }: { caption?: ReactNode }) {
180180
if (url) {
181181
const direct = runIndexByUrl[url];
182182
if (direct !== undefined) return unofficialRunInfos[direct]?.branch;
183-
const idMatch = url.match(/\/runs\/(\d+)/u);
183+
const idMatch = url.match(/\/runs\/(?<runId>\d+)/u);
184184
if (idMatch) {
185185
const viaId = runIndexByUrl[idMatch[1]];
186186
if (viaId !== undefined) return unofficialRunInfos[viaId]?.branch;

packages/app/src/components/evaluation/ui/EvalSamplesDrawer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,8 @@ interface FilterChipProps {
338338
*/
339339
function extractRunIdFromUrl(url: string | undefined): string | null {
340340
if (!url) return null;
341-
const m = url.match(/\/actions\/runs\/(\d+)/u);
342-
return m ? m[1] : null;
341+
const m = url.match(/\/actions\/runs\/(?<runId>\d+)/u);
342+
return m?.groups?.runId ?? null;
343343
}
344344

345345
function FilterChip({ label, count, active, onClick, tone }: FilterChipProps) {

packages/app/src/components/inference/replay/exportMp4.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface ExportOptions {
5959
signal?: AbortSignal;
6060
}
6161

62-
const CSS_VAR_RE = /var\(--([^)]+)\)/u;
62+
const CSS_VAR_RE = /var\(--(?<varName>[^)]+)\)/u;
6363
const WATERMARK_HEIGHT = 48;
6464
const WATERMARK_TEXT = 'InferenceX — github.com/SemiAnalysisAI/InferenceX';
6565

packages/app/src/components/inference/ui/ChartDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ export default function ChartDisplay() {
192192
const info = unofficialRunInfos[runIndexByUrl[url]];
193193
return info ? { branch: info.branch, url: info.url } : undefined;
194194
}
195-
const idMatch = url.match(/\/runs\/(\d+)/u);
195+
const idMatch = url.match(/\/runs\/(?<runId>\d+)/u);
196196
if (idMatch && idMatch[1] in runIndexByUrl) {
197197
const info = unofficialRunInfos[runIndexByUrl[idMatch[1]]];
198198
return info ? { branch: info.branch, url: info.url } : undefined;

packages/app/src/components/inference/utils/paretoLabels.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export const parseLabelComponents = (label: string): string[] => {
4646
const parts = label.split('+');
4747
return parts.map((p) => {
4848
// Strip the leading "NxNNN" multiplier (e.g., "1x" or "3x")
49-
const match = p.match(/^\d+x(.+)$/u);
50-
return match ? match[1] : p;
49+
const match = p.match(/^\d+x(?<strategy>.+)$/u);
50+
return match?.groups?.strategy ?? p;
5151
});
5252
};
5353

packages/app/src/components/inference/utils/tooltipUtils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ const runLinkHTML = (runUrl?: string) =>
8888
const tooltipLine = (label: string, value: string | number) =>
8989
`<div style="color: var(--muted-foreground); font-size: 11px; margin-bottom: 4px;"><strong>${label}:</strong> ${value}</div>`;
9090

91-
const shortenSha = (image: string) => image.replaceAll(/(sha256:[a-f0-9]{7})[a-f0-9]+/giu, '$1…');
91+
const shortenSha = (image: string) =>
92+
image.replaceAll(/(?<shaPrefix>sha256:[a-f0-9]{7})[a-f0-9]+/giu, '$<shaPrefix>…');
9293

9394
const imageTooltipLine = (image: string) =>
9495
`<div style="color: var(--muted-foreground); font-size: 11px; margin-bottom: 4px;">

packages/app/src/components/json-ld.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function render(data: object): string {
99
}
1010

1111
function scriptBody(html: string): string {
12-
const match = html.match(/<script[^>]*>([\s\S]*?)<\/script[^>]*>/iu);
12+
const match = html.match(/<script[^>]*>(?<body>[\s\S]*?)<\/script[^>]*>/iu);
1313
if (!match) throw new Error(`no <script> in: ${html}`);
1414
return match[1];
1515
}

0 commit comments

Comments
 (0)