chore(memory): Context7 documentation review report, TODO R4.11 checkpoint

This commit is contained in:
bchanot committed 2026-10-21 17:51:11 +02:00
1 parent c9243b50dd
commit ff122d1924
2 files changed
+32 -2

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
# Context7 documentation review, 2026-10-21 (branch feature/rust-r4-pdf-core, c9243b5)
Read-only, `ctx7` CLI, three tracks (Rust crates, frontend libraries, tooling + backend). Nothing changed in the code.
Not covered by Context7: miniz_oxide (Rust), libwebp-sys, rlimit, @vitejs/plugin-react-swc, supabase-js locale sync.
## Findings, by priority
| # | Area | Location | Doc statement | Class |
|---|---|---|---|---|
| 1 | Worker base image | crates/worker/Dockerfile:35 `distroless/static-debian12:nonroot` | distroless README: only `-debian13` tags are published and updated, others are deprecated | security maintenance |
| 2 | Tailwind v4 `outline-none` | 13 files (ui/Input, Button, Chip, Select, Textarea, auth/*, brand/*, shell/*, ObservationCard) | v4 `outline-none` sets `outline-style: none`; `outline-hidden` keeps v3's forced-colors outline | accessibility, visible |
| 3 | `safeNextPath` dot segments (security gate, not Context7) | apps/app/src/auth/redirects.ts:28 | `/..//evil.com` → `//evil.com`; neutralised today by react-router 7.18.4 `resolvePath` | latent open redirect |
| 4 | vitest coverage block | apps/app/vitest.config.ts:20-23 | provider v8 needs `@vitest/coverage-v8`, not installed, no script uses it | dead config |
| 5 | jest-dom entry | apps/app/tests/setup.ts:1 | Vitest entry is `@testing-library/jest-dom/vitest` | test config |
| 6 | `tseslint.config` | apps/app/eslint.config.js:21 | deprecated for ESLint core `defineConfig` | deprecation |
| 7 | `forwardRef` | ui/Input, Select, Textarea | React 19: ref as a prop, forwardRef to be deprecated | deprecation |
| 8 | supabase-js comment | apps/app/src/state/authStore.ts:95-97 | reentry deadlock reason outdated; the deferral itself is still the documented advice | stale comment |
| 9 | `auth.initialize()` without catch | apps/app/src/state/authStore.ts:164-166 | storage errors may propagate unwrapped (snippet); not settled for 2.117 | to check against source |
| 10 | Motion reduced motion | Dialog.tsx, ObservationCard.tsx | `MotionConfig reducedMotion` default "never" | accessibility, visible |
| 11 | DEPLOY.md runbook | DEPLOY.md:401 `listen 443 ssl http2;` | deprecated since nginx 1.25.1: `http2 on;` | runbook text |
| 12 | seccomp arg width | crates/worker/src/sandbox.rs:189-208 | `Dword` documented for 4-byte args; current `Qword` fails closed | low, no bug claimed |
## Upgrade notes (no action now)
react-router 8 (drop react-router-dom, react ≥19.2.7, node ≥22.22); zod 4 (frozen readers must stay on `zod/v3`; `.default` and `.strict` semantics change); TypeScript 7 (`baseUrl` removed); vite 8 coupled with vitest ≥4 and plugin-react-swc 4; vitest 5 needs `@types/node ^22 || >=24`; ESLint 10 blocked by eslint-plugin-react 7.37.5; PGlite 0.5 moves pgTAP to `@electric-sql/pglite-pgtap`; image and rcgen `main` change the APIs the worker and its TLS test use; pnpm 11 config changes.
## Confirmed as documented
ureq TLS defaults (WebPki roots, verification on) and the worker's config; rustls 0.23 server builder; roxmltree untrusted-input options; wasm-bindgen CLI = crate version; serde / serde_json / sha2 / url / image 0.25 / seccompiler semantics; Vite worker, asset queries, virtual module; vitest 3 globalSetup; supabase config.toml keys; Playwright setOffline and CDP gating; supabase-js PKCE options and sync callback; zustand v5 usage; xmldom defaults.