ankhdb 2.0.0
ankhdb: ^2.0.0 copied to clipboard
Official AnkhDB Client SDK for Dart and Flutter. Real-time Multi-tenant BaaS.
Changelog #
2.0.0 - 2026-03-04 #
Breaking Changes #
- Constructor signature changed:
AnkhDB(apiKey, baseUrl, {token})→AnkhDB(projectId, apiKey, {serverUrl, token}).- The server URL now defaults to the production server constant (
_kServerUrl). - Pass
serverUrlto override (e.g. for self-hosting).
- The server URL now defaults to the production server constant (
Added #
storageproperty — exposes anAnkhStorageinstance withupload(bytes, filename),list(),getFile(id),delete(id).functionsproperty — exposes anAnkhFunctionsinstance withinvoke(name, {payload}).register()now handles the email-verification flow: if enabled on the project, no token is returned until the user verifies their email.logout()is now synchronous (clears the local token; no server round-trip needed).- Exported
AnkhStorageandAnkhFunctionsclasses.
Changed #
baseUrlfield renamed tobaseUrl(unchanged), but trailing-slash trimming is now done via regex on the constant.logout()return type changed fromFuture<void>tovoid.
1.0.1 - 2026-02-22 #
- Initial open-source release on pub.dev.
- Refactored SDK to standard package layout (moved source to
lib/). - Added
pubspec.yamlwith required metadata. - Added
README.md,CHANGELOG.md, andLICENSE. - Updated
AnkhDBto requireapiKeyand includex-api-keyin headers.
1.0.0 - 2026-01-21 #
- Initial development version of the AnkhDB Dart SDK.
- Basic Auth and Database operations.