koolbase_flutter 1.4.0
koolbase_flutter: ^1.4.0 copied to clipboard
Flutter SDK for Koolbase — feature flags, remote config, version enforcement, authentication, file storage, database, and realtime subscriptions for mobile apps.
1.4.0 #
- Added
Koolbase.realtime— WebSocket realtime SDK Koolbase.realtime.on(projectId, collection)— stream of all eventsKoolbase.realtime.onRecordCreated(projectId, collection)— stream of new recordsKoolbase.realtime.onRecordUpdated(projectId, collection)— stream of updated recordsKoolbase.realtime.onRecordDeleted(projectId, collection)— stream of deleted record IDsKoolbase.realtime.connectionState— stream of connection status (true/false)Koolbase.realtime.setToken(token)— set auth token for subscriptions- Auto-reconnect with 3 second backoff
- Reference-counted subscriptions — safe for multiple listeners
- Race-condition-free subscription flow
1.3.0 #
- Added
Koolbase.db— database SDK Koolbase.db.collection('name').get()— query records with fluent builderKoolbase.db.collection('name').where('field', isEqualTo: value).limit(20).get()Koolbase.db.insert(collection: 'name', data: {...})— insert recordsKoolbase.db.doc(id).get()— fetch single recordKoolbase.db.doc(id).update({...})— patch record fieldsKoolbase.db.doc(id).delete()— soft delete recordKoolbaseRecord,KoolbaseCollection,QueryResultmodels- Collection-level permission enforcement (public, authenticated, owner)
Koolbase.db.setUserId()for authenticated requests
1.2.0 #
- Added
Koolbase.storage— file storage SDK upload()— upload files directly to Cloudflare R2 via presigned URLsgetDownloadUrl()— get signed download URLs for private filesdelete()— delete files from storageKoolbaseObject,KoolbaseBucket,UploadResultmodels- Automatic content type inference from file extension
- Three-step upload flow: get URL → upload → confirm
1.1.0 #
- Added
Koolbase.auth— full authentication SDK signUp,login,logout,forgotPassword,resetPassword,verifyEmailcurrentUser,isAuthenticated,authStateChangesstream- Automatic session restoration on app start
- Secure token storage via
flutter_secure_storage - JWT access tokens with automatic refresh
KoolbaseUser,AuthSessionmodelsKoolbaseAuthExceptionand typed exceptions
1.0.0 #
- Initial release
- Feature flags with rollout percentages and kill switches
- Remote config (string, int, double, bool, map)
- Version enforcement with force/soft update policies
- Offline support with local cache
- Background polling