vasabase 0.2.5 copy "vasabase: ^0.2.5" to clipboard
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.isExpired and refresh expired sessions before invoking Edge Functions.
  • Fix: Stop sending stale JWTs to /functions/v1 when 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, _authDelete helpers for authenticated requests.

0.3.0 #

  • Major: Edge Workers client (FunctionsClient) with invoke(functionName, body:) wired into VasabaseClient.workers.
  • Major: StorageClient enhanced with createSignedUrl(), getPublicUrl(download:), move(), copy(), fixed remove(), plus createBucket(), deleteBucket(), listBuckets().
  • Major: StorageException typed exception replacing generic Exception in storage operations.
  • Major: RealtimeChannel class with subscribe(), unsubscribe(), track(), onPresence(), onBroadcast(), broadcast().
  • Major: PostgresCDCConfig for change-data-capture subscriptions with channel(table, filter:).
  • Major: Auth additions: signInAnonymously(), reauthenticate(), updateUser(), resetPasswordForEmail().
  • Added PKCE codeChallenge support to signInWithOAuth().
  • signInWithOtp() now supports phone OTP via optional phone parameter.

0.2.1 #

  • Fix: signInWithIdToken() now POSTs to /token?grant_type=id_token to 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=password and grant_type=refresh_token support to /auth/v1/token, enabling standard GoTrue-compatible signInWithPassword() and refreshSession().
  • Backend: Signup and signin responses now include refresh_token for 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 to AuthClient for automatic token refresh using the refresh token.
  • Major: Added onAuthStateChange broadcast stream to AuthClient that emits AuthStateChange events (signedIn, signedOut, tokenRefreshed, userUpdated, passwordRecovery).
  • Major: Replaced generic Exception throws in AuthClient with typed AuthException containing message, code, and details.
  • New models: AuthException, AuthChangeEvent, AuthStateChange.
  • Unit tests added for PostgREST filter builder and Auth client.

0.1.7 #

  • Fix: Inject x-project-ref header into PostgREST, Auth, Storage, and Realtime API calls from VasabaseClient if projectRef is provided.

0.1.6 #

  • Fix: Apply UUIDv5 hashing to Firebase UIDs in setAuth to 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 setAuth to extract the actual user ID instead of hardcoding third-party-user.

0.1.4 #

  • Fix: Change default Prefer header to return=minimal for mutations to prevent 400 errors for users without SELECT permissions.

0.1.3 #

  • Added onConflict parameter to upsert() for complex unique constraint resolution.

0.1.2 #

  • Added .single(), .maybeSingle(), and .limit() to query builder.
  • Introduced PostgrestException for structured database error handling.

0.1.1 #

  • Add setAuth helper to AuthClient to simplify third-party integration (e.g. Firebase Auth).

0.1.0 #

  • Initial release of the Vasabase pure Dart SDK.
  • Basic scaffolding for the VasabaseClient.
0
likes
150
points
135
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Dart SDK for Vasabase, providing Auth, Database, Storage, and Realtime functionality.

Homepage

License

MIT (license)

Dependencies

http, uuid, web_socket_channel

More

Packages that depend on vasabase