Repository navigation
fix: preserve partial ranges and reject unsupported specs before cloning - #62
Merged
Merged
Conversation
Signed-off-by: Lucas Braum <[email protected]>
Signed-off-by: Lucas Braum <[email protected]>
Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
marked this pull request as ready for review
October 10, 2026 07:22
Merged
lucasbraum
added a commit
that referenced
this pull request
Oct 10, 2026
…64) ## Changes `fix` plans the complete peer upgrade set before cloning, prints every blocker and one complete retry command, and supports repeatable `--allow-peer` with native npm/pnpm/Yarn overrides and visible Peer risks. npm manifest/lockfile mismatches still fail before cloning. pnpm/Yarn warn about unallowed peers; npm stops. No force or legacy-peer-deps flags are used. The lockfile guard now protects **resolved contents outside the allowed union**, rather than requiring the same records at the same placements: - npm resolves dependency and peer names from each package placement using Node's upward `node_modules` lookup in both trees, including unchanged dependent records and workspace importers. Nested placement alone does not imply a dependency edge; bundled children are treated separately. - Outside bindings must retain the same **name, version and integrity**, plus unchanged execution/platform fields (`scripts`, `bin`, `os`, `cpu` and related flags). Without integrity, the source locator must stay the same. Dependency chains of relocated copies are checked too. - The union still covers leader, companions, explicit extras and allowed peers, in both locks. Bindings already inside that authorized union remain part of the intended upgrade. A removed outside copy resolving to a different authorized hoisted version is **not** exempted. - Same-content hoisting/deduplication and descriptive metadata updates are accepted. Added/removed outside resolved packages, different versions/integrities, changed execution/platform fields and unrelated importer declarations remain rejected. - **pnpm and Yarn had the same field-value equality assumption and now use the same semantic guard.** Their adapters compare logical package/snapshot/descriptor edges, since those lockfiles do not encode npm's physical install tree. Yarn descriptor regrouping remains supported; pnpm aliases and older inline package graphs are covered. Accepted housekeeping is retained in report JSON and shown with counts and placements in a collapsed **Lockfile housekeeping** section of the generated PR body and HTML report. The terminal shows only counts and points to the report. Based on `main` after #62 merged. Minor changeset retained; signed-off feature commit **67e9f88** and merge commit **829ba22**. Resolving the squash-merge history conflicts left the source tree identical to 67e9f88. Updated command and troubleshooting docs. ## Real-repository verification Local reproduction only: `alanagoyal/alanagoyal@5d06422a3565eed930be9f61a3d117e8bff0ab91`, Node **24.21.0**, npm **11.19.0**. Used the locally built CLI with the full preflight command (plus `--verbose` for timings): ```sh npx uptide fix react @radix-ui/react-tooltip --target 19.3.0 --no-llm --allow-peer @emoji-mart/react ``` The run completes preflight, clone, analysis, guarded npm install, rules, final types and tests in **1m 33s wall time**. The install phase completes in **41s**. **Exit 1 reflects failed migration verification, not a planning/install/scope failure.** No PR, fork or push was made on the external repository. Its checkout remains on the same commit and clean; the migration branch and preview are local only. | Result | Baseline | After upgrade | After `--no-llm` fixes | |---|---:|---:|---:| | Type errors | 0 | 13 | 13 (all new) | | Tests | 181 passed / 0 failed | — | 181 passed / 0 failed | | Source edits | — | — | 0 auto-fixed, 0 LLM-fixed; 23 manual sites in 9 files | Remaining diagnostics: **8 TS2322** nullable-ref mismatches, **3 TS18046** `node.props` unknown, **1 TS2503** missing `JSX` namespace and **1 TS2554** missing `useRef` argument. No LLM calls or spend. Runtime behavior was not verified. The generated PR body correctly marks review required and verification FAIL. The existing companion planner selects shared-pin Radix versions, including downgrades for some companions. This policy is unchanged by the housekeeping fix and is visible in the unedited preview below. The explicitly allowed emoji-mart peer remains a runtime compatibility risk. <details><summary>Lockfile housekeeping · 5 accepted dedupe moves · 0 metadata-only changes in this run</summary> Each removed copy resolves to the same name, version and integrity at its hoisted placement. No outside resolved package disappears. | Package | Removed placement | Equivalent placement | |---|---|---| | `@radix-ui/[email protected]` | `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context` | `node_modules/@radix-ui/react-context` | | `@radix-ui/[email protected]` | `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction` | `node_modules/@radix-ui/react-direction` | | `@radix-ui/[email protected]` | `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref` | `node_modules/@radix-ui/react-use-callback-ref` | | `@radix-ui/[email protected]` | `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect` | `node_modules/@radix-ui/react-use-layout-effect` | | `@radix-ui/[email protected]` | `node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive` | `node_modules/@radix-ui/react-primitive` | </details> Baseline lockfile investigation remains valid: `npm ci --dry-run` passed; an unchanged manifest/lock-only install changed **0 records**, with lockfile version **3** throughout. The earlier `zod` and `@tiptap/suggestion` removals were caused by diagnostic `legacy-peer-deps`; native scoped overrides preserve them. This implementation never uses that flag. ## Validation - Local **1,030 core + 357 CLI tests pass**; 15 opt-in network tests skipped. - Build, lint, typecheck, docs links and structural public-tree scan pass. The secret-backed scan runs in CI. - Regression coverage: dedupe to existing and newly hoisted copies; metadata-only changes; version/integrity changes; outside graph additions/removals; scripts/bin/os/cpu changes; unchanged dependents resolving differently; transitive resolution changes after same-identity dedupe; npm v2/v3, pnpm snapshots/aliases/inline graphs and Yarn descriptors; collapsed PR/HTML output and terminal counts. Previous peer-planning and group-scope tests remain. - [CI on 829ba22](https://github.com/uptide-dev/uptide/actions/runs/38034966012): **test (20), test (22), smoke (20), smoke (22), docs, changeset and signed-off all pass**. Both smoke jobs pass npm, npm workspaces, pnpm, Yarn classic and Yarn Berry, including `fix --no-llm`; the secret-backed private-material scan passes in both test jobs. The separate [Pack test](https://github.com/uptide-dev/uptide/actions/runs/38034966068) is still running as of this update and is not included in the green checks. ## Generated external PR body — preview only The following is the full, unedited generated body, printed for review. It was **not** submitted as a PR anywhere. Its run metadata records the working-tree build used before the follow-up commit. <details><summary>Full generated PR body (verification failed; no external PR opened)</summary> ````markdown ## Upgrade react 18.2.0 → 19.3.0 **Review required before merging.** The code was migrated to react 19. New type errors remain. Upgraded with react, so the install stays consistent: - `@radix-ui/react-avatar` 1.1.11 → 1.1.1 (@radix-ui/react-avatar 1.1.1 pins @radix-ui/react-context 1.1.1, @radix-ui/react-primitive 2.0.0, @radix-ui/react-use-callback-ref 1.1.0, as @radix-ui/react-context-menu 2.2.2 does) - `@radix-ui/react-context-menu` 2.2.16 → 2.2.2 (@radix-ui/react-context-menu 2.2.2 pins @radix-ui/primitive 1.1.0, @radix-ui/react-context 1.1.1, @radix-ui/react-primitive 2.0.0, @radix-ui/react-use-controllable-state 1.1.0, as @radix-ui/react-switch 1.1.1 does) - `@radix-ui/react-dialog` 1.1.15 → 1.1.0 (@radix-ui/react-dialog 1.1.0 is released with @radix-ui/react-slot 1.1.0 (pins 1.1.0)) - `@radix-ui/react-label` 2.1.8 → 2.1.0 (@radix-ui/react-label 2.1.0 pins @radix-ui/react-primitive 2.0.0, as @radix-ui/react-avatar 1.1.1 does) - `@radix-ui/react-popover` 1.1.15 → 1.1.0 (@radix-ui/react-popover 1.1.0 is released with @radix-ui/react-slot 1.1.0 (pins 1.1.0)) - `@radix-ui/react-slot` 1.2.3 → 1.1.0 (@radix-ui/react-tooltip 1.1.0 pins @radix-ui/react-slot 1.1.0) - `@radix-ui/react-switch` 1.2.6 → 1.1.1 (@radix-ui/react-switch 1.1.1 pins @radix-ui/react-compose-refs 1.1.0, as @radix-ui/react-slot 1.1.0 does) - `@radix-ui/react-tooltip` 1.0.7 → 1.1.0 (explicit peer upgrade accepting react 19.3.0) - `@types/react` 18.2.62 → 19.3.0 (@types/react 19.3.0 types react 19.3.0) - `@types/react-dom` 18.2.19 → 19.3.0 (@types/react-dom 19.3.0 types react-dom 19.3.0) - `react-dom` 18.2.0 → 19.3.0 (react-dom 19.3.0 is released with react 19.3.0 (peer ^19.3.0)) Assisted fixes disabled (--no-llm). | | | |---|---| | **Risk** | High: peer compatibility is not verified; manual sites left; unverified sites | | **Changes** | 23 sites in 9 files · 0 auto-fixed · 0 fixed by the agent (LLM) · 23 manual | | **Types** | ❌ 13 errors after the bump → 13 | | **Behavior** |⚠️ not checked | | **Tests** | ✅ 1 workspace passed · the `test` script of the repository | <details><summary>Lockfile housekeeping · 5 dedupe moves · 0 metadata-only changes</summary> Outside resolutions retain the same package name, version and integrity; execution and platform fields are unchanged. - `@radix-ui/[email protected]`: `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-context` → `node_modules/@radix-ui/react-context`. - `@radix-ui/[email protected]`: `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-direction` → `node_modules/@radix-ui/react-direction`. - `@radix-ui/[email protected]`: `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-callback-ref` → `node_modules/@radix-ui/react-use-callback-ref`. - `@radix-ui/[email protected]`: `node_modules/@radix-ui/react-scroll-area/node_modules/@radix-ui/react-use-layout-effect` → `node_modules/@radix-ui/react-use-layout-effect`. - `@radix-ui/[email protected]`: `node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive` → `node_modules/@radix-ui/react-primitive`. </details> ### What changed **1. ".":useRef** · 1 site · manual Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual <details><summary>Diff and reasoning</summary> Representative diff was not retained in this stored run. - `components/apps/photos/photos-grid.tsx` (1) no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual </details> **2. React.ReactNode** · 1 site · manual Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual <details><summary>Diff and reasoning</summary> Representative diff was not retained in this stored run. - `components/apps/notes/note-markdown-preview.tsx` (1) no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual </details> **3. TS18046** · 3 sites · manual Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual <details><summary>Diff and reasoning</summary> Representative diff was not retained in this stored run. - `components/apps/notes/note-content.tsx` (3) no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual </details> **4. TS2322** · 18 sites · manual Manual migration required: no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual <details><summary>Diff and reasoning</summary> Representative diff was not retained in this stored run. - `components/apps/calendar/calendar-app.tsx` (2) - `components/apps/finder/finder-app.tsx` (1) - `components/apps/messages/chat-area.tsx` (1) - `components/apps/messages/sidebar.tsx` (1) - `components/apps/notes/note-content.tsx` (10) - `components/apps/notes/notes-app.tsx` (2) - `components/apps/notes/sidebar.tsx` (1) no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual </details> ### Peer risks - @emoji-mart/react 1.1.1 declares react ^16.8 || ^17 || ^18, which rejects 19.3.0. Explicitly allowed with `--allow-peer`; the manager override is in package.json. Runtime compatibility needs review. ### Worth a look - Manual: `calendar-app.tsx:469` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `calendar-app.tsx:455` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `finder-app.tsx:1522` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `chat-area.tsx:195` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `sidebar.tsx:566` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:620` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:619` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:618` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:617` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:616` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:615` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:614` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:613` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:612` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:611` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:66` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:63` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-content.tsx:62` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `note-markdown-preview.tsx:110` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `notes-app.tsx:119` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `notes-app.tsx:91` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `sidebar.tsx:707` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Manual: `photos-grid.tsx:87` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual - Resolve 13 new type errors before merging (see verification details). <details><summary>Verification details</summary> Type errors: baseline 0; target 13; after 13; 13 new. Verification: FAIL. | Workspace | Baseline tests | Target tests | |---|---|---| | . | passed | passed | - `.`: the `test` script of the repository — `node --import tsx --test tests/*.test.ts` **Remaining errors** - components/apps/calendar/calendar-app.tsx:455 TS2322: Type 'RefObject<HTMLInputElement | null>' is not assignable to type 'RefObject<HTMLInputElement>'. Type 'HTMLInputElement | null' is not assignable to type 'HTMLInputElement'. Type 'null' is not assignable to type 'HTMLInputElement'. - components/apps/calendar/calendar-app.tsx:469 TS2322: Type 'RefObject<HTMLInputElement | null>' is not assignable to type 'RefObject<HTMLInputElement>'. - components/apps/finder/finder-app.tsx:162 TS2503: Cannot find namespace 'JSX'. - components/apps/finder/finder-app.tsx:1522 TS2322: Type 'RefObject<HTMLInputElement | null>' is not assignable to type 'RefObject<HTMLInputElement>'. - components/apps/messages/chat-area.tsx:195 TS2322: Type 'RefObject<{ focus: () => void; } | null>' is not assignable to type 'RefObject<{ focus: () => void; }>'. Type '{ focus: () => void; } | null' is not assignable to type '{ focus: () => void; }'. Type 'null' is not assignable to type '{ focus: () => void; }'. - components/apps/messages/sidebar.tsx:566 TS2322: Type 'RefObject<HTMLInputElement | null>' is not assignable to type 'RefObject<HTMLInputElement>'. - components/apps/notes/note-content.tsx:62 TS18046: 'node.props' is of type 'unknown'. - components/apps/notes/note-content.tsx:63 TS18046: 'node.props' is of type 'unknown'. - components/apps/notes/note-content.tsx:66 TS18046: 'node.props' is of type 'unknown'. - components/apps/notes/notes-app.tsx:91 TS2322: Type 'RefObject<HTMLDivElement | null>' is not assignable to type 'RefObject<HTMLDivElement>'. Type 'HTMLDivElement | null' is not assignable to type 'HTMLDivElement'. Type 'null' is not assignable to type 'HTMLDivElement'. - components/apps/notes/notes-app.tsx:119 TS2322: Type 'RefObject<HTMLDivElement | null>' is not assignable to type 'RefObject<HTMLDivElement>'. - components/apps/notes/sidebar.tsx:707 TS2322: Type 'RefObject<HTMLInputElement | null>' is not assignable to type 'RefObject<HTMLInputElement>'. - components/apps/photos/photos-grid.tsx:87 TS2554: Expected 1 arguments, but got 0. **Tests: .** ```text ✔ declares the complete mobile support matrix explicitly (2.23875ms) ✔ sends every unsupported mobile app to Notes (0.512166ms) ✔ keeps supported apps available in the mobile shell and Finder policy (0.217125ms) ✔ fails closed to Notes for unknown mobile app ids (0.11425ms) ✔ Dock order can differ from the shared app registry (1.315708ms) ✔ Photos cannot resize narrower than its desktop toolbar (0.133875ms) ✔ expanded restored windows stay inside the viewport's right edge (0.105625ms) ✔ starts a new event at the next local half-hour (3.658709ms) ✔ moves to the following slot when now is exactly on a half-hour (0.101833ms) ✔ carries the one-hour event across midnight (0.090833ms) ✔ advances the selected date when the next slot is midnight (0.068291ms) ✔ keeps user-created events visible in capped Month cells (0.717667ms) ✔ preserves public event order when there are no user events (0.110125ms) ✔ searches generated event titles and locations (13.158958ms) ✔ puts upcoming matching events before past results (0.604167ms) ✔ searches stored events outside the generated-event window (9.94ms) ✔ wraps Calendar search result keyboard navigation (0.104041ms) ✔ centers Calendar search selections around their start time (0.107083ms) ✔ uses Sunday-based US calendar week numbers (1.077459ms) ✔ starts week one with the Sunday containing January 1 (0.087291ms) ✔ Dock keep overrides recover from malformed storage (0.714959ms) ✔ Dock open indicators default on and honor an explicit off preference (0.2495ms) ✔ registered Dock defaults apply until a user overrides them (0.315417ms) ✔ returning to an app's registered default removes its stored override (0.205791ms) ✔ Dock submenus choose the side with less viewport overflow (0.226958ms) ✔ document apps reuse stable, app-specific Finder picker identities (0.11575ms) ✔ maps only Finder-supported terminal directories (0.792625ms) ✔ opens only existing GitHub project roots (0.184958ms) ✔ builds clickable segments from the Finder section root (0.835459ms) ✔ keeps local and virtual roots concise (0.16775ms) ✔ Finder restores valid sort metadata and rejects invalid saved values (1.189917ms) ✔ Finder defaults match the indicated column and reverse on first click (6.000959ms) ✔ Finder sort uses native-feeling initial directions and reverses (0.085792ms) ✔ Finder name sorting is case-insensitive and numeric (0.065375ms) ✔ Finder kind sorting uses names as deterministic ties (0.062625ms) ✔ Finder date sorting supports newest and oldest first (0.057209ms) ✔ returns the same-day 7 PM cutoff before evening (3.708208ms) ✔ does not offer an evening cutoff at exactly 7 PM (0.077167ms) ✔ does not roll the evening cutoff into the next day (0.049916ms) ✔ chess rules accept legal moves and reject illegal moves (2.808875ms) ✔ chess move records distinguish captures for sound playback (3.449875ms) ✔ easy computer play is deterministic with an injected random source (2.503666ms) ✔ hard computer play takes an undefended queen (391.334958ms) ✔ waiting badges require both a fresh heartbeat and unexpired row (0.124792ms) ✔ visitor matchmaking waits for two minutes before fallback (0.05275ms) ✔ waiting badge polling is infrequent and protected by a shared rate limit (0.058459ms) ✔ matchmaking uses a stricter abuse limit than active gameplay (0.0795ms) ✔ visitor names are normalized and kept deliberately short (0.146458ms) ✔ temporary disconnect and abandonment use different thresholds (0.130375ms) ✔ public match responses never expose participant credential hashes (0.100792ms) ✔ authoritative moves reject conflicts, illegal turns, and completed games (1.029ms) ✔ authoritative moves preserve history and recognize threefold repetition (1.863208ms) ✔ 2048 merges each tile only once per move (0.811708ms) ✔ 2048 creates two starting tiles and detects a locked board (0.145708ms) ✔ 2048 applies scoring atomically and deterministically (0.111917ms) ✔ minesweeper keeps the first cell and its neighbors safe (0.326042ms) ✔ minesweeper preserves flags when the minefield starts (0.162792ms) ✔ snake grows on food and collides with walls (0.17975ms) ✔ memory deck contains eight exact pairs (0.124584ms) ✔ memory deck draws each game from a varied emoji pool (0.117125ms) ✔ memory levels grow into square boards with exact pairs (0.124959ms) ✔ restored odd memory levels start with the free space matched (0.121ms) ✔ campaign games share five explicitly tuned levels (0.140084ms) ✔ campaign levels persist per game until Games is closed (0.128834ms) ✔ preserves Markdown that already fits in the preview limit (0.649667ms) ✔ bounds long Markdown at a nearby complete line (0.091ms) ✔ uses the hard limit when no useful line boundary exists (0.062167ms) ✔ does not split supplementary Unicode characters (0.052084ms) ✔ supports an empty preview limit (0.056666ms) ✔ defers Markdown parsing until a preview reaches the viewport (6.074666ms) ✔ renders links and task controls as non-interactive preview content (122.103541ms) ✔ digital clock refresh cadence follows its visible precision (0.818167ms) ✔ analog clock ignores stored digital-only refresh preferences (0.132333ms) ✔ clock refresh delay aligns updates to the next display boundary (0.157583ms) ✔ labels read-state actions from the current unread count (0.365208ms) ✔ marks read conversations unread without mutating adjacent conversations (0.088875ms) ✔ marks unread conversations read (0.049625ms) ▶ Messages search ✔ returns message matches newest-first within conversation order (0.627209ms) ✔ omits system messages and honors the result limit (0.066875ms) ✔ does not match reaction types (0.061125ms) ✔ shows the matching text in long message previews (0.178791ms) ✔ matches the displayed conversation name (0.086917ms) ✔ wraps keyboard navigation through the visible result list (0.07025ms) ✔ Messages search (1.631666ms) ✔ starts conversation long presses only for touch-style pointers (0.396541ms) ✔ cancels a conversation long press after meaningful movement (0.074ms) ✔ recognizes conversation context-menu keyboard shortcuts (0.059916ms) ✔ builds a useful static conversation preview (0.37675ms) ✔ starts note long presses only for touch-style pointers (0.378958ms) ✔ cancels a note long press after meaningful movement (0.072959ms) ✔ recognizes keyboard context-menu shortcuts (0.05975ms) ✔ album library groups unique tracks into playable queues (1.3795ms) ✔ album queues remove duplicate songs repeated across playlists (0.161375ms) ✔ favorite song ids round-trip without duplicates (0.653584ms) ✔ favorite song ids ignore malformed entries (0.064958ms) ✔ favorite song ids recover from invalid storage (0.063167ms) ✔ opens Music content by default and restores the mobile sidebar on refresh (0.378875ms) ✔ recent listening history is unique and ordered newest first (0.923125ms) ✔ recent listening history keeps the latest eight tracks (0.097458ms) ✔ stored listening history recovers complete unique track records (0.138958ms) ✔ stored listening history rejects malformed, duplicate, and legacy entries (0.0985ms) ✔ groups the most prominent repeated heading level (10.158958ms) ✔ falls back to a single heading when no level repeats (1.093041ms) ✔ ignores heading-like text inside fenced code blocks (1.201958ms) ✔ leaves notes without headings unchanged (0.446167ms) ✔ keeps reference links available across collapsible sections (1.920375ms) ✔ assigns duplicate headings independent persisted keys (0.699583ms) ✔ ends a section at a more prominent heading (0.740417ms) ✔ normalizes heading identity for stable restoration (0.057667ms) ✔ restores collapsed sections independently for each note (0.191833ms) ✔ clears persisted collapse state with the Notes view state (0.106666ms) ✔ ignores malformed persisted collapse state (0.065416ms) ✔ sorts the default view by the normalized display date (35.560167ms) ✔ sorts by the raw creation date independently (2.51525ms) ✔ sorts titles ascending and descending (0.55ms) ✔ uses the standard list defaults in a new tab (0.803792ms) ✔ restores display choices only from the current tab (5.644958ms) ✔ ignores and removes legacy durable display preferences (2.020291ms) ✔ clears Notes display preferences when the app closes (0.18925ms) ✔ shows context around a matching phrase in a long note (0.643542ms) ✔ falls back to the beginning when only the title matches (0.078125ms) ✔ normalizes markdown before locating the match (0.058625ms) ✔ removes Markdown markers without stripping semantic punctuation (0.051834ms) ✔ keeps the match near the start so it survives sidebar truncation (0.083333ms) ✔ searches visible note text instead of hidden Markdown link targets (0.388208ms) ✔ notification-center dismissal is independent and content-aware (0.447917ms) ✔ notification-center dismissal tolerates unavailable browser storage (0.115666ms) ✔ messages notification appears only for unread conversations (0.176417ms) ✔ dismissal keys remain scoped to Notification Center (0.205875ms) ✔ weather dismissal stays stable while a loaded forecast refreshes (0.279792ms) ✔ weather loading stays hidden until its dismissed signature resolves (0.176458ms) ✔ formats the native-style camera and lens labels (22.819125ms) ✔ formats file size and megapixels compactly (0.179541ms) ✔ formats sub-second shutter speeds as fractions (0.088875ms) ✔ normalizes zero and positive exposure compensation (0.091792ms) ✔ leaves vertical scrolling and trackpad pinch gestures native (0.589958ms) ✔ navigates once per deliberate gesture and consumes momentum (0.318458ms) ✔ resets unfinished gestures after a reversal or idle window (0.080708ms) ✔ supports deliberate reversals and repeated same-direction swipes (0.093042ms) ✔ normalizes discrete wheel deltas as independent gestures (0.066625ms) ✔ positions the previous, current, and next photo slides (0.075833ms) ✔ limits gesture tracking and resists photo boundaries (0.117209ms) ✔ commits touch swipes by distance or a shorter fast flick (0.07825ms) ✔ Photos grid size defaults safely and persists valid choices (0.993917ms) ✔ Photos grid resizing stops at both thumbnail-size limits (0.207625ms) ✔ Photos grid sizes change desktop density without changing mobile (0.144791ms) ✔ Photos headers reserve one fixed-height frame (13.287542ms) ✔ restores photo rotations only from the current tab (0.702875ms) ✔ ignores malformed photo rotation entries (0.074125ms) ✔ opens Photos content by default and restores the mobile menu on refresh (0.082292ms) ✔ clears photo rotations with the rest of Photos view state (0.070125ms) ✔ describes supported Preview document kinds (0.379542ms) ✔ formats file sizes with compact native-style units (0.078083ms) ✔ formats image dimensions and containing folders (10.919041ms) ✔ finds a specific setting by familiar language (0.731333ms) ✔ returns the destination pane for subpanel settings (0.0835ms) ✔ keeps top-level category names searchable (0.074125ms) ✔ wraps Settings search keyboard navigation (0.060333ms) ✔ creates a numbered untitled document without collisions (1.118042ms) ✔ duplicates into Documents while preserving the source extension (0.227333ms) ✔ rename preserves an omitted extension and rejects invalid or duplicate names (0.92ms) ✔ finds non-overlapping matches without case sensitivity (2.442ms) ✔ returns no matches for an empty query (0.151917ms) ✔ replaces one selected match (0.224542ms) ✔ replaces all matches without shifting later ranges (0.272167ms) ✔ labels UV index with native category ranges (0.63625ms) ✔ formats visibility from meters into native mile labels (0.085333ms) ✔ clamps near-zero visibility to a readable minimum (0.054166ms) ✔ keeps the current Weather selection when another city is removed (0.86375ms) ✔ selects the next Weather city after removing the current city (0.14825ms) ✔ falls back to the previous Weather city at the end of the list (0.121084ms) ✔ wraps Weather search keyboard navigation (0.1255ms) ✔ converts Fahrenheit weather data to Celsius (0.356333ms) ✔ formats weather temperatures with native whole-degree labels (0.06975ms) ✔ Weather View menu presents native temperature unit choices (3.998958ms) ✔ restores independent Finder sorts with each window's metadata (0.746042ms) ✔ prefers tab-scoped state and removes a stale durable copy (0.073542ms) ✔ migrates legacy durable state into tab storage (0.054041ms) ✔ falls back to valid durable state before removing an invalid tab value (0.056542ms) ✔ keeps the legacy value when tab storage rejects the migration (0.063125ms) ✔ saves new window state only to tab storage (0.045291ms) ✔ keeps separate tabs independent (0.046417ms) ℹ tests 181 ℹ suites 1 ℹ pass 181 ℹ fail 0 ℹ cancelled 0 ℹ skipped 0 ℹ todo 0 ℹ duration_ms 753.408125 ``` **Run notes** - errors thrown in render are no longer re-thrown: uncaught ones go to `window.reportError`, caught ones to `console.error`; error reporting that relied on the re-throw needs `onUncaughtError` and `onCaughtError` on `createRoot` - `propTypes` and `defaultProps` on function components, legacy context (`contextTypes`, `getChildContext`), string refs, module-pattern factories, `React.createFactory` and `react-test-renderer/shallow` are removed at runtime: default parameters, `createContext`, ref callbacks and JSX replace them, and the compiler only sees some of them - `act` from "react-dom/test-utils" warns: import it from "react"; the other test-utils exports are removed - reading `element.ref` warns: `ref` is a prop, read `element.props.ref`; cloneElement and Children code that touches the ref should be looked at - in development, Strict Mode reuses the first render's `useMemo` and `useCallback` results on the second render and double-invokes ref callbacks on mount; code that was Strict Mode safe does not notice - a suspended component commits the nearest Suspense fallback at once and renders its siblings afterwards, so siblings of a suspending component no longer render before the fallback shows - React no longer ships UMD builds: a script tag needs an ES module CDN, or a bundler - `javascript:` URLs in `href` and `src` throw, and an empty `src` or `href` (except on `a`) is no longer set - `useReducer<React.Reducer<S, A>>(reducer)` no longer types: pass no type arguments and annotate the reducer, or pass `<State, [Action]>` - React 19 Upgrade Guide: https://react.dev/blog/2024/04/25/react-19-upgrade-guide - React 19.0.0 changelog: https://github.com/facebook/react/blob/main/CHANGELOG.md#1900-december-5-2024 - types-react-codemod (preset-19): https://github.com/eps1lon/types-react-codemod </details> <details><summary>Run details</summary> Uptide 0.1.0 · agent disabled (--no-llm) · 0.0k/0.0k tokens · $0.00 · 1 min Uptide commit: `dda5dce4b5ef7b82f961acc1f2ed6851e24f274e` (working-tree changes) Branch: `uptide/react-19.3.0` Tier: verified (a migration pack covers this upgrade) Verified at: 2026-10-10T07:31:14.533Z Verified commit: `50fe0c20079281d45098fa6c14fe8b0f221a5b82` </details> ```` </details> --------- Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
pushed a commit
that referenced
this pull request
Oct 10, 2026
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Minor Changes - [#60](#60) [`7ec02e0`](7ec02e0) Thanks [@lucasbraum](https://github.com/lucasbraum)! - `check` reports one breaking finding when a member the target no longer sees was declared by your own code in an augmentation: a custom matcher on the global `jest.Matchers` in a test setup file, or an interface augmented in a `declare module "x"` block. The finding is anchored at that declaration (the `declare global` block, or the augmented interface), where the one edit is, and the call sites that fail (TS2339, TS2551) are listed under it as evidence, in the terminal, the HTML report and the JSON report. Before, each call site was a breaking finding of its own next to the declaration. The README's line budget no longer counts the generated "Verified packs" table, which grows one row per pack. - [#64](#64) [`86b24d2`](86b24d2) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Plan peer blockers before cloning or installing, suggest explicit compatible peer upgrades, and add repeatable `--allow-peer` with visible package-manager overrides and PR risks. Reject npm lockfiles that disagree with committed manifests before starting a migration. Collect peer blockers across the complete upgrade group and print one complete retry command. Include explicitly allowed peer packages in the old/new lockfile subtree union while retaining strict rejection of unrelated resolution changes. Accept same-content lockfile deduplication and descriptive metadata updates only when outside resolutions stay identical, and disclose accepted housekeeping in the fix report and PR description. - [#63](#63) [`8dcf5fb`](8dcf5fb) Thanks [@lucasbraum](https://github.com/lucasbraum)! - A verified migration pack for Vitest 4 → 5, scored against votingworks/vxsuite and vitorvasc/opentelemetry-ecosystem-explorer at the commit before their own upgrade. It is verified with two public repositories and no false positive among breaking findings (recall 50%). Sites it finds: custom matchers declared on the global `jest.Matchers` or on a one-parameter `Assertion<T>`, `import '@testing-library/jest-dom/vitest'` registrations whose types stop reaching `expect`, the removed `bench` export, bare-directory `coverage.include` and `coverage.exclude` entries, and the removed `vitest/*` entry points (`vitest/coverage`, `vitest/reporters`, `vitest/environments` and `vitest/snapshot` are rewritten). What the compiler cannot see (mock history cleared by default, `testNamePattern` joined with " > ", hoisted `vi.mock` calls, un-awaited assertions, timers, report locations, browser mode) is listed for review. ### Patch Changes - [#62](#62) [`c0f8a70`](c0f8a70) Thanks [@lucasbraum](https://github.com/lucasbraum)! - Preserve partial version ranges such as `^18`, `~18.2`, and `18.x` when fixing packages and their companions, including workspace manifests and pnpm catalogs. Reject unsupported complex ranges before cloning or spending on assisted fixes, with the declaration location and an installed-version replacement suggestion. Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Partial declarations such as
react: "^18"currently fail after cloning and checking the repository. This preserves operators, component counts and trailing wildcards when upgrading the lead and its companions, across workspace manifests and pnpm catalogs. Simple npm aliases keep their real package name during resolution.Unsupported declarations are validated against the committed manifests before the isolated clone. Companion planning uses the existing companion resolver when an unsupported declaration could block the run. Errors name the file, dependency field and original range, suggest a range based on the installed version, and exit 2. The direct fix entry point also validates before creating a branch or spending on assisted fixes.
Includes a patch changeset and signed-off commits.
Validation
reactandreact-domuse^18; both types companions use partial ranges. Workspace, default/named catalog, early refusal, zero clone/check/install/LLM calls, and CLI exit-code coverage.5217bc1: 984 core tests and 352 CLI tests; 15 opt-in network tests skipped in the regular suite. Node 22 also passed the network-enabled local bot PR loop. Lint, build, typecheck and the private-material check passed in both jobs.pnpm smoke 22passed locally in Docker: all assertions across npm, npm workspaces, pnpm, Yarn classic and Yarn Berry. A regression test covers npm workspace symlinks declared as*, which must never be queried in the registry.5217bc1(6m19s / 6m26s). All eight PR checks are green: CI run.TMPDIR=/private/tmp pnpm exec turbo run test --env-mode=looseto avoid an existing/tmpversus/private/tmpassertion mismatch.Synthetic fixture examples
Target
19.3.4:^18^19181918.x19.x^18.x^19.x~18~19~18.2~19.318.2.x19.3.x^18.2^19.3An unsupported workspace declaration with installed React 18.3.1 now fails before cloning:
Public-repository reproduction
Used a local clone of
alanagoyal/alanagoyalat current main5d06422a3565eed930be9f61a3d117e8bff0ab91, Node 24.21.0, dependencies installed with lifecycle scripts disabled. At this ref React and React DOM are already exact18.2.0;@types/reactand@types/react-domstill declare^18.Ran the built CLI's
fix react --no-llm --verbose(no--pr). It passed range rewriting, selected React/React DOM/types 19.3.0 and reached installation after baseline checks. After 57 seconds npm refused an independent peer conflict:A second diagnostic run with
npm_config_legacy_peer_deps=trueconfirmed the manifest edits:That run stopped after 68 seconds at the existing lockfile scope guard: npm changed unrelated records and removed
@tiptap/suggestionandzod. No upgrade was committed. Post-upgrade verification was not reached on the public repository; neither attempt proves a successful React migration. The range error is fixed, but the current repo has separate peer/lockfile blockers. No guard was disabled, no LLM was used, and nothing was pushed or published to that repository or a fork.