vasabase 0.2.5
vasabase: ^0.2.5 copied to clipboard
Dart SDK for Vasabase, providing Auth, Database, Storage, and Realtime functionality.
0.2.5 #
- Add provider-neutral push notifications client with
push.send()for FCM, Expo, and OneSignal.
0.2.4 #
- Fix: Add
Session.isExpiredand refresh expired sessions before invoking Edge Functions. - Fix: Stop sending stale JWTs to
/functions/v1when a refresh token can produce a fresh access token.
0.4.0 #
- Major: MFA (Multi-Factor Authentication) support —
enroll(),verifyFactor(),createChallenge(),verifyChallenge(),unenroll(),listFactors(). - New MFA models:
MFAFactor,MFAEnrollResponse,MFAChallengeResponse,MFAVerifyResponse. - Added
_authPost,_authGet,_authDeletehelpers for authenticated requests.
0.3.0 #
- Major: Edge Workers client (
FunctionsClient) withinvoke(functionName, body:)wired intoVasabaseClient.workers. - Major:
StorageClientenhanced withcreateSignedUrl(),getPublicUrl(download:),move(),copy(), fixedremove(), pluscreateBucket(),deleteBucket(),listBuckets(). - Major:
StorageExceptiontyped exception replacing genericExceptionin storage operations. - Major:
RealtimeChannelclass withsubscribe(),unsubscribe(),track(),onPresence(),onBroadcast(),broadcast(). - Major:
PostgresCDCConfigfor change-data-capture subscriptions withchannel(table, filter:). - Major: Auth additions:
signInAnonymously(),reauthenticate(),updateUser(),resetPasswordForEmail(). - Added PKCE
codeChallengesupport tosignInWithOAuth(). signInWithOtp()now supports phone OTP via optionalphoneparameter.
0.2.1 #
- Fix:
signInWithIdToken()now POSTs to/token?grant_type=id_tokento exchange provider tokens for backend-signed JWTs, instead of using the raw token locally. This fixes REST/Realtime auth after Google sign-in. - Backend: Added
grant_type=passwordandgrant_type=refresh_tokensupport to/auth/v1/token, enabling standard GoTrue-compatiblesignInWithPassword()andrefreshSession(). - Backend: Signup and signin responses now include
refresh_tokenfor session refresh support.
0.2.0 #
- Major: Advanced PostgREST filter methods added to
PostgrestFilterBuilder:or(),and(),not_(),in_(),contains(),containedBy(),rangeGt(),rangeGte(),rangeLt(),rangeLte(),isNull(),is_(),like(),ilike(),match(),imatch(),offset(),range(). - Major: Added
refreshSession()method toAuthClientfor automatic token refresh using the refresh token. - Major: Added
onAuthStateChangebroadcast stream toAuthClientthat emitsAuthStateChangeevents (signedIn,signedOut,tokenRefreshed,userUpdated,passwordRecovery). - Major: Replaced generic
Exceptionthrows inAuthClientwith typedAuthExceptioncontainingmessage,code, anddetails. - New models:
AuthException,AuthChangeEvent,AuthStateChange. - Unit tests added for PostgREST filter builder and Auth client.
0.1.7 #
- Fix: Inject
x-project-refheader into PostgREST, Auth, Storage, and Realtime API calls fromVasabaseClientifprojectRefis provided.
0.1.6 #
- Fix: Apply UUIDv5 hashing to Firebase UIDs in
setAuthto ensure the Flutter app generates mathematically valid Postgres UUIDs before sending them to the backend.
0.1.5 #
- Fix: Decode third-party JWTs (like Firebase) in
setAuthto extract the actual user ID instead of hardcodingthird-party-user.
0.1.4 #
- Fix: Change default
Preferheader toreturn=minimalfor mutations to prevent 400 errors for users withoutSELECTpermissions.
0.1.3 #
- Added
onConflictparameter toupsert()for complex unique constraint resolution.
0.1.2 #
- Added
.single(),.maybeSingle(), and.limit()to query builder. - Introduced
PostgrestExceptionfor structured database error handling.
0.1.1 #
- Add
setAuthhelper toAuthClientto simplify third-party integration (e.g. Firebase Auth).
0.1.0 #
- Initial release of the Vasabase pure Dart SDK.
- Basic scaffolding for the VasabaseClient.