feat: re-export renamed v1 APIs as deprecated aliases - #1758
Conversation
…APIs as deprecated aliases Adds deprecated aliases so code written against v1 keeps compiling after the v2 renames, with @deprecated pointing at the current name. APIs that were experimental in v1 are excluded, as are renames where the replacement is a redesign rather than a rename.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
More templates
@orpc/ai-sdk
@orpc/arktype
@orpc/bun
@orpc/client
@orpc/cloudflare
@orpc/contract
@orpc/experimental-effect
@orpc/evlog
@orpc/json-schema
@orpc/nest
@orpc/next
@orpc/openapi
@orpc/opentelemetry
@orpc/pinia-colada
@orpc/pino
@orpc/publisher
@orpc/ratelimit
@orpc/server
@orpc/shared
@orpc/swr
@orpc/tanstack-query
@orpc/trpc
@orpc/valibot
@orpc/zod
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — 28 deprecated re-exports across 11 barrel files in @orpc/client, @orpc/contract, @orpc/next, @orpc/pinia-colada, and @orpc/server.
- Deprecated aliases for every v1 API that was purely renamed (not reworked) in v2, each carrying a
@deprecatedJSDoc pointing to the replacement name - Cross-entrypoint alias for
BodyLimitPluginre-exported from@orpc/server/fetchand@orpc/server/nodeto match its v1 location, with the deprecation message pointing to@orpc/server/plugins - Deliberate exclusions for
experimental_*APIs andSimpleCsrfProtectionHandlerPluginwhere v2 changed behaviour, not just the name
All 28 source exports verified at their respective modules. pnpm lint (0 warnings), pnpm type:check, and the full test suite (2772 tests) pass.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior pullfrog review (986e3ac) — one commit (38b34d6 "improve") removing two deprecated type aliases.
- Removed
MergedCurrentContextfrom@orpc/server, narrowing the alias set - Removed
FormActionfrom@orpc/next, narrowing the alias set
Both removals look like corrections — pruning aliases that weren't actual v1 API names.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Code written against v1 breaks on v2 for a set of APIs that were only renamed, not changed — the import fails with "no exported member" and gives no hint at the new name. This adds deprecated aliases for those, so v1 code keeps compiling and the IDE points at the current name via
@deprecated.