Conversation
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughAdds engine-mismatch diagnostics: a new configuration Possibly related PRs
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
src/providers/diagnostics/rules/deprecation.ts (1)
17-21:⚠️ Potential issue | 🟡 MinorUse
exactVersionfor the deprecation target URL as well.Line 21 still links with
parsed.version, which can be a range or dist-tag, while the message now reports the resolved exact version. This can send users to a mismatched package page.Suggested fix
- target: Uri.parse(npmxPackageUrl(dep.name, parsed.version)), + target: Uri.parse(npmxPackageUrl(dep.name, exactVersion)),
🧹 Nitpick comments (2)
src/extractors/package-json.ts (1)
79-95: Returnundefinedwhen no valid engine pairs are parsed.Right now, an
enginesobject with only invalid entries returns{}. Returningundefinedkeeps the absent/invalid state explicit and simplifies downstream checks.Proposed tweak
getEngines(root: Node): Engines | undefined { @@ - return engines + return Object.keys(engines).length > 0 ? engines : undefined }tests/diagnostics/deprecation.test.ts (1)
23-39: Consider assertingcode.targetto prevent version-link regressions.The updated snapshots validate message text, but adding an assertion for the resolved-version URL would catch mismatches between displayed version and link target.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (12)
README.mdpackage.jsonplayground/package.jsonsrc/extractors/package-json.tssrc/providers/diagnostics/index.tssrc/providers/diagnostics/rules/deprecation.tssrc/providers/diagnostics/rules/engine-mismatch.tssrc/types/extractor.tssrc/utils/package.tstests/diagnostics/context.tstests/diagnostics/deprecation.test.tstests/diagnostics/engine-mismatch.test.ts
close #35