vasabase 0.2.1 copy "vasabase: ^0.2.1" to clipboard
vasabase: ^0.2.1 copied to clipboard

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

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 Functions client (FunctionsClient) with invoke(functionName, body:) wired into VasabaseClient.functions.
  • 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
0
points
135
downloads

Publisher

unverified uploader

Weekly Downloads

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

Homepage

License

unknown (license)

Dependencies

http, uuid, web_socket_channel

More

Packages that depend on vasabase