Repository navigation
fix(auth): warn on deprecated lock option and prevent unhandled refresh rejection - #2627
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 (4)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughSummary by CodeRabbit
WalkthroughThe auth client now emits the deprecated custom Merge Risk: ⚪ Minimal · up to This PR adds a deprecation warning and prevents an unhandled refresh rejection while preserving concurrent refresh behavior; no actionable merge-blocking risk remains after normal checks and review. ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
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 |
dde001d to
f87fc1c
Compare
@supabase/auth-js
@supabase/functions-js
@supabase/postgrest-js
@supabase/realtime-js
@supabase/storage-js
@supabase/supabase-js
commit: |
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]>
Adds a one-time
console.warnwhen the deprecatedlockoption is passed to the auth client, pointing at the lockless-coordination migration notes. The client has coordinated session refreshes without a lock since 2.107.0, and the option will be removed in v3, but the JSDoc-only deprecation was not reaching users still passinglock:.Also pre-attaches a no-op rejection handler to the refresh dedupe deferred in
_callRefreshToken: when a refresh fails with no concurrent callers awaiting it, the rejected deferred previously surfaced as an unhandled rejection even though the original caller received the error. Concurrent callers still observe the rejection through.promise.Also fills in the release-time version placeholders in
migrations/lockless-coordination.mdand adds unit tests for both behaviors (warn once per realm, never withoutlock; no unhandled rejection on a single-caller refresh failure).