Change8

v2.81.0

Breaking Changes
📦 supabase-jsView on GitHub →
1 breaking1 features🐛 4 fixes🔧 5 symbols

Summary

This release introduces a new V2 serializer for Realtime and significant updates to WebAuthn authentication parameters and Edge Functions error handling.

⚠️ Breaking Changes

  • The WebAuthn parameter structure has changed: registration parameters have been moved into the 'webauthn' object and the top-level parameter is now optional.

Migration Steps

  1. If using WebAuthn, update your authentication calls to nest registration parameters within the 'webauthn' property.
  2. Update error handling for Edge Functions to catch 'FunctionsFetchError' for both timeouts and aborts.

✨ New Features

  • Implemented V2 serializer for Realtime to improve performance and data handling.

🐛 Bug Fixes

  • Updated UserAppMetadata interface to include the 'providers' type.
  • Switched to direct attestation for WebAuthn registration and authentication.
  • Added configurable timeouts for Functions and normalized abort/timeout errors into FunctionsFetchError.
  • Improved Realtime reliability by ensuring WebSocket connections are properly closed during teardown.

🔧 Affected Symbols

UserAppMetadataFunctionsFetchErrorRealtimeauth.signInWithWebAuthnfunctions.invoke