Releases: powersync-ja/powersync-swift
Releases · powersync-ja/powersync-swift
PowerSync v1.0.0-Beta.6
- BREAKING CHANGE:
watch
queries are now throwable and therefore will need to be accompanied by atry
e.g.
try database.watch()
- BREAKING CHANGE:
transaction
functions are now throwable and therefore will need to be accompanied by atry
e.g.
try await database.writeTransaction { transaction in
try transaction.execute(...)
}
- Allow
execute
errors to be handled userId
is now set tonil
by default and therefore it is no longer required to be set tonil
when instantiatingPowerSyncCredentials
and 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
__fetchCredentials
to 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
,KotlinPowerSyncDatabase
andKotlinPowerSyncBackendConnector
as 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", "[email protected]"] ) }
try await database.writeTransaction { transaction in transaction.execute( // <- This has become synchronous sql: "INSERT INTO users (id, name, email) VALUES (?, ?, ?)", parameters: ["1", "Test User", "[email protected]"] ) }
PowerSync v1.0.0-Beta.2
- Upgrade PowerSyncSqliteCore to 0.3.8
PowerSync v1.0.0-Beta.1
Initial release of SDK