deprecate legacy module facades - #168
Conversation
|
Warning Review limit reached
More reviews will be available in 6 minutes and 53 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (16)
📝 WalkthroughWalkthroughAll module-level singleton facade exports ( ChangesLegacy Facade Deprecation and Example Migration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #168 +/- ##
=======================================
Coverage ? 87.56%
=======================================
Files ? 40
Lines ? 1664
Branches ? 554
=======================================
Hits ? 1457
Misses ? 207
Partials ? 0 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/deprecation-policy.md`:
- Line 35: The heading "### Active deprecations — legacy module facades" on line
35 contains an em-dash ("—") which causes markdown processors to generate an
anchor slug that doesn't match the internal link reference on line 111 which
expects `#active-deprecations-legacy-module-facades`. Replace the em-dash in the
heading with a standard hyphen or colon to ensure the generated anchor slug is
predictable and matches the existing link reference.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 74de05e8-1fc9-440b-a151-1774b7a7d82e
📒 Files selected for processing (16)
CHANGELOG.mdREADME.mddocs/MIGRATION.mddocs/PACKAGE_SPLIT_EVAL.mddocs/deprecation-policy.mdexamples/alliance/custom-url-generator.tsexamples/alliance/guided-query-demo.tsexamples/alliance/library-embedding-demo.tsexamples/alliance/suggest-flow-demo.tsexamples/quickstart/mcp-demo.tssrc/core/server/client-context.tssrc/core/server/config-context.tssrc/core/server/namespaces-cache.tssrc/core/server/server-context.tssrc/core/server/suggestion-flow.tssrc/core/server/url-registry.ts
|
@coderabbitai full review again |
|
✅ Action performedFull review finished. |
Summary
@deprecatedin JSDoc withServerContextreplacements and policy-relative removal wording (next minor; earliest removal two minors later).docs/MIGRATION.md,docs/deprecation-policy.md,CHANGELOG.md, andREADME.md(Stability / deployment model).createServer→ctx.setClient→setup*Server({ context: ctx })); legacy facade path documented in MIGRATION only.docs/PACKAGE_SPLIT_EVAL.mdto use legacy-facade wording instead of internal roadmap jargon.Affected facades:
getPineconeClient/setPineconeClient/clearPineconeClient, config getters, URL registry (incl.resetUrlGenerationRegistry), suggest-flow gate, namespaces cache,getDefaultServerContext.Not in scope: runtime removal, warn-once logging, or npm package split.
Test plan
npm run ci(277 tests)setPineconeClient+setupAllianceServer(config)still works during deprecation windowdocs/MIGRATION.md#unreleased-legacy-module-facade-deprecationsRelease note
Exact semver (
0.N.0/0.(N+2).0) pinned when publishing the deprecating minorRelated issues
Summary by CodeRabbit
Release Notes
Documentation
ServerContextinstance methods viacreateServer().Chores