chore(*): remove unused 'react' packages from the root and scope the knip '@types/react' ignore to the packages that need it - #11727
Conversation
…knip '@types/react' ignore to the packages that need it
|
View your CI Pipeline Execution ↗ for commit fcbb8db
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: TanStack/query/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe root package removes four React development dependencies. The Knip configuration removes them from the global ignore list and adds workspace-specific ChangesReact dependency scope
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to The inspected workspace workflows retain their React dependencies, and the configured strict Knip check passes; no material merge-readiness risk is identified. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 2 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
size-limit report 📦
|
🎯 Changes
react,react-dom,@types/react, and@types/react-domfrom the rootdevDependencies. Nothing at the root imports them; the React packages declare their own.knip.ts, replace the globalignoreDependenciesentries for these four packages with'@types/react!'inpackages/react-query,packages/react-query-next-experimental, andpackages/react-query-persist-clientonly, with a comment explaining why. Their built types importreact, which is provided by the consumer's@types/react, and the!limits the ignore to the strict (production) run.pnpm-lock.yaml.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit