Uh oh!
There was an error while loading. Please reload this page.
fix: resolve skipLibCheck-masked dangling .d.ts imports (+ test:dts guardrail) - #924
Conversation
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (6)
✅ Files skipped from review due to trivial changes (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughProvider package imports now use resolvable ESM and declaration paths. A recursive scanner validates built ChangesDTS resolution cleanup
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bare imports of utils/tools/middleware barrels were emitted as ../utils.js (etc.), which do not resolve under bundler/node16/nodenext (no /index fallback). With consumer skipLibCheck, those symbols silently became any. Point imports at concrete modules or explicit /index paths, and add pnpm test:dts to scan built declarations so this class cannot regress.
Bare '.', extensionless '.generated', and version-dot basenames (model-meta-llama3.1, etc.) emit declaration imports that node16 mis-resolves by stripping the wrong extension. Point them at explicit ./index or .js paths so attw --profile esm-only is clean for ai-anthropic, ai-bedrock, and ai-ollama.
d2b1e5f to
569e768Compare🚀 Changeset Version Preview13 package(s) bumped directly, 32 bumped as dependents. 🟥 Major bumps
🟨 Minor bumps
🟩 Patch bumps
|
View your CI Pipeline Execution ↗ for commit 569e768
☁️ Nx Cloud last updated this comment at |
@tanstack/ai@tanstack/ai-acp@tanstack/ai-angular@tanstack/ai-anthropic@tanstack/ai-bedrock@tanstack/ai-claude-code@tanstack/ai-client@tanstack/ai-code-mode@tanstack/ai-code-mode-skills@tanstack/ai-codex@tanstack/ai-devtools-core@tanstack/ai-elevenlabs@tanstack/ai-event-client@tanstack/ai-fal@tanstack/ai-gemini@tanstack/ai-grok@tanstack/ai-grok-build@tanstack/ai-groq@tanstack/ai-isolate-cloudflare@tanstack/ai-isolate-node@tanstack/ai-isolate-quickjs@tanstack/ai-mcp@tanstack/ai-mistral@tanstack/ai-ollama@tanstack/ai-openai@tanstack/ai-opencode@tanstack/ai-openrouter@tanstack/ai-preact@tanstack/ai-react@tanstack/ai-react-ui@tanstack/ai-sandbox@tanstack/ai-sandbox-cloudflare@tanstack/ai-sandbox-daytona@tanstack/ai-sandbox-docker@tanstack/ai-sandbox-local-process@tanstack/ai-sandbox-sprites@tanstack/ai-sandbox-vercel@tanstack/ai-solid@tanstack/ai-solid-ui@tanstack/ai-svelte@tanstack/ai-utils@tanstack/ai-vue@tanstack/ai-vue-ui@tanstack/openai-base@tanstack/preact-ai-devtools@tanstack/react-ai-devtools@tanstack/solid-ai-devtoolscommit: |
Uh oh!
There was an error while loading. Please reload this page.
…952) test:pr runs `nx affected ... build && pnpm test:dts`. On a docs/skill/CI-only PR, `nx affected` builds no packages, so there are zero packages/*/dist dirs. The dangling-dts guardrail (#924) treated that as a hard failure (exit 1), turning every unaffected PR red even though there are no declarations to scan and nothing could have regressed. Treat "no dist directories" as a no-op skip (exit 0) instead. When packages are built the scan runs and catches regressions exactly as before. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
../utils.js/../tools.js/../middleware.jsin published.d.ts(no/indexfallback under bundler/node16/nodenext). Under consumerskipLibCheckthose symbols silently becameany— same root cause as fix(ai-gemini): resolve GeminiClientConfig from concrete module in adapter types #919, swept across 10 packages including the Gemini experimental adapter fix(ai-gemini): resolve GeminiClientConfig from concrete module in adapter types #919 missed.pnpm test:dts(scripts/scan-dangling-dts.mjs) and wire it intotest:pr/test:ciso regressions fail on the producer side.@arethetypeswrong/cliInternalResolutionErrors under--profile esm-only: bare'.'(anthropic), extensionlessmodel-catalog.generated(bedrock), version-dot meta basenames likemodel-meta-llama3.1(ollama).Closes#920
Test plan
pnpm test:dtsclean afterbuild:all(692.d.tsfiles)test:typesgreen on affected packagesattw --pack --profile esm-onlyexit 0 for ai-anthropic, ai-bedrock, ai-ollama, ai-fal, ai-geminitest:pr/ full PR checks greenSummary by CodeRabbit
Bug Fixes
any.Tests