Repository navigation
fix(realtime): respect custom logger for send() REST fallback warning - #2612
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe change adds logger availability checks to Assessment against linked issues
Merge Risk: ⚪ Minimal · up to This change routes the REST fallback warning through a configured custom logger while preserving the existing console warning by default; no actionable merge-blocking risk remains. 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 |
This PR updates `@supabase/supabase-js` to v2.112.4. **Source**: supabase-js-stable-release --- ## Release Notes ## v2.112.4 ## 2.112.4 (2026-08-24) ### 🩹 Fixes - **auth:** convert stolen-lock AbortError when acquireTimeout is 0 ([#2616](supabase/supabase-js#2616)) - **auth:** warn on deprecated lock option and prevent unhandled refresh rejection ([#2627](supabase/supabase-js#2627)) - **postgrest:** move override fixtures out of generated types, repair codegen ([#2605](supabase/supabase-js#2605)) - **realtime:** respect custom logger for send() REST fallback warning ([#2612](supabase/supabase-js#2612)) ### ❤️ Thank You - Katerina Skroumpelou @mandarini - mmustafasenoglu @mmustafasenoglu This PR was created automatically. Co-authored-by: supabase-workflow-trigger[bot] <266661614+supabase-workflow-trigger[bot]@users.noreply.github.com>
This PR updates @supabase/*-js libraries to version 2.112.4. **Source**: manual **Changes**: - Updated @supabase/supabase-js to 2.112.4 - Updated @supabase/auth-js to 2.112.4 - Updated @supabase/realtime-js to 2.112.4 - Updated @supabase/postgest-js to 2.112.4 - Refreshed pnpm-lock.yaml --- ## Release Notes ## v2.112.4 ## 2.112.4 (2026-08-24) ### 🩹 Fixes - **auth:** convert stolen-lock AbortError when acquireTimeout is 0 ([#2616](supabase/supabase-js#2616)) - **auth:** warn on deprecated lock option and prevent unhandled refresh rejection ([#2627](supabase/supabase-js#2627)) - **postgrest:** move override fixtures out of generated types, repair codegen ([#2605](supabase/supabase-js#2605)) - **realtime:** respect custom logger for send() REST fallback warning ([#2612](supabase/supabase-js#2612)) ### ❤️ Thank You - Katerina Skroumpelou @mandarini - mmustafasenoglu @mmustafasenoglu This PR was created automatically. Co-authored-by: mandarini <[email protected]>
Closes #2611.
The REST fallback warning in
RealtimeChannel.send()was a hardcodedconsole.warn(), so it always printed and couldn't be disabled or redirected even if a customloggerwas configured on the client. This routes the warning through the client's existing logging mechanism when a custom logger is set, falling back to the originalconsole.warn()otherwise, so default behavior is unchanged for everyone who hasn't configured a logger.