Repository navigation
fix(check): cut recursive declarations instead of overflowing the stack - #31
Merged
Merged
Conversation
Fixes #4. pino 10 declares 'declare namespace pino { export { pino as default, pino } }': the namespace exports itself, so walkNamed walked pino, then pino.default, then pino.default.default, without end. Every check of pino 10 (documenso at 80823ede) ended in 'Maximum call stack size exceeded'. The overflowing frames were in TypeScript's printer, but the recursion was ours. Extraction now tracks the declarations on the current walk path. A name that reaches one of them again is emitted, so it still diffs, with the signature 'recursive type <path> (compared by name)', and not walked again. A walk nested deeper than 32 named levels is cut the same way. Only re-entering declarations nests named walks (type literals nest as deep as the source), so the limit also bounds the recursion; an explicit stack is not needed. The diff resolves paths through the cuts on either side: pino 9's nested pino.pino and its stdTimeFunctions are pino 10's pino and pino.stdTimeFunctions, not removals, and a comparison through a cut reads both signatures without the namespace qualifier (pino.Logger and Logger are the same type), with the qualifier rewrite shared with the ESM equivalence. fixtures/deps/recursive-v1 and recursive-v2 (logkit, pino-like: self- and mutually recursive interfaces, namespaces re-exporting each other, the pino 10 self-export) overflowed on main and now extract, diff to exactly their three real changes, and check end to end. A package that still fails, fails alone: the others keep their results. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
logkit v2 now also changes stdTimeFunctions.epochTime's return type (string to number) and the callable's parameter (Options to an incompatible Settings). v2 never walks into logkit.logkit, so both reach it only through the cut; both are reported there, with their real types before and after, in both assignability modes. The cut drops 'logkit.' qualification, never a type. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Lucas Braum <[email protected]>
lucasbraum
added a commit
that referenced
this pull request
Oct 6, 2026
…#32) Follow-up to #31. ## Problem In the regression run for #31, `main` checked `@types/react` right after `@types/node` overflowed the stack in the same process. One `@types/react` change came out with a signature that began with Node's `assert` types (`AssertOptions & { strict?: …`). Run alone, `@types/react` was correct. TypeScript's printer clears its writer only when a print *finishes*. A print that throws, a stack overflow included, leaves its partial text in front of every later print. Uptide shares one printer across all packages. Reproduced in isolation: after a print of `Partial<X>` fails on `X`, printing `Logger` returns `"Partial<Logger"`. ## Fix - **`serialize.ts`:** a print that throws replaces the shared printer before rethrowing, and the transformation result is always disposed. This fixes the exact corruption seen, wherever a print fails. - **`shared-state.ts`:** a small registry. Each module registers how to discard what it shares across packages: - the printer; - the consumer repository's program and checker (`repo.ts`; the per-repository WeakMaps in `compile.ts` and `usages.ts` go with it); - cached detailed surfaces (`usages.ts`); - the zod pack's parsed files. `check` calls `resetSharedState()` after **any** per-package failure, before the next package. A stack overflow can leave a checker mid-resolution too, not just the printer, so everything is discarded. I chose the reset over a fresh worker per package because of cost (below). ### `fix` too `fix` takes one package per run; there is no `fix --group` (`--group` exists on `check` only). But one process can still run several packages: the Action fixes each detected upgrade in turn, then checks the next. Two boundaries now reset: - **`fix()` itself** discards shared state when it fails, before its caller goes on. - **A failed assisted attempt.** `fix` catches it and retries; the state is discarded before the next attempt or site. ### Guard against new caches `shared-state.test.ts` scans `packages/core/src` and fails on any module-level `new Map`, `new WeakMap`, ts-morph `new Project` or `createPrinter(`, unless the file registers with `onReset` or the line is marked `// shared-state: not TS-dependent`. A planted cache (`const programs = new Map<string, ts.Program>()`) is reported by file and line. Current state: - **Now registered:** `compile.ts`'s three WeakMaps of programs and diagnostics, and `usages.ts`'s file index. They were keyed by the repository a reset discards; they're now dropped explicitly. - **Marked:** the workspace-glob cache and the `package.json` cache, which hold no TypeScript state. ## Tests - `serialize.test.ts`: a print that fails halfway leaves the next print clean. On `main` it returns `Partial<Logger`. - `check.test.ts`: `widget` fails mid-print before `logkit`, with concurrency 1 as the CLI's workers run. `logkit`'s report must be byte-identical to `check` on `logkit` alone, ignoring timings and temp paths. On `main` it differs: `logkit`'s `before` signature starts with `Partial<`. - `shared-state.test.ts`: after a reset, the consumer repository gets a fresh program and checker, with the same files. - `fix`, two tests that fail without the wiring (no reset happens): - a `fix` that fails inside the printer, followed in the same process by a `check` of `logkit` that is byte-identical to `logkit` checked alone; - an agent attempt that fails inside the printer: the state is reset, and the retry migrates the site. ## Time cost | | Cost | |---|---| | No failure | none measurable. zod 3.25.76 → 4.6.5 declaration diff (68,483 changes), 4 runs each, interleaved: 54.6–60.3 s on this branch, 56.0–66.6 s on `main`, identical results | | After a failure | one reload of the consumer project: ~4.0 s on documenso's `packages/lib` (1,251 source files; first load 5.6 s), ~0.1 s on storefront | | Fresh worker per package (not chosen) | a full load for **every** package, 5.6 s each on documenso | Tests: core 840 passed, cli 322 passed; `typecheck` and `biome` clean. Changeset: patch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lucas Braum <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
lucasbraum
added a commit
that referenced
this pull request
Oct 6, 2026
…es never truncated (#34) Monorepo fixes for `list`, found on [supabase/supabase](https://github.com/supabase/supabase) at `53a637a` (pnpm, 28 workspaces). Supabase is a public repo, so its real output is pasted below. Builds on #33. ## What changed **1. Names are never truncated.** The name column fits the longest name, up to 45 characters. A longer name gets its own line, and the row continues under it. On a narrow terminal, trailing columns are dropped instead of names being cut, and the same rule applies to `check`, which shares the table code. The HTML report never truncated names. Group headings always keep their target and move the command to the next line when the line is too long. On supabase, `@tanstack/*` previously lost both its target and its command. **2. One row per package.** When workspaces are on different versions, the package still gets one row: `ai 5.0.52, 7.0.59 → 7.0.128 … 2 versions in 2 workspaces`. Usage is counted once across the repo. - **Where the note goes:** the spread note is the last column. If the terminal is too narrow for it, it goes on a dim line under the row so it is never lost. - **More than two versions:** the cell shows the oldest and the newest (`1.6.0 … 4.2.0 → 4.5.0`), and the note gives the count. - **JSON:** each package gains `versions: [{ version, workspaces }]`. `current` is the oldest outdated version, and `change`, `majorGap` and `tier` describe it. `plan` still has one row per installed version, so saved check results keep matching. - **New signal, version drift:** the same package on different majors across workspaces. It ranks below unsupported and above blocking, because aligning the workspaces is a cheap consolidation win. On supabase it flags `next` (15.x and 16.x across 7 workspaces), `@next/*`, `libpg-query` and `@ai-sdk/openai`. - **Signals on a merged row:** a security signal covers the advisories of any installed version, and its fix is the first clean version above all of them. A deprecation is shown when any outdated version is deprecated. **3. `major ×2` → `2 majors behind`** in `list` and `check`, in the terminal and HTML. JSON keeps the numeric `majorGap`. **4. Compilers and bundlers are tooling.** `typescript`, `@swc/core`, `esbuild`, `@babel/core`, `vite` and `webpack` count as tooling even when a script imports them. A major on one of them shows under TOOLING even while the section is collapsed: ``` TOOLING 53 packages, used by scripts and config · --all typescript 6.0.2 → 7.0.2 compiler major: check build and tsconfig ``` For `vite` and `webpack` the reason reads `bundler major: check build config`. **5. PRIORITIES has two tiers.** - **Urgent:** advisories and deprecations. Shows a count, then up to five rows. - **Worth planning:** unsupported, drift, blocking and majors behind. Collapsed to its count until `--all`. JSON gets `priorities[].tier`. The HTML report shows Urgent open and Worth planning in a collapsed `<details>`. **6. Corpus.** The repo had no corpus list, so this PR adds `fixtures/corpus.json`. It lists public repos at pinned commits: supabase at `53a637a359ece4777e699292b3bb83421f1d63ad` for `list`, and documenso at `80823ed` for `check pino` (from #31). **Not requested, fixed along the way:** - A family group whose majors all collapse to the same label printed `→ @supabase/* 2 · @supabase/* 0`. It now prints the majors alone, `→ 2.x · 0.x`, as it also does when the per-package label would run past 64 characters. - `check`'s `major ×9` also reads `9 majors behind`, for consistency with `list`. ## supabase/supabase, before → after (`COLUMNS=120`) PRIORITIES: ``` PRIORITIES most urgent first · advisories checked for 377 packages simple-git dev · 3 advisories (1 critical), needs 4.0.1 (major) npx uptide check simple-git --target [email protected] smol-toml 1 advisory (1 moderate), fixed in 1.9.0 (minor, same major) npx uptide check smol-toml --target [email protected] katex 1 advisory (1 low), fixed in 0.18.2 (minor, same major) npx uptide check katex --target [email protected] jsrsasign deprecated: This package is no longer maintained. npx uptide check jsrsasign lucide-vue-next deprecated: Package deprecated. Please use @lucide/vue instead. npx uptide check lucide-vue-next + 79 more · --all ``` ``` PRIORITIES most urgent first · advisories checked for 377 packages Urgent 10 · advisories, deprecations simple-git dev · 3 advisories (1 critical), needs 4.0.1 (major) npx uptide check simple-git --target [email protected] smol-toml 1 advisory (1 moderate), fixed in 1.9.0 (minor, same major) npx uptide check smol-toml --target [email protected] katex 1 advisory (1 low), fixed in 0.18.2 (minor, same major) npx uptide check katex --target [email protected] jsrsasign deprecated: This package is no longer maintained. npx uptide check jsrsasign lucide-vue-next deprecated: Package deprecated. Please use @lucide/vue instead. npx uptide check lucide-vue-next + 5 more · --all Worth planning 73 · unsupported, drift, blocking, majors behind · --all ``` A group: every installed version was a row, and every name was truncated to 12 characters: ``` ai + @AI-sd… 7 packages → ai 7 · @ai-sdk/amazon-bedrock 5 · @ai-sdk/* 4 · @ai-sdk/mcp 2 @ai-sdk/ama… 5.0.55 → 5.0.106 patch 1 file 1 call @ai-sdk/mcp 2.0.31 → 2.0.67 patch 1 file 1 call @ai-sdk/ope… 2.0.2 → 4.0.84 major ×2 2 files 1 call 3 refs @ai-sdk/ope… 4.0.41 → 4.0.84 patch 2 files 1 call 3 refs @ai-sdk/rea… 4.0.62 → 4.0.131 patch 8 files 2 calls 20 refs ai 5.0.52 → 7.0.128 major ×2 53 files 75 calls 185 refs ai 7.0.59 → 7.0.128 patch 53 files 75 calls 185 refs @tanstack/* 8 packages ``` ``` ai + @ai-sdk/* 5 packages → ai 7 · @ai-sdk/amazon-bedrock 5 · @ai-sdk/* 4 · @ai-sdk/mcp 2 npx uptide check --group ai @ai-sdk/amazon-bedrock 5.0.55 → 5.0.106 patch 1 file 1 call @ai-sdk/mcp 2.0.31 → 2.0.67 patch 1 file 1 call @ai-sdk/openai 2.0.2, 4.0.41 → 4.0.84 2 majors behind 2 files 1 call 2 versions in 2 workspaces @ai-sdk/react 4.0.62 → 4.0.131 patch 8 files 2 calls ai 5.0.52, 7.0.59 → 7.0.128 2 majors behind 53 files 75 calls 2 versions in 2 workspaces @tanstack/* 8 packages → 9.x · 5.x · 3.x · 1.x · 0.x npx uptide check --group tanstack ``` Packages: `next`, `lucide-react`, `openai` and `shiki` each had several rows: ``` PACKAGES next 15.5.25 → 16.3.8 major 1305 files 2279 calls 825 refs lucide-react 0.436.0 → 1.52.0 major 1276 files 3165 calls 667 refs lucide-react 0.511.0 → 1.52.0 major 1276 files 3165 calls 667 refs ... openai 4.104.0 → 7.28.0 major ×3 14 files 8 calls 22 refs openai 5.9.0 → 7.28.0 major ×2 14 files 8 calls 22 refs shiki 1.6.0 → 4.5.0 major ×3 13 files 11 calls 28 refs shiki 3.13.0 → 4.5.0 major 13 files 11 calls 28 refs ``` ``` PACKAGES next 15.5.25, 16.3.6 → 16.3.8 major 1305 files 2279 calls 2 versions in 7 workspaces lucide-react 0.436.0, 0.511.0 → 1.52.0 major 1276 files 3165 calls 2 versions in 11 workspaces sonner 1.5.0 → 2.0.8 major 755 files 1436 calls ... openai 4.104.0, 5.9.0 → 7.28.0 3 majors behind 14 files 8 calls 2 versions in 6 workspaces shiki 1.6.0 … 4.2.0 → 4.5.0 3 majors behind 13 files 11 calls 4 versions in 6 workspaces ``` Totals: 296 → 272 outdated rows (24 duplicate rows merged), 122 → 116 major. <details><summary>Full output, before</summary> ``` uptide list · supabase · pnpm · 12s 296 outdated 122 major 111 minor 63 patch 15 groups 55 tooling PRIORITIES most urgent first · advisories checked for 377 packages simple-git dev · 3 advisories (1 critical), needs 4.0.1 (major) npx uptide check simple-git --target [email protected] smol-toml 1 advisory (1 moderate), fixed in 1.9.0 (minor, same major) npx uptide check smol-toml --target [email protected] katex 1 advisory (1 low), fixed in 0.18.2 (minor, same major) npx uptide check katex --target [email protected] jsrsasign deprecated: This package is no longer maintained. npx uptide check jsrsasign lucide-vue-next deprecated: Package deprecated. Please use @lucide/vue instead. npx uptide check lucide-vue-next + 79 more · --all GROUPS upgrade together @sentry/* 3 packages → 11.x npx uptide check --group sentry @sentry/nex… 10.59.0 → 11.4.0 major 59 files 91 calls 36 refs @sentry/rea… 10.59.0 → 11.4.0 major 5 files 8 calls 50 refs @sentry/tan… 10.59.0 → 11.4.0 major 3 files 2 calls 2 refs ai + @AI-sd… 7 packages → ai 7 · @ai-sdk/amazon-bedrock 5 · @ai-sdk/* 4 · @ai-sdk/mcp 2 @ai-sdk/ama… 5.0.55 → 5.0.106 patch 1 file 1 call @ai-sdk/mcp 2.0.31 → 2.0.67 patch 1 file 1 call @ai-sdk/ope… 2.0.2 → 4.0.84 major ×2 2 files 1 call 3 refs @ai-sdk/ope… 4.0.41 → 4.0.84 patch 2 files 1 call 3 refs @ai-sdk/rea… 4.0.62 → 4.0.131 patch 8 files 2 calls 20 refs ai 5.0.52 → 7.0.128 major ×2 53 files 75 calls 185 refs ai 7.0.59 → 7.0.128 patch 53 files 75 calls 185 refs @tanstack/* 8 packages @tanstack/d… 0.6.1 → 0.8.5 minor 0 files referenced by configuration @tanstack/r… 0.10.7 → 0.10.13 patch 1 file 1 call @tanstack/r… 0.10.0 → 0.13.0 minor 10 files 5 calls 12 refs @tanstack/r… 5.83.0 → 5.104.1 minor 793 files 1106 calls 148 refs @tanstack/r… 5.90.2 → 5.104.1 minor 2 files 2 calls @tanstack/r… 1.167.0 → 1.167.2 patch 1 file 1 call @tanstack/r… 8.21.3 → 9.2.6 major 27 files 39 calls 62 refs @tanstack/r… 3.14.3 → 3.14.13 patch 3 files 3 calls 4 refs react-router + @react-router/* 7 packages → 8.x npx uptide check --group react-router @react-rout… 7.18.4 → 8.4.0 major 3 files 3 calls @react-rout… 7.18.4 → 8.4.0 major 0 files required by @react-router/dev required by @react-router/serve react-router 7.18.2 → 8.4.0 major 18 files 50 calls 11 refs @react-rout… 7.18.4 → 8.4.0 major peer of @react-router/fs-routes @react-rout… 7.18.4 → 8.4.0 major peer of @react-router/dev used by package scripts react 19.2.6 → 19.3.0 minor peer of react-dom, react-router react-dom 19.2.6 → 19.3.0 minor peer of react-router @stripe/* 2 packages → @stripe/stripe-js 10 · @stripe/react-stripe-js 7 npx uptide check --group stripe @stripe/rea… 6.1.0 → 7.0.0 major 9 files 13 calls @stripe/str… 9.1.0 → 10.0.0 major 12 files 6 calls 28 refs @octokit/* 7 packages @octokit/au… 7.1.5 → 8.3.1 major 5 files 6 refs @octokit/co… 6.1.4 → 7.0.8 major 8 files 8 calls @octokit/co… 7.0.6 → 7.0.8 patch 8 files 8 calls @octokit/gr… 8.2.1 → 9.0.5 major 0 files required by @octokit/core @octokit/pl… 4.0.0 → 6.0.0 major ×2 1 file 1 ref @octokit/pl… 8.1.0 → 8.1.1 patch 2 files 2 refs @octokit/re… 21.1.1 → 22.0.1 major 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found @vercel/* 2 packages → @vercel/functions 3 · @vercel/config 0 npx uptide check --group vercel @vercel/con… 0.2.1 → 0.10.0 minor 1 file 6 calls 6 refs @vercel/fun… 2.1.0 → 3.9.11 major 2 files 3 calls @graphql-code… 3 packages → @graphql-codegen/cli 7 · @graphql-codegen/* 6 npx uptide check --group graphql-codegen @graphql-co… 5.0.5 → 7.4.4 major ×2 2 files 2 refs @graphql-co… 4.1.6 → 6.1.1 major ×2 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found @graphql-co… 4.5.0 → 6.1.0 major ×2 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found vitest + @vitest/* 3 packages → 5.x npx uptide check --group vitest vitest 5.0.0 → 5.0.3 patch 865 files 30112 calls 49 refs @vitest/cov… 5.0.0 → 5.0.3 patch peer of vitest @vitest/ui 5.0.0 → 5.0.3 patch peer of vitest @supabase/* 8 packages → @supabase/* 2 · @supabase/* 0 npx uptide check --group supabase @supabase/a… 2.116.0 → 2.117.2 minor 18 files 5 calls 25 refs @supabase/c… 0.9.0 → 0.11.1 minor 3 files 5 calls 6 refs @supabase/m… 0.12.0 → 0.13.0 minor 4 files 2 calls 13 refs @supabase/p… 2.116.0 → 2.117.2 minor 2 files 4 refs @supabase/r… 2.116.0 → 2.117.2 minor 1 file 1 call 2 refs @supabase/s… 0.1.96 → 0.1.97 patch 303 files 516 refs @supabase/s… 0.1.6 → 0.1.8 patch 4 files 7 calls 16 refs @supabase/s… 2.116.0 → 2.117.2 minor 152 files 69 calls 189 refs @testing-li… 2 packages → @testing-library/user-event 14 · @testing-library/dom 10 @testing-li… 10.4.1 → 10.4.2 patch 9 files 59 calls @testing-li… 14.6.1 → 14.6.7 patch 116 files 570 calls 3 refs radix-ui 2 packages → 1.x npx uptide check --group radix-ui @radix-ui/r… 1.1.1 → 1.1.5 patch 1 file 1 call radix-ui 1.4.3 → 1.7.0 minor 68 files 214 calls 419 refs lexical + @lexical/* 8 packages → 0.x npx uptide check --group lexical @lexical/co… 0.51.0 → 0.52.0 minor 1 file 1 ref @lexical/he… 0.51.0 → 0.52.0 minor 1 file 1 call @lexical/li… 0.51.0 → 0.52.0 minor 1 file 1 ref @lexical/li… 0.51.0 → 0.52.0 minor 1 file 2 refs @lexical/ma… 0.51.0 → 0.52.0 minor 3 files 7 calls 1 ref @lexical/re… 0.51.0 → 0.52.0 minor 1 file 11 calls 1 ref @lexical/ri… 0.51.0 → 0.52.0 minor 1 file 2 refs lexical 0.51.0 → 0.52.0 minor 3 files 4 refs @modelconte… 2 packages → @modelcontextprotocol/server 2 · @modelcontextprotocol/sdk 1 @modelconte… 1.29.0 → 1.32.1 minor 2 files 2 calls @modelconte… 2.0.0 → 2.3.1 minor 2 files 4 calls @graphiql/* 3 packages → 0.x npx uptide check --group graphiql @graphiql/r… 0.37.3 → 0.39.1 minor 1 file 1 call 2 refs @graphiql/t… 0.11.3 → 0.12.1 minor 2 files 2 calls 1 ref @graphiql/t… 0.9.1 → 0.12.1 minor 2 files 2 calls 1 ref PACKAGES next 15.5.25 → 16.3.8 major 1305 files 2279 calls 825 refs lucide-react 0.436.0 → 1.52.0 major 1276 files 3165 calls 667 refs lucide-react 0.511.0 → 1.52.0 major 1276 files 3165 calls 667 refs sonner 1.5.0 → 2.0.8 major 755 files 1436 calls 45 refs zod 3.25.76 → 4.6.5 major 325 files 3246 calls 665 refs verified @hookform/r… 3.3.1 → 5.9.1 major ×2 180 files 192 calls framer-moti… 11.18.2 → 14.0.0 major ×3 166 files 518 calls 25 refs nuqs 1.19.1 → 2.10.1 major 155 files 477 calls 112 refs msw 2.11.3 → 3.0.2 major 113 files 569 calls 10 refs next-seo 6.5.0 → 7.3.0 major 66 files 66 calls recharts 2.15.4 → 3.10.1 major 36 files 182 calls 31 refs @heroicons/… 1.0.6 → 2.2.0 major 31 files 35 calls 13 refs date-fns 2.30.0 → 4.4.0 major ×2 22 files 64 calls swiper 12.1.2 → 14.3.0 major ×2 21 files 39 calls 14 refs mdast-util-… 1.3.1 → 2.1.0 major 19 files 35 calls unist-util-… 4.1.2 → 5.1.0 major 18 files 22 calls 3 refs mdast-util-… 2.0.1 → 3.0.0 major 17 files 59 calls 6 refs mdast-util-… 1.5.0 → 2.2.0 major 17 files 44 calls @dnd-kit/so… 8.0.0 → 10.0.0 major ×2 17 files 27 calls 19 refs graphql 16.11.0 → 17.0.2 major 16 files 68 calls 85 refs next-mdx-re… 1.1.7 → 2.1.12 major 14 files 11 calls 6 refs openai 4.104.0 → 7.28.0 major ×3 14 files 8 calls 22 refs openai 5.9.0 → 7.28.0 major ×2 14 files 8 calls 22 refs shiki 1.6.0 → 4.5.0 major ×3 13 files 11 calls 28 refs shiki 3.13.0 → 4.5.0 major 13 files 11 calls 28 refs react-inter… 9.8.2 → 11.0.1 major ×2 12 files 12 calls @hcaptcha/r… 1.12.0 → 2.2.0 major 12 files 11 calls 13 refs next-router… 0.9.13 → 1.0.5 major 11 files 16 calls 13 refs micromark-e… 1.0.1 → 3.0.0 major ×2 10 files 22 calls mdast-util-… 2.0.2 → 3.1.0 major 10 files 18 calls js-yaml 3.15.2 → 5.4.3 major ×2 9 files 9 calls 1 ref micromark-e… 2.0.3 → 3.0.0 major 8 files 9 calls react-error… 4.0.13 → 6.1.6 major ×2 7 files 7 calls 1 ref mdast-util-… 2.1.4 → 3.2.0 major 7 files 36 refs jotai 2.8.1 → 3.0.1 major 6 files 9 calls remark 14.0.3 → 15.0.1 major 6 files 7 calls h3 1.15.11 → 2.0.1 major 5 files 19 calls 2 refs libpg-query 15.2.0 → 18.1.5 major ×3 5 files 14 calls 36 refs libpg-query 17.6.0 → 18.1.5 major 5 files 14 calls 36 refs dotenv 16.3.1 → 18.0.5 major ×2 5 files 5 calls dotenv 16.5.0 → 18.0.5 major ×2 5 files 5 calls react-day-p… 9.11.1 → 10.0.2 major 5 files 1 call 5 refs globby 13.2.2 → 16.2.4 major ×3 4 files 6 calls ejs 3.1.10 → 7.0.1 major ×4 4 files 5 calls unist-util-… 5.1.3 → 6.0.2 major 4 files 4 calls 1 ref react-synta… 15.6.6 → 16.1.1 major 3 files 31 calls 28 refs react-simpl… 4.0.0-beta.6 → 5.0.5 major 3 files 18 calls unist-build… 3.0.0 → 4.0.0 major 3 files 7 calls 2 refs unist-build… 3.0.1 → 4.0.0 major 3 files 7 calls 2 refs @dagrejs/da… 1.0.4 → 3.1.1 major ×2 3 files 6 calls cronstrue 2.50.0 → 3.29.0 major 3 files 4 calls mdast-util-… 3.2.0 → 4.0.0 major 3 files 4 calls typed.js 2.0.16 → 3.0.0 major 3 files 3 calls 2 refs @vueuse/core 14.1.0 → 15.0.0 major 2 files 2 calls eslint 9.37.0 → 10.12.0 major 2 files 2 calls 2 refs graphiql 4.0.2 → 5.4.0 major 2 files 2 calls 3 refs mdast-util-… 6.1.1 → 7.1.0 major 2 files 2 calls use-debounce 7.0.1 → 10.1.1 major ×3 2 files 2 calls rehype-slug 5.1.0 → 6.0.0 major 2 files 2 refs streamdown 1.3.0 → 2.7.0 major 2 files 3 refs rimraf 4.4.1 → 6.1.3 major ×2 1 file 3 calls chalk 5.3.0 → 6.0.1 major 1 file 2 calls mermaid 11.17.2 → 12.1.0 major 1 file 2 calls @vercel/og 0.6.2 → 1.0.3 major 1 file 1 call chokidar 4.0.3 → 5.0.0 major 1 file 1 call cobe 0.6.5 → 2.0.1 major ×2 1 file 1 call cron-parser 4.9.0 → 5.10.1 major 1 file 1 call hast-util-h… 2.0.1 → 3.0.0 major 1 file 1 call mdast-util-… 12.3.0 → 13.2.1 major 1 file 1 call react-dropz… 14.3.8 → 20.1.2 major ×6 1 file 1 call 2 refs react-grid-… 1.4.2 → 2.3.0 major 1 file 1 call 4 refs simple-git 3.36.0 → 4.0.2 major 1 file 1 call 2 refs ts-morph 22.0.0 → 28.0.0 major ×6 1 file 1 call 9 refs typescript 6.0.2 → 7.0.2 major 1 file 1 call react-resiz… 3.0.5 → 4.0.2 major 1 file remark-emoji 3.1.2 → 5.0.2 major ×2 1 file 1 ref vue-router 4.5.1 → 5.3.1 major 1 file 1 ref + 88 minor/patch · --all TOOLING 55 packages, used by scripts and config · --all POSSIBLY UNUSED 9 packages, no usage found by Uptide's scan; verify before removing · --all 17 packages not checked: non-registry source (workspace) · --all Usage is a syntax scan, no type analysis. Generic analysis is the default; verified means a migration pack is available. Next npx uptide check simple-git --target [email protected] ``` </details> <details><summary>Full output, after</summary> ``` uptide list · supabase · pnpm · 10s 272 outdated 116 major 99 minor 57 patch 15 groups 53 tooling PRIORITIES most urgent first · advisories checked for 377 packages Urgent 10 · advisories, deprecations simple-git dev · 3 advisories (1 critical), needs 4.0.1 (major) npx uptide check simple-git --target [email protected] smol-toml 1 advisory (1 moderate), fixed in 1.9.0 (minor, same major) npx uptide check smol-toml --target [email protected] katex 1 advisory (1 low), fixed in 0.18.2 (minor, same major) npx uptide check katex --target [email protected] jsrsasign deprecated: This package is no longer maintained. npx uptide check jsrsasign lucide-vue-next deprecated: Package deprecated. Please use @lucide/vue instead. npx uptide check lucide-vue-next + 5 more · --all Worth planning 73 · unsupported, drift, blocking, majors behind · --all GROUPS upgrade together @sentry/* 3 packages → 11.x npx uptide check --group sentry @sentry/nextjs 10.59.0 → 11.4.0 major 59 files 91 calls @sentry/react 10.59.0 → 11.4.0 major 5 files 8 calls @sentry/tanstackstart-react 10.59.0 → 11.4.0 major 3 files 2 calls ai + @ai-sdk/* 5 packages → ai 7 · @ai-sdk/amazon-bedrock 5 · @ai-sdk/* 4 · @ai-sdk/mcp 2 npx uptide check --group ai @ai-sdk/amazon-bedrock 5.0.55 → 5.0.106 patch 1 file 1 call @ai-sdk/mcp 2.0.31 → 2.0.67 patch 1 file 1 call @ai-sdk/openai 2.0.2, 4.0.41 → 4.0.84 2 majors behind 2 files 1 call 2 versions in 2 workspaces @ai-sdk/react 4.0.62 → 4.0.131 patch 8 files 2 calls ai 5.0.52, 7.0.59 → 7.0.128 2 majors behind 53 files 75 calls 2 versions in 2 workspaces @tanstack/* 8 packages → 9.x · 5.x · 3.x · 1.x · 0.x npx uptide check --group tanstack @tanstack/devtools-vite 0.6.1 → 0.8.5 minor 0 files referenced by configuration @tanstack/react-devtools 0.10.7 → 0.10.13 patch 1 file 1 call @tanstack/react-hotkeys 0.10.0 → 0.13.0 minor 10 files 5 calls @tanstack/react-query 5.83.0 → 5.104.1 minor 793 files 1106 calls @tanstack/react-query-devtools 5.90.2 → 5.104.1 minor 2 files 2 calls @tanstack/react-router-devtools 1.167.0 → 1.167.2 patch 1 file 1 call @tanstack/react-table 8.21.3 → 9.2.6 major 27 files 39 calls @tanstack/react-virtual 3.14.3 → 3.14.13 patch 3 files 3 calls react-router + @react-router/* 7 packages → 8.x npx uptide check --group react-router @react-router/fs-routes 7.18.4 → 8.4.0 major 3 files 3 calls @react-router/node 7.18.4 → 8.4.0 major 0 files required by @react-router/dev required by @react-router/serve react-router 7.18.2 → 8.4.0 major 18 files 50 calls @react-router/dev 7.18.4 → 8.4.0 major peer of @react-router/fs-routes @react-router/serve 7.18.4 → 8.4.0 major peer of @react-router/dev used by package scripts react 19.2.6 → 19.3.0 minor peer of react-dom, react-router react-dom 19.2.6 → 19.3.0 minor peer of react-router @stripe/* 2 packages → @stripe/stripe-js 10 · @stripe/react-stripe-js 7 npx uptide check --group stripe @stripe/react-stripe-js 6.1.0 → 7.0.0 major 9 files 13 calls @stripe/stripe-js 9.1.0 → 10.0.0 major 12 files 6 calls @octokit/* 6 packages → 22.x · 9.x · 8.x · 7.x · 6.x npx uptide check --group octokit @octokit/auth-app 7.1.5 → 8.3.1 major 5 files @octokit/core 6.1.4, 7.0.6 → 7.0.8 major 8 files 8 calls 2 versions in 2 workspaces @octokit/graphql 8.2.1 → 9.0.5 major 0 files required by @octokit/core @octokit/plugin-paginate-graphql 4.0.0 → 6.0.0 2 majors behind 1 file @octokit/plugin-retry 8.1.0 → 8.1.1 patch 2 files @octokit/rest 21.1.1 → 22.0.1 major 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found @vercel/* 2 packages → @vercel/functions 3 · @vercel/config 0 npx uptide check --group vercel @vercel/config 0.2.1 → 0.10.0 minor 1 file 6 calls @vercel/functions 2.1.0 → 3.9.11 major 2 files 3 calls @graphql-codegen/* 3 packages → @graphql-codegen/cli 7 · @graphql-codegen/* 6 npx uptide check --group graphql-codegen @graphql-codegen/cli 5.0.5 → 7.4.4 2 majors behind 2 files @graphql-codegen/typescript 4.1.6 → 6.1.1 2 majors behind 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found @graphql-codegen/typescript-resolvers 4.5.0 → 6.1.0 2 majors behind 0 files no static imports, script/bin usage, configuration references, stylesheet imports or HTML assets found vitest + @vitest/* 3 packages → 5.x npx uptide check --group vitest vitest 5.0.0 → 5.0.3 patch 865 files 30112 calls @vitest/coverage-v8 5.0.0 → 5.0.3 patch peer of vitest @vitest/ui 5.0.0 → 5.0.3 patch peer of vitest @supabase/* 8 packages → 2.x · 0.x npx uptide check --group supabase @supabase/auth-js 2.116.0 → 2.117.2 minor 18 files 5 calls @supabase/config 0.9.0 → 0.11.1 minor 3 files 5 calls @supabase/mcp-server-supabase 0.12.0 → 0.13.0 minor 4 files 2 calls @supabase/postgrest-js 2.116.0 → 2.117.2 minor 2 files @supabase/realtime-js 2.116.0 → 2.117.2 minor 1 file 1 call @supabase/shared-types 0.1.96 → 0.1.97 patch 303 files @supabase/sql-to-rest 0.1.6 → 0.1.8 patch 4 files 7 calls @supabase/supabase-js 2.116.0 → 2.117.2 minor 152 files 69 calls @testing-library/* 2 packages → @testing-library/user-event 14 · @testing-library/dom 10 npx uptide check --group testing-library @testing-library/dom 10.4.1 → 10.4.2 patch 9 files 59 calls @testing-library/user-event 14.6.1 → 14.6.7 patch 116 files 570 calls radix-ui 2 packages → 1.x npx uptide check --group radix-ui @radix-ui/react-use-escape-keydown 1.1.1 → 1.1.5 patch 1 file 1 call radix-ui 1.4.3 → 1.7.0 minor 68 files 214 calls lexical + @lexical/* 8 packages → 0.x npx uptide check --group lexical @lexical/code 0.51.0 → 0.52.0 minor 1 file @lexical/headless 0.51.0 → 0.52.0 minor 1 file 1 call @lexical/link 0.51.0 → 0.52.0 minor 1 file @lexical/list 0.51.0 → 0.52.0 minor 1 file @lexical/markdown 0.51.0 → 0.52.0 minor 3 files 7 calls @lexical/react 0.51.0 → 0.52.0 minor 1 file 11 calls @lexical/rich-text 0.51.0 → 0.52.0 minor 1 file lexical 0.51.0 → 0.52.0 minor 3 files @modelcontextprotocol/* 2 packages → @modelcontextprotocol/server 2 · @modelcontextprotocol/sdk 1 npx uptide check --group modelcontextprotocol @modelcontextprotocol/sdk 1.29.0 → 1.32.1 minor 2 files 2 calls @modelcontextprotocol/server 2.0.0 → 2.3.1 minor 2 files 4 calls @graphiql/* 2 packages → 0.x npx uptide check --group graphiql @graphiql/react 0.37.3 → 0.39.1 minor 1 file 1 call @graphiql/toolkit 0.9.1, 0.11.3 → 0.12.1 minor 2 files 2 calls 2 versions in 2 workspaces PACKAGES next 15.5.25, 16.3.6 → 16.3.8 major 1305 files 2279 calls 2 versions in 7 workspaces lucide-react 0.436.0, 0.511.0 → 1.52.0 major 1276 files 3165 calls 2 versions in 11 workspaces sonner 1.5.0 → 2.0.8 major 755 files 1436 calls zod 3.25.76 → 4.6.5 major 325 files 3246 calls @hookform/resolvers 3.3.1 → 5.9.1 2 majors behind 180 files 192 calls framer-motion 11.18.2 → 14.0.0 3 majors behind 166 files 518 calls nuqs 1.19.1 … 2.8.1 → 2.10.1 major 155 files 477 calls 3 versions in 3 workspaces msw 2.11.3 → 3.0.2 major 113 files 569 calls next-seo 6.5.0 → 7.3.0 major 66 files 66 calls recharts 2.15.4 → 3.10.1 major 36 files 182 calls @heroicons/react 1.0.6, 2.1.3 → 2.2.0 major 31 files 35 calls 2 versions in 2 workspaces date-fns 2.30.0 → 4.4.0 2 majors behind 22 files 64 calls swiper 12.1.2 → 14.3.0 2 majors behind 21 files 39 calls mdast-util-from-markdown 1.3.1, 2.0.2 → 2.1.0 major 19 files 35 calls 2 versions in 4 workspaces unist-util-visit 4.1.2, 5.0.0 → 5.1.0 major 18 files 22 calls 3 versions in 7 workspaces mdast-util-mdx 2.0.1 → 3.0.0 major 17 files 59 calls mdast-util-to-markdown 1.5.0 → 2.2.0 major 17 files 44 calls @dnd-kit/sortable 8.0.0 → 10.0.0 2 majors behind 17 files 27 calls graphql 16.11.0 → 17.0.2 major 16 files 68 calls next-mdx-remote-client 1.1.7 → 2.1.12 major 14 files 11 calls openai 4.104.0, 5.9.0 → 7.28.0 3 majors behind 14 files 8 calls 2 versions in 6 workspaces shiki 1.6.0 … 4.2.0 → 4.5.0 3 majors behind 13 files 11 calls 4 versions in 6 workspaces react-intersection-observer 9.8.2 → 11.0.1 2 majors behind 12 files 12 calls @hcaptcha/react-hcaptcha 1.12.0 → 2.2.0 major 12 files 11 calls next-router-mock 0.9.13 → 1.0.5 major 11 files 16 calls micromark-extension-mdxjs 1.0.1 → 3.0.0 2 majors behind 10 files 22 calls mdast-util-gfm 2.0.2 → 3.1.0 major 10 files 18 calls js-yaml 3.15.2 → 5.4.3 2 majors behind 9 files 9 calls micromark-extension-gfm 2.0.3 → 3.0.0 major 8 files 9 calls react-error-boundary 4.0.13 → 6.1.6 2 majors behind 7 files 7 calls mdast-util-mdx-jsx 2.1.4 → 3.2.0 major 7 files jotai 2.8.1 → 3.0.1 major 6 files 9 calls remark 14.0.3 → 15.0.1 major 6 files 7 calls 2 versions in 5 workspaces h3 1.15.11 → 2.0.1 major 5 files 19 calls libpg-query 15.2.0, 17.6.0 → 18.1.5 3 majors behind 5 files 14 calls 2 versions in 3 workspaces dotenv 16.3.1, 16.5.0 → 18.0.5 2 majors behind 5 files 5 calls 2 versions in 3 workspaces react-day-picker 9.11.1 → 10.0.2 major 5 files 1 call globby 13.2.2 → 16.2.4 3 majors behind 4 files 6 calls ejs 3.1.10 → 7.0.1 4 majors behind 4 files 5 calls unist-util-visit-parents 5.1.3 → 6.0.2 major 4 files 4 calls react-syntax-highlighter 15.6.6 → 16.1.1 major 3 files 31 calls react-simple-maps 4.0.0-beta.6 → 5.0.5 major 3 files 18 calls unist-builder 3.0.0, 3.0.1 → 4.0.0 major 3 files 7 calls 2 versions in 2 workspaces @dagrejs/dagre 1.0.4 → 3.1.1 2 majors behind 3 files 6 calls cronstrue 2.50.0 → 3.29.0 major 3 files 4 calls mdast-util-to-string 3.2.0 → 4.0.0 major 3 files 4 calls typed.js 2.0.16 → 3.0.0 major 3 files 3 calls @vueuse/core 14.1.0 → 15.0.0 major 2 files 2 calls eslint 9.37.0 → 10.12.0 major 2 files 2 calls graphiql 4.0.2, 5.2.2 → 5.4.0 major 2 files 2 calls 2 versions in 2 workspaces mdast-util-toc 6.1.1 → 7.1.0 major 2 files 2 calls use-debounce 7.0.1 → 10.1.1 3 majors behind 2 files 2 calls rehype-slug 5.1.0 → 6.0.0 major 2 files 2 versions in 5 workspaces streamdown 1.3.0 → 2.7.0 major 2 files rimraf 4.4.1, 6.0.1 → 6.1.3 2 majors behind 1 file 3 calls 2 versions in 3 workspaces chalk 5.3.0 → 6.0.1 major 1 file 2 calls mermaid 11.17.2 → 12.1.0 major 1 file 2 calls @vercel/og 0.6.2 → 1.0.3 major 1 file 1 call chokidar 4.0.3 → 5.0.0 major 1 file 1 call cobe 0.6.5 → 2.0.1 2 majors behind 1 file 1 call cron-parser 4.9.0 → 5.10.1 major 1 file 1 call hast-util-has-property 2.0.1 → 3.0.0 major 1 file 1 call mdast-util-to-hast 12.3.0 → 13.2.1 major 1 file 1 call react-dropzone 14.3.8 → 20.1.2 6 majors behind 1 file 1 call react-grid-layout 1.4.2 → 2.3.0 major 1 file 1 call simple-git 3.36.0 → 4.0.2 major 1 file 1 call ts-morph 22.0.0 → 28.0.0 6 majors behind 1 file 1 call react-resizable 3.0.5 → 4.0.2 major 1 file remark-emoji 3.1.2 → 5.0.2 2 majors behind 1 file vue-router 4.5.1 → 5.3.1 major 1 file + 77 minor/patch · --all TOOLING 53 packages, used by scripts and config · --all typescript 6.0.2 → 7.0.2 major 1 file 1 call compiler major: check build and tsconfig @babel/core 7.29.7 → 8.0.6 major 0 files compiler major: check build and tsconfig POSSIBLY UNUSED 9 packages, no usage found by Uptide's scan; verify before removing · --all 17 packages not checked: non-registry source (workspace) · --all Usage is a syntax scan, no type analysis. Generic analysis is the default; verified means a migration pack is available. Next npx uptide check simple-git --target [email protected] ``` </details> ## Checks - New tests: - **core:** a test with `ai` at 5.x and 7.x across 3 workspaces and `typescript` imported by a codegen script, plus unit tests for drift, tiers and security across several installed versions. - **cli:** tests for the multi-version row and its narrow fallback, long-name wrapping, tiers with and without `--all`, a build-tool major under collapsed TOOLING, and group labels that collide. - Snapshots updated after review (nest list design, check summary, HTML render); the smoke checker now expects `8 majors behind`. - `pnpm test`: core 849 passed, cli 327 passed. Typecheck and biome are clean. - The HTML report on supabase renders the tiers and multi-version rows. - Changeset: `uptide` **minor**, because the JSON shape changes (one entry per package). 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Lucas Braum <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
7 tasks done
lucasbraum
added a commit
that referenced
this pull request
Oct 7, 2026
…t a default's ` = ` (#44) ## What and why **Fixes:** `check` (and `diffPackage`) died with `Manipulation error: A syntax error was inserted.` on `i18next` 23 → 26 and `type-fest` 4 → 5, so those upgrades could not be analyzed at all. It was found while ranking `packs/queue.json` (#43). No issue was filed. **Root cause.** Both packages contain the same construct: a type alias that changed between versions and whose type parameters have defaults. The compat program in `packages/core/src/adapters/typescript/compat.ts` declares each changed alias's old and new body as `type __a_N<params> = body` and adds it with `addStatements`. `bodyFor` (case `'type'`) took the body from the first `' = '` in the signature. With a default, that `' = '` sits inside the type-parameter list, so the generated alias repeated the tail of its own parameter list: - type-fest: `type __a_1<Array_ extends readonly unknown[], Start extends number = never, End extends number = never> = never, End extends number = never> = ...` - i18next: `type __a_0<TOptions = object> = object> = i18nextMod.BackendModule<TOptions>;` ts-morph throws only when the broken alias's body contains a template literal type: type-fest's `CamelCase<Type, Options extends CamelCaseOptions = {}>`, i18next's `TFunctionReturn<…, ActualNS extends Namespace = NsByTOptions<Ns, TOpt>, ActualKey = KeyWithContext<Key, TOpt>>`. Without one, the broken alias didn't crash. It compiled to an error type and its comparison was silently lost. That second effect is fixed too. The recursion cut from #31 and the shared-state reset from #32 are not involved; the mis-split predates both. **Fix** (`compat.ts` only, no try/catch around it): a new `aliasBody()` finds the `>` that closes the type-parameter list and takes the alias's own `' = '` after it. The bracket-depth scan is shared with `headerTypeParams` and `countParams`, and it now ignores the `>` of `=>` and text inside string and template literals. The old scanners miscounted a `=>` inside a parameter's constraint or default. ## How it was verified - Reproduced with `diffPackage` before the fix: `type-fest ERROR Manipulation error: A syntax error was inserted.` (at `index.d.ts:233`) and `i18next ERROR …` (at `index.d.mts:64`). After: type-fest 4.41.0 → 5.10.0 gives 194 changes, and i18next 23.16.8 → 26.4.2 gives 115. - Two regression fixtures, no network, following the `recursion.test.ts` / `fixtures/deps/*-vN` convention. Both fail on main's `compat.ts` with the manipulation error and pass now: - `fixtures/deps/slice-v1`/`-v2` model type-fest: a re-exporting entry, `CamelCase<Type, Options extends CamelCaseOptions = {}>` over a template literal, and `Slice<Array_, Start extends number = never, End extends number = never>`. Result: `type breaking CamelCase` and `widened additive Slice`. - `fixtures/deps/backend-v1`/`-v2` model i18next: aliases over a namespace import, `BackendModule<TOptions = object>` → `<Options = object>`, and a `Lookup<…>` with defaulted parameters over a template literal. Result: `type breaking Lookup`. The checker finds `BackendModule`'s parameter rename equivalent. - `pnpm lint` (601 files, no fixes), `pnpm typecheck` (3/3), `pnpm test` (uptide 345/345; core 876 passed, 15 skipped, the existing env-gated ones). - Pack tests are unchanged. Each line is predicted/expected/false positives/false negatives, identical to main: | Pack | Repository | Result | | --- | --- | --- | | zod (`PASS zod: verified`) | storefront | 38/38/0/0 | | | AwesomeIntune | 12/15/0/3 | | | PATH | 39/51/0/12 | | | band-sdk | 29/37/0/8 | | stripe (`PASS stripe: verified`) | storefront | 4/4/0/0 | | | unkey | 13/15/0/2 | | | saas-starter | 1/1/0/0 | | ai (`PASS ai: verified`) | chatbot | 27/27/0/0 | | | morphic | 20/34/0/14 | ## Checklist - [x] Tests for the change (a bug fix starts with a failing test): `alias-defaults.test.ts`, both cases failing before the fix - [x] `pnpm lint && pnpm typecheck && pnpm test` pass - [x] README and docs updated if behavior changed: no doc describes this internal step - [x] Changeset added (`.changeset/alias-default-params.md`, patch) - [x] No new dependency - [x] No private code, names or paths in fixtures, tests or docs: the fixtures are minimal models, not copies of the packages - [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still hold 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01B2T8GmEVnZwfNrugajEMqi --- _Generated by [Claude Code](https://claude.ai/code/session_01B2T8GmEVnZwfNrugajEMqi)_ Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]>
lucasbraum
added a commit
that referenced
this pull request
Oct 15, 2026
## Pack `openai` `>=4 <5` → `>=7 <8` (queue entry `openai`). **Candidate, not verified.** Kept as a draft: the gate fails on two engine gaps found while scoring (below), not on the pack's rules. The queue entry is set to `blocked` with that reason. One pack covers 4 → 7, not three. 5.0 carries nearly all API changes (MIGRATION.md). 6.0's only breaking entry is one type widening; 7.0's only breaking entry is the Node 22 floor. 5.12.1 (a minor) made tool calls a function | custom union. Nothing later reverts 5.0, and every public upgrade found jumps 4.x → 7.x directly. Evidence: `packages/core/src/packs/openai/RESEARCH.md`, "One pack, not three". ## Sources Pinned at v7.32.0, read 2026-10-14 (all in `meta.sources`): - [MIGRATION.md v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md), compared with its v5.0.0, v6.0.0 and v7.0.0 copies - [CHANGELOG.md v7.32.0](https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md), every entry from 4.104.0 to 7.32.0 - Release notes for [5.12.1](https://github.com/openai/openai-node/releases/tag/v5.12.1), [6.0.0](https://github.com/openai/openai-node/releases/tag/v6.0.0) and [7.0.0](https://github.com/openai/openai-node/releases/tag/v7.0.0) - The published `package.json` and `.d.ts` of 4.104.0, 5.0.0, 5.11.0, 5.12.0, 5.12.1, 6.0.0, 6.49.0, 7.0.0 and 7.32.0 Each change is classified as mechanical, assisted, behavior note, or not compiler-visible in RESEARCH.md. ## Rules and behavior notes Rules: - `named-path-params` (M): `runs.retrieve(threadId, runId)` → `runs.retrieve(runId, { thread_id })` for 28 methods, which includes 3 the guide's list omits (`runs.poll`, `submitToolOutputsAndPoll`, `submitToolOutputsStream`; taken from the 7.x `.d.ts`). It rewrites only inert arguments and an unambiguous third argument; anything else goes to the agent. It also has a syntactic detect, so clients typed `any` are found. - `delete-method` (M): `.del()` → `.delete()`. A bare `files.del` / `models.del` is detected only on a known client binding. - `beta-chat` (M): `beta.chat.completions.parse|stream|runTools` → `chat.completions.*`. - `runner-renames` (M): `functionCall*` events and `finalFunctionCall*()` → `functionToolCall*`. - `removed-modules` (M/A): deletes a side-effect `openai/shims/*` import; moves beta chat types to `openai/resources/chat/completions` when every imported name exists there; `openai/src` → `openai`. Everything else (`openai/core`, deeper `src` paths) goes to the agent. - `core-paths` (M, deprecated): `openai/error|pagination|resource|streaming|uploads` → `openai/core/*`. - `request-options` (M): `list({ headers })` → `list({}, { headers })`. It is detected syntactically because 7.x types those keys `?: never`, so the compiler message doesn't name them. - `http-agent` (A): the agent picks one of `undici` ProxyAgent, `undici` Agent or a custom fetch, and the choice goes to Decisions for you. - `file-from-path` (A): the agent picks `fs.createReadStream` or `toFile(…, name)`, and the choice goes to Decisions for you. - `run-functions`, `page-helpers`, `page-classes`, `removed-exports`, `tool-call-union` (5.12.1), `function-output-union` (6.0): all assisted (A). Behavior notes: - `error-headers`, `web-response`, `encoded-path-params`: reported as findings. Each has a syntactic detect for what the compiler can't see through `any`/`unknown`: - `catch (e) { e.headers['retry-after'] }` - `res.body.pipe(...)` after `asResponse()` - `encodeURIComponent(id)` passed to an SDK method - `platform-minimums`, `zod-helpers`, `builtin-fetch`, `global-types`, `client-subclass`: reported as decisions, each shown only with evidence from the repository (`applies()`). The evidence covers Node/TypeScript pins, zod below the `^3.25 || ^4` peer, `openai/helpers/zod` importers, proxy agents and global dispatchers, tsconfig `lib` without DOM, and `extends OpenAI`. - `also-review`: a decision pointing to the guide. Pack settings: - `requiresBuild: true`: 7.x exports explicit subpaths only, where 4.x exported `./*`. A deep import that `moduleResolution: node` resolves from disk can therefore fail in Node or a bundler. - No release group: openai-node publishes only `openai`, and `@openai/agents` is on its own 0.x line. ## Ground-truth repositories All are public, pinned at the parent of a merged upgrade, and installed with scripts off. They were drafted with `pnpm packs:truth` (with `--also` for what the upgrade moved because of openai) and assigned by hand **before scoring**, then left unchanged. | Repository | Parent | Upgrade | Versions | Expected | | --- | --- | --- | --- | --- | | zeikar/charivo | `b9a476d9` | [`ef509fde`+`67ae240f`](zeikar/charivo@b9a476d...67ae240) | 4.104.0 → 7.10.0 | 3 `tool-call-union` | | openai/openai-guardrails-js | `6c13ba08` | [#122](openai/openai-guardrails-js#122) | 4.104.0 → 7.9.0 (+ `@openai/agents` 0.17.2, zod 4.5.4) | 11 `generic` | | wardby/wardby | `d46ec64d` | [#231](wardby/wardby#231) | 4.104.0 → 7.30.0 | 2 `generic` | | csnyder256/ux-struggle-detector | `b7308489` | [#11](csnyder256/ux-struggle-detector#11) | 4.104.0 → 7.23.0 | 2 `generic` | | grantsingleton/batch-ai | `05c7e9f1` | [#14](grantsingleton/batch-ai#14) | 4.83.0 → 7.4.0 (+ zod 4.4.3) | 2 `generic` | | digitalchokro/askchokro | `047fc448` | [#31](digitalchokro/askchokro#31) | 4.104.0 → 7.4.0 | 0 | | microsoft/prompty (`runtime/typescript`) | `e878b6b7` | [#527](microsoft/prompty#527) | 4.104.0 → 7.10.0 | 0 | I found these by web search and by mining the npm registry for packages whose published manifests moved `openai ^4` → `^7`. The screened-out candidates and the reason for each are listed in RESEARCH.md. ### Results | | Precision | Recall | TP | FP | FN | | --- | ---: | ---: | ---: | ---: | ---: | | **Breaking** | **42.86%** | **15%** | 3 | 4 | 17 | | Overall | 5% | 15% | 3 | 56 | 17 | | `tool-call-union` | 100% | 33% | 1 | 0 | 2 | The pack's own rules and detectors add **no false positive** in any of the seven repositories. Every false positive comes from `check`'s generic findings: - **4 breaking:** guardrails `examples/…multiturn_with_prompt_injection_detection.ts:331, 413, 428, 430`. These are real TS2345/TS2769 errors at 7.9.0. But `examples/` is outside the repository's only tsconfig, so the upgrade didn't touch it and the tsconfig-scoped truth doesn't list it. They stay false positives. - **52 non-breaking:** prompty. Its workspace packages import an unbuilt `@prompty/core`, so `check` skips the compile and lists type-diff sites as `unverified`. Misses: - charivo `:119`: found, but as `generic`. The compiler message (`Property 'name' does not exist on type '{}'`) names nothing of openai, so the rule does not claim it. - charivo `:135`: a knock-on parameter change with no diagnostic. - guardrails `client.ts` ×10: a client-subclass rework for `withOptions()` cloning with no compiler error. The `client-subclass` decision names this file, but decisions aren't scored. - wardby ×2, batch-ai ×2: optional type cleanups. - ux-struggle-detector ×2: a request-parameter change (`max_tokens` → `max_completion_tokens`), which the pack never makes by design. ### What the engine could not express (why this is a candidate) 1. **Companion planning.** `check/companions.ts` moves packages that depend or peer on the lead, but never the lead's own peers or a dependent the upgrade moved. batch-ai keeps zod 3.24.2 even though openai 7 peers on `zod ^3.25 || ^4.0`. guardrails' `@openai/agents` and zod are left behind too. Both repos therefore fail `with`. 2. **Compile scope.** `check` compiles importers outside every tsconfig, while `packs:truth` compiles tsconfigs only. That mismatch is the source of all 4 breaking false positives above. 3. `applies()` only sees the declared inventory, so the pack declares source globs to find helper imports and subclasses. 4. With `--no-llm`, an assisted site that wasn't rewritten is labelled in the PR body by its symbol path rather than its rule. The agent's task does use the rule. With 1 and 2 fixed and the same truth, the breaking predictions left would be the three true positives; `pack test --write` then needs a rerun. **CI:** the Packs workflow runs `pack test` and will fail on this PR for the reasons above. It is a draft until the engine changes land. ## `uptide pack test` output <details><summary>Full output of <code>pnpm uptide pack test openai --offline --write</code> (summary inline)</summary> ``` checking openai 4.104.0 → 7.10.0 in zeikar/charivo@b9a476d9acb5 checking openai 4.104.0 → 7.9.0 in openai/openai-guardrails-js@6c13ba08ab02 checking openai 4.104.0 → 7.30.0 in wardby/wardby@d46ec64dc0be checking openai 4.104.0 → 7.23.0 in csnyder256/ux-struggle-detector@b73084896208 checking openai 4.83.0 → 7.4.0 in grantsingleton/batch-ai@05c7e9f132b3 checking openai 4.104.0 → 7.4.0 in digitalchokro/askchokro@047fc4485538 checking openai 4.104.0 → 7.10.0 in microsoft/prompty@e878b6b7789f uptide pack test openai · candidate fixtures 6 cases, 37 sites · pass ground truth zeikar/charivo@b9a476d9acb5 openai 4.104.0 → 7.10.0 predicted 2, expected 3, false positives 0, false negatives 1 openai/openai-guardrails-js@6c13ba08ab02 openai 4.104.0 → 7.9.0 predicted 5, expected 11, false positives 4, false negatives 10 ✗ @openai/agents: the upgrade moved it to 0.17.2, check leaves it ✗ zod: the upgrade moved it to 4.5.4, check leaves it wardby/wardby@d46ec64dc0be openai 4.104.0 → 7.30.0 predicted 0, expected 2, false positives 0, false negatives 2 csnyder256/ux-struggle-detector@b73084896208 openai 4.104.0 → 7.23.0 predicted 0, expected 2, false positives 0, false negatives 2 grantsingleton/batch-ai@05c7e9f132b3 openai 4.83.0 → 7.4.0 predicted 0, expected 2, false positives 0, false negatives 2 ✗ zod: the upgrade moved it to 4.4.3, check leaves it digitalchokro/askchokro@047fc4485538 openai 4.104.0 → 7.4.0 predicted 0, expected 0, false positives 0, false negatives 0 microsoft/prompty@e878b6b7789f openai 4.104.0 → 7.10.0 predicted 52, expected 0, false positives 52, false negatives 0 rule precision recall tp fp fn generic 2% 6% 1 57 16 tool-call-union 100% 33% 1 0 2 overall (sites) 5% 15% 3 56 17 breaking (sites) 43% 15% 3 4 17 false positives (56) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:331 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:413 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:428 generic (breaking) openai/openai-guardrails-js@6c13ba08ab02 examples/basic/multiturn_with_prompt_injection_detection.ts:430 generic (breaking) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:58 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:71 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:73 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:91 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:92 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:103 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:104 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:116 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:117 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:134 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:138 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:142 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-executor.ts:143 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:75 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:83 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:85 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:201 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:212 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/azure-models.ts:213 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:95 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:108 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:110 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:128 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:129 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:140 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:141 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:153 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:154 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:171 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:176 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:193 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/src/executor.ts:207 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/tests/integration.test.ts:95 generic (unverified) microsoft/prompty@e878b6b7789f packages/foundry/tests/integration.test.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:64 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:77 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:79 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:99 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:111 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:112 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:124 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:125 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:218 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/executor.ts:222 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:71 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:100 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/src/models.ts:102 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:125 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:126 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:340 generic (unverified) microsoft/prompty@e878b6b7789f packages/openai/tests/integration.test.ts:341 generic (unverified) false negatives (17) zeikar/charivo@b9a476d9acb5 packages/llm/src/openai-tool-format.ts:135 tool-call-union openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:9 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:31 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:44 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:51 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:81 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:121 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:134 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:141 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:171 generic openai/openai-guardrails-js@6c13ba08ab02 src/client.ts:214 generic wardby/wardby@d46ec64dc0be src/providers/llm/openai.ts:107 generic wardby/wardby@d46ec64dc0be src/providers/llm/openai.ts:188 generic csnyder256/ux-struggle-detector@b73084896208 src/lib/providers/openai.ts:24 generic csnyder256/ux-struggle-detector@b73084896208 src/lib/providers/openai.ts:66 generic grantsingleton/batch-ai@05c7e9f132b3 src/index.ts:32 generic grantsingleton/batch-ai@05c7e9f132b3 src/index.ts:35 generic reported under another rule (1) zeikar/charivo@b9a476d9acb5 packages/llm/src/openai-tool-format.ts:119 generic, expected tool-call-union FAIL openai: 4 false positives among breaking findings ``` </details> ## Smoke test (not ground truth) I ran `uptide fix openai --no-llm --keep-temp` locally on [uptide-test/alanagoyal](https://github.com/uptide-test/alanagoyal), upgrading openai 4.104.0 → 7.33.0. - **The pack was forced active.** Only verified packs are active, so I edited this pack's `verification.json` locally for the run. The edit was never committed and was restored right after. - **No LLM key** was available, so all 5 compiler errors stay manual. They are the 5.12.1 tool-call union (`tc.function.*`), which `tool-call-union` claims. - **Decisions:** Node 24.x and TypeScript ^5 already meet the floor, so only the general review line appears. - **Nothing was pushed or published.** The stored PR body: <details><summary>PR body produced by <code>uptide fix openai</code></summary> ````markdown ## Upgrade openai 4.104.0 → 7.33.0 **Review required before merging.** The code was migrated to openai 7. New type errors remain. Assisted fixes disabled (--no-llm). | | | |---|---| | **Verified by** | ✅ the openai migration pack · ❌ type-check · ❌ build · ✅ tests (1 run) | | **Risk** | High: manual sites left; unverified sites | | **Changes** | 5 sites · 2 changed files · 0 auto-fixed · 0 fixed by the agent (LLM) · 5 manual | | **Types** | ❌ the upgrade broke 5 · Uptide left 5 | | **Behavior** |⚠️ not checked | | **Tests** | ✅ 1 workspace passed · the `test` script of the repository | <details><summary>Moved with the upgraded packages · 37 transitive changes</summary> Inside the upgraded packages’ own dependency subtrees; every other resolution is unchanged. - `openai` 4.104.0 → 7.33.0 removed @types/node 18.19.130; removed @types/node 20.11.24; removed @types/node-fetch 2.6.13; removed abort-controller 3.0.0; removed agentkeepalive 4.6.0; removed asynckit 0.4.0; removed call-bind-apply-helpers 1.0.2; removed combined-stream 1.0.8; removed delayed-stream 1.0.0; removed dunder-proto 1.0.1; removed es-define-property 1.0.1; removed es-errors 1.3.0; removed es-object-atoms 1.1.1; removed es-set-tostringtag 2.1.0; removed event-target-shim 5.0.1; removed form-data 4.0.6; removed form-data-encoder 1.7.2; removed formdata-node 4.4.1; removed function-bind 1.1.2; removed get-intrinsic 1.3.0; removed get-proto 1.0.1; removed gopd 1.2.0; removed has-symbols 1.1.0; removed has-tostringtag 1.0.2; removed hasown 2.0.4; removed humanize-ms 1.2.1; removed math-intrinsics 1.1.0; removed mime-db 1.52.0; removed mime-types 2.1.35; removed ms 2.1.3; removed node-domexception 1.0.0; removed node-fetch 2.7.0; removed tr46 0.0.3; removed undici-types 5.26.5; removed web-streams-polyfill 4.0.0-beta.3; removed webidl-conversions 3.0.1; removed whatwg-url 5.0.0. </details> ### What changed **1. OpenAI.ChatCompletionMessageToolCall#function** · 5 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. - `app/api/chat/route.ts` (3) - `evals/chat.eval.ts` (2) 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> ### Worth a look - Manual: `route.ts:321` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `route.ts:318` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `route.ts:317` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `chat.eval.ts:194` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Manual: `chat.eval.ts:192` — no mechanical rule for this reported site; assisted fixes disabled (--no-llm), left manual. - Resolve 5 new type errors before merging (see verification details). ### Decisions for you - Also review the [openai migration guide](https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md) for the 5.0 changes the compiler cannot see in this repository (pagination internals, CommonJS resource classes), and the 6.0 and 7.0 changelog entries. <details><summary>Verification details</summary> Type errors: baseline 0; target 5; after 5; 5 new. Verification: FAIL. Build after the bump in `.`: `next build` — failed | Workspace | Baseline tests | Target tests | |---|---|---| | . | passed | passed | - `.`: the `test` script of the repository — `node --import tsx --test tests/*.test.ts` **Remaining errors** - app/api/chat/route.ts:317 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - app/api/chat/route.ts:318 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - app/api/chat/route.ts:321 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - evals/chat.eval.ts:192 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. - evals/chat.eval.ts:194 TS2339: Property 'function' does not exist on type 'ChatCompletionMessageToolCall'. Property 'function' does not exist on type 'ChatCompletionMessageCustomToolCall'. **Tests: .** ```text TAP version 13 # Subtest: declares the complete mobile support matrix explicitly ok 1 - declares the complete mobile support matrix explicitly --- (repeated 176 times) duration_ms: 3.231196 type: 'test' (repeated 175 times) ... (repeated 176 times) # Subtest: sends every unsupported mobile app to Notes ok 2 - sends every unsupported mobile app to Notes duration_ms: 0.964052 … (test output truncated here; all tests passed) ``` **Run notes** - `APIError.headers` is a Web `Headers` in openai 5: `error.headers[name]` is undefined; read `error.headers.get(name)` - `asResponse()`/`withResponse()` return a Web `Response` in openai 5: node-fetch members (`body.pipe`, `headers.raw()`, `buffer()`) are gone - openai 5 URI-encodes path parameters itself: an id passed through `encodeURIComponent` is encoded twice - openai-node migration guide, v7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/MIGRATION.md - openai-node migration guide as released with 5.0.0: https://github.com/openai/openai-node/blob/v5.0.0/MIGRATION.md - openai-node changelog, 5.0.0 to 7.32.0 (read 2026-10-14): https://github.com/openai/openai-node/blob/v7.32.0/CHANGELOG.md - openai 5.12.1: tool calls become a function | custom union: https://github.com/openai/openai-node/releases/tag/v5.12.1 - openai 6.0.0: function call outputs widen: https://github.com/openai/openai-node/releases/tag/v6.0.0 - openai 7.0.0: Node.js 22 required: https://github.com/openai/openai-node/releases/tag/v7.0.0 </details> <details><summary>Run details</summary> Uptide 0.12.1 · agent disabled (--no-llm) · 0.0k/0.0k tokens · $0.00 · 4 min Uptide commit: `40e870b6daebbc2301b17536434fca2b9d5c8af2` (working-tree changes) Branch: `uptide/openai-7.33.0` Tier: verified (a migration pack covers this upgrade) Verified at: 2026-10-14T07:10:06.426Z Verified commit: `10c85e2210b4bfc6413596223c2068799c694e17` Verified tree: `68de481fd3864a230da21afaf1bcdf75c9da4617` </details> ```` (The test log inside is shortened here; "Tier: verified" and "Verified by ✅ the openai migration pack" reflect the local forced activation described above.) </details> ## Checklist - [x] Every rule and note comes from a source listed in `meta.sources` - [x] Every rule that rewrites or detects has a fixture case, with a site it must leave alone (`keep`) - [x] Ground truth: public repositories at the commit before their upgrade; expected findings read from their own upgrade commit and the compiler, never copied from Uptide's output - [x] At least two public repositories for `verified`; otherwise the pack ships as a candidate (7 public repositories; candidate because of the 4 engine false positives and 2 left-behind upgrades) - [ ] `pnpm uptide pack test <package>` passes and its output is pasted above; `verification.json` written with `--write`: **it fails** (4 breaking false positives, all from `check`'s generic compile). The output is pasted above, and `verification.json` records `candidate` via `--write`. - [x] `pnpm lint && pnpm typecheck && pnpm test` pass (core 1548 passed / 32 skipped, CLI 438 passed; `pnpm lint` reports one pre-existing warning in `next/platform.test.ts`) - [x] Changeset added (patch: a candidate pack, the dependency stays generic) - [x] No private code, names or paths anywhere: fixtures are synthetic, ground truth is public 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL --- _Generated by [Claude Code](https://claude.ai/code/session_01FX2nBoNEvDh9v71yDhEzxL)_ --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]>
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.
Fixes #4
Cause
pino 10 declares the namespace inside itself:
Extraction's
walkNamedwalks a namespace's exports, so it walkedpino, thenpino.default(the same declarations), thenpino.default.default, and so on without end. The stack ran out inside TypeScript's printer, which is where the issue's progress stopped, but the recursion was ours: 3,618 frames, almost allwalkNamed. pino 9 had a separate nestedpinofunction and namespace instead, which is why the installed side was fine.Fix
Cycle-safe extraction (
walk.ts): each walk carries the declarations on its path. A name that reaches one of them again is emitted, so it still diffs, with the signaturerecursive type <path> (compared by name), and is not walked again. A walk nested deeper thanMAX_NESTING(32) named levels is cut the same way (nested deeper than 32 levels (compared by name)).I kept JS recursion rather than switching to an explicit stack. Only re-entering declarations nests named walks; type literals nest only as deep as the source text. The limit therefore bounds the recursion, and the call stack with it.
Diff through cuts (
diff.ts): a path missing on one side, or cut on one side only, is resolved through that side's cuts. pino 9'spino.pinoandpino.pino.stdTimeFunctionsare pino 10'spinoandpino.stdTimeFunctions, not removals. A comparison through a cut reads both signatures without the namespace qualifier (pino.LoggerandLoggerare the same type); the qualifier rewrite is now shared with the ESM equivalence.This matters for documenso: it imports
{ pino }from'pino', which is exactlypino.pino.Per-package failure was already isolated (
ANALYSIS_STACK_OVERFLOW). A new test checks it with two packages: the failing one is skipped with its reason (the terminal line names it), and the other keeps its findings.Fixture
fixtures/deps/recursive-v1andrecursive-v2arelogkit, a synthetic pino-like package:Loggerandtype Tree = { children: Tree[] };NodeandEdge;pingandpongthat re-export each other;export { logkit as default, logkit };Logger#parentremoved,Options#timestampadded).Against
main'swalk.tsanddiff.ts, the new tests fail, two of them withRangeError: Maximum call stack size exceeded. With this change:removed logkit.Logger#parent,added logkit.Options#timestamp,added logkit.default, with and without the assignability pass;checkruns end to end and finds the removedparentat its call site.Through a cut, type changes still show
logkit v2 also changes two things that are reachable at
logkit.logkitonly through the cut, because v2 never walks into it:stdTimeFunctions.epochTimenow returnsnumberinstead ofstring;Settings(level?: number) instead ofOptions(level?: string).Both are reported at the cut paths, in both assignability modes, with their real types:
signature logkit.logkit:(options?: Options): Logger→(options?: Settings): Loggersignature logkit.logkit.stdTimeFunctions#epochTime:() => string→() => numberThe cut drops
logkit.qualification, never a type.Regression against
maindiffDirswith default options (ascheckruns it, assignability on) on npm's published tarballs,mainat4f2d354vs this branch. Each build had its own fresh surface cache."Differences" compares every change by kind, path, severity and before/after text. Where neither side cut a cycle, the results are identical.
@types/nodealso overflowed onmain. Node's typings re-export several classes and namespaces from inside themselves. The 10 cuts are all such self-exports:EventEmitter.EventEmitter,Module.Module,Stream.Streamandassert.strict.strict, each under both the bare and thenode:-prefixed module name;test.itandtest.testundernode:test.Of the 3,736 changes, two are at a cut path:
assert.strict.strictadded under"assert"and under"node:assert". That self-reference is new in Node 22's typings. For pino, the only change at a cut path ispino.defaultadded.* A second bug in
main's run. In the firstmainrun,@types/reactcame after@types/nodein the same process and differed in one change:removed React.createFactorywas reported with a corruptedbeforesignature that began withAssertOptions & { strict?: …, text from Node'sasserttypings. The overflow had left TypeScript's printer mid-write, and the next package's signatures were printed through it. Run alone,main's@types/reactmatches this branch exactly. So onmain, a stack overflow in one package could silently corrupt another package's results in the same worker. With the walk bounded, these overflows no longer happen.The issue's steps, rerun
documenso/documenso at
80823ede73a5889753c341f2a5a22d1459cd99b7,npx npm@11 ci --ignore-scripts, Node 22.20.0,NODE_OPTIONS=--max-old-space-size=4096,uptide check --only pino --workspaces 1 --json.Before,
mainat4f2d354: exit 2 after 397 s.[ { "workspace": ".", "name": "pino", "installed": "9.14.0", "target": "9.14.0", "status": "not-imported", "skipReason": null, "notes": [ "never imported by this workspace, skipped" ] }, { "workspace": "packages/lib", "name": "pino", "installed": "9.14.0", "target": "10.4.0", "status": "skipped", "skipReason": "ANALYSIS_STACK_OVERFLOW", "notes": [ "pino: analysis exceeded its recursion limit while inspecting declarations (Maximum call stack size exceeded). No safety verdict; other named packages continue." ] } ]After, this branch: exit 0 after 40 s.
[ { "workspace": "*", "name": "pino", "installed": "9.14.0", "target": "10.4.0", "status": "safe", "skipReason": null, "notes": [ "19 pre-existing type errors at the installed version (subtracted)", "1 dependency of [email protected] fetched at the versions it declares", "runtime probed with the current Node v22.20.0: no local install of Node 24 (docker/Dockerfile) was found", "2 pre-existing type errors at the installed version (subtracted)", "485 pre-existing type errors at the installed version (subtracted)" ] }, { "workspace": ".", "name": "pino", "installed": "9.14.0", "target": "9.14.0", "status": "not-imported", "skipReason": null, "notes": [ "never imported by this workspace, skipped" ] } ]The same run in the terminal:
"No impact" checks out by hand. Of the types pino 10 removed (
TimeFn,MixinFn,ThreadStream,DestinationStreamHasMetadata, …), none appears in documenso's sources. It usesimport { pino, type TransportTargetOptions } from 'pino'and default imports, which pino 10 keeps.Tests: core 833 passed, cli 322 passed;
typecheckandbiomeclean. Changeset: patch.🤖 Generated with Claude Code