spacetimedb 0.1.1
spacetimedb: ^0.1.1 copied to clipboard
Dart SDK for SpacetimeDB. Real-time sync, BSATN codec, code generation, and offline-first support.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.1 - 2026-02-16 #
Added #
- Offline-first mutation queue with
PendingMutationmodel and replay support SyncStatefor tracking pending mutation count and sync statusOfflineStorageabstract interface for pluggable storage backendsJsonFileStoragewith web-safe conditional imports (stub on web,dart:ioon native)InMemoryOfflineStoragefor web platform and testing- View code generation support (server-side filtered queries via
ViewContext) - Example project with
README.mdand BSATN demo - Full pub.dev metadata: topics, homepage, repository, issue tracker, documentation
Changed #
- Migrated from legacy
Subscribeto modernSubscribeMultiprotocol SubscriptionManagernow uses multi-query subscription batchingReducerCallerextended with offline queue support (enqueue when disconnected)SdkLoggerrefactored:enableDeveloperLog(), customonLogcallback, level-based filteringClientGeneratorimproved: better typed table accessors, view getter generationSchemaExtractorimproved: robust column type mapping, nullable/optional handlingSpacetimeDbConnectionimproved: cleaner reconnect lifecycle, status stream reliabilityReducerInfoupdated for SubscribeMulti message format compatibility
Fixed #
- Web platform crash when importing
dart:ioviaJsonFileStorage - Subscription deduplication on rapid subscribe/unsubscribe cycles
0.1.0 - 2025-02-13 #
Added #
- WebSocket connection with auto-reconnect and SSL/TLS support
- Connection status monitoring and quality metrics
- BSATN binary encoding/decoding (all SpacetimeDB types)
- Client-side table cache with real-time change streams
- Subscription management with SQL queries
- Type-safe reducer calling with transaction results
- Code generation from SpacetimeDB modules (tables, reducers, sum types, views)
- Authentication with Identity, token persistence, and OIDC support
- Offline-first support with optimistic updates and mutation queue
- Brotli compression for WebSocket messages