Releases: powersync-ja/powersync-swift
Releases · powersync-ja/powersync-swift
PowerSync v1.0.0-Beta.6
- BREAKING CHANGE:
watchqueries are now throwable and therefore will need to be accompanied by atrye.g.
try database.watch()- BREAKING CHANGE:
transactionfunctions are now throwable and therefore will need to be accompanied by atrye.g.
try await database.writeTransaction { transaction in
try transaction.execute(...)
}- Allow
executeerrors to be handled userIdis now set tonilby default and therefore it is no longer required to be set tonilwhen instantiatingPowerSyncCredentialsand can therefore be left out.
PowerSync v1.0.0-Beta.5
-
Implement improvements to errors originating in Kotlin so that they can be handled in Swift
-
Improve
__fetchCredentialsto log the error but not cause an app crash on error
PowerSync v1.0.0-Beta.4
-
Allow cursor to use column name to get value by including the following functions that accept a column name parameter:
getBoolean,getBooleanOptional,getString,getStringOptional,getLong,getLongOptional,getDouble,getDoubleOptional -
BREAKING CHANGE: This should not affect anyone but made
KotlinPowerSyncCredentials,KotlinPowerSyncDatabaseandKotlinPowerSyncBackendConnectoras these should never have been public.
PowerSync v1.0.0-Beta.3
- BREAKING CHANGE: Update underlying powersync-kotlin package to BETA18.0 which requires transactions to become synchronous as opposed to asynchronous.
to
try await database.writeTransaction { transaction in try await transaction.execute( sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", parameters: ["1", "Test User", "test@example.com"] ) }
try await database.writeTransaction { transaction in transaction.execute( // <- This has become synchronous sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", parameters: ["1", "Test User", "test@example.com"] ) }
PowerSync v1.0.0-Beta.2
- Upgrade PowerSyncSqliteCore to 0.3.8
PowerSync v1.0.0-Beta.1
Initial release of SDK