Skip to main content

sinew_storage 1.1.0 copy "sinew_storage: ^1.1.0" to clipboard
sinew_storage: ^1.1.0 copied to clipboard

SecureStore, KeyValueStore, processStorageCall and pagedQuery.

1.1.0 #

  • Released with the other packages (lockstep). No changes in this package.

1.0.0 #

  • S4: pagedQuery(page, limit, fetch, {firstPage = 1}): one limit + 1 query per page gives hasNextPage, hasPreviousPage is page > firstPage; a non-positive limit, a page before firstPage, or an offset past 2^53 - 1 is refused before the query. InspectableStore (name, keys(), read(key)), implemented by KeyValueStore and SecureStore.
  • S4: processStorageCall(module, function, access, block) with StorageAccess { read, write }, and the public storageHandlers table: corruption (DecryptionFailed, FormatException, a plugin's failed decryption) → LocalStorageCorruptionException; out of space (errno 28 or 39/112 on Windows, "No space left on device", SQLite's "database or disk is full", QuotaExceededError) → StorageFullException; other storage errors (PlatformException, IOException, SqliteException, browser storage DOMExceptions) → StorageReadException / StorageWriteException. sinew_storage now lists sinew_models.
  • S4: SecureStore (create({namespace}), read, write, delete, clearUserData), as in Kotlin (ADR-26): a KeyValueStore (<namespace>_secure) whose values FieldCipher (sinew.secure.<namespace>) encrypts with <namespace>:<key> as associated data. An undecryptable value reads as absent and is deleted; writes are serialized; a reinstall starts empty with no marker.
  • S4: KeyValueStore (create({name}), getString/getInt/getBool/getDouble and setters, remove, clear) on SharedPreferencesAsync, keys prefixed <name>.; a value of another type reads as absent; clear removes only the store's own keys. Replaces the S0 placeholder.
  • S0: package skeleton.