Repository navigation
fix(client): stop defaulting TransportWebSocket to the deprecated CONST_DEFAULT_SERVICE (#2590) - #2591
fix(client): stop defaulting TransportWebSocket to the deprecated CONST_DEFAULT_SERVICE (#2590)#2591kairavb wants to merge 2 commits into
Conversation
…ST_DEFAULT_SERVICE
🤖 Internal: Discord sync markerAuto-managed by the Discord notification workflow. Stores the linked Discord message ID and forum thread ID. Do not edit or delete. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to This change aligns the WebSocket defaults and Python example with the non-deprecated constant without changing the effective URI or public exports. No actionable merge risk remains beyond normal checks. Pre-merge checks |
|
joshuadarron
left a comment
There was a problem hiding this comment.
LGTM. Verified:
CONST_DEFAULT_SERVICEis a plain alias ofCONST_DEFAULT_WEB_CLOUDin both SDKs (constants.py:69,constants.ts:60), so the default URI is byte-identical and nothing changes at runtime.- After this PR, nothing in either SDK's
src/uses the deprecated name. It is still exported (__all__and the TS module) for backward compatibility. client.py/client.tsalready default toCONST_DEFAULT_WEB_CLOUD, so the transport now matches its callers.- CI is green: builds, ESLint, and PR checks.
Non-blocking nit: constants.py:31 in the module docstring's attribute list still describes CONST_DEFAULT_SERVICE as "Default RocketRide service URI" with no deprecation note. Worth listing CONST_DEFAULT_WEB_CLOUD there and marking the old name deprecated, to match the comment at line 68.
…ULT_SERVICE deprecated in constants.py docstring
|
Addressed the docstring nit from your review — thanks! |
joshuadarron
left a comment
There was a problem hiding this comment.
Re-approving after 78aab0e0, which addresses my earlier nit: the constants.py docstring now lists CONST_DEFAULT_WEB_CLOUD as the default URI and marks CONST_DEFAULT_SERVICE as a deprecated alias, matching the comment at line 68 and the TS @deprecated JSDoc. The transport changes are the same as in 7eb1d2e2, which I already verified, and CI is green.
Summary
TransportWebSocketdefaulted their constructor toCONST_DEFAULT_SERVICE, a constantexplicitly marked deprecated in favor of
CONST_DEFAULT_WEB_CLOUD(currently just an alias, samevalue) — swapped both to the non-deprecated name
constants.pymodule docstring's own usage example, which was pointing readersat the deprecated constant
itself stays exported in both SDKs' public API (
__all__unchanged) — nothing removedType
Bug fix (non-breaking change which fixes an issue)
Testing
./builder testpassesRan the full suite for both affected packages:
All skips are pre-existing and unrelated (missing LLM API keys, non-ASCII filesystem encoding, no
OTLP collector configured, chat/LLM integration tests needing external services).
Checklist
Linked Issue
Fixes #2590
Summary by CodeRabbit