Skip to content

Commit 2b4fc91

Browse files
add changelog
1 parent 8c0e08d commit 2b4fc91

File tree

2 files changed

+38
-32
lines changed

2 files changed

+38
-32
lines changed

CHANGELOG.md

Lines changed: 37 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Changelog
22

3+
# 1.0.0-Beta.11
4+
5+
- Added attachment sync helpers
6+
37
# 1.0.0-Beta.10
48

5-
* Added the ability to specify a custom logging implementation
9+
- Added the ability to specify a custom logging implementation
10+
611
```swift
712
let db = PowerSyncDatabase(
813
schema: Schema(
@@ -19,69 +24,70 @@
1924
logger: DefaultLogger(minSeverity: .debug)
2025
)
2126
```
22-
* added `.close()` method on `PowerSyncDatabaseProtocol`
23-
* Update `powersync-kotlin` dependency to version `1.0.0-BETA29`, which fixes these issues:
24-
* Fix potential race condition between jobs in `connect()` and `disconnect()`.
25-
* Fix race condition causing data received during uploads not to be applied.
26-
* Fixed issue where automatic driver migrations would fail with the error:
27+
28+
- added `.close()` method on `PowerSyncDatabaseProtocol`
29+
- Update `powersync-kotlin` dependency to version `1.0.0-BETA29`, which fixes these issues:
30+
- Fix potential race condition between jobs in `connect()` and `disconnect()`.
31+
- Fix race condition causing data received during uploads not to be applied.
32+
- Fixed issue where automatic driver migrations would fail with the error:
33+
2734
```
2835
Sqlite operation failure database is locked attempted to run migration and failed. closing connection
2936
```
3037

3138
## 1.0.0-Beta.9
3239

33-
* Update PowerSync SQLite core extension to 0.3.12.
34-
* Added queuing protection and warnings when connecting multiple PowerSync clients to the same database file.
35-
* Improved concurrent SQLite connection support. A single write connection and multiple read connections are used for concurrent read queries.
36-
* Internally improved the linking of SQLite.
37-
* Enabled Full Text Search support.
38-
* Added the ability to update the schema for existing PowerSync clients.
39-
* Fixed bug where local only, insert only and view name overrides were not applied for schema tables.
40+
- Update PowerSync SQLite core extension to 0.3.12.
41+
- Added queuing protection and warnings when connecting multiple PowerSync clients to the same database file.
42+
- Improved concurrent SQLite connection support. A single write connection and multiple read connections are used for concurrent read queries.
43+
- Internally improved the linking of SQLite.
44+
- Enabled Full Text Search support.
45+
- Added the ability to update the schema for existing PowerSync clients.
46+
- Fixed bug where local only, insert only and view name overrides were not applied for schema tables.
4047

4148
## 1.0.0-Beta.8
4249

43-
* Improved watch query internals. Added the ability to throttle watched queries.
44-
* Added support for sync bucket priorities.
50+
- Improved watch query internals. Added the ability to throttle watched queries.
51+
- Added support for sync bucket priorities.
4552

4653
## 1.0.0-Beta.7
4754

48-
* Fixed an issue where throwing exceptions in the query `mapper` could cause a runtime crash.
49-
* Internally improved type casting.
55+
- Fixed an issue where throwing exceptions in the query `mapper` could cause a runtime crash.
56+
- Internally improved type casting.
5057

5158
## 1.0.0-Beta.6
5259

53-
* BREAKING CHANGE: `watch` queries are now throwable and therefore will need to be accompanied by a `try` e.g.
60+
- BREAKING CHANGE: `watch` queries are now throwable and therefore will need to be accompanied by a `try` e.g.
5461

5562
```swift
5663
try database.watch()
5764
```
5865

59-
* BREAKING CHANGE: `transaction` functions are now throwable and therefore will need to be accompanied by a `try` e.g.
66+
- BREAKING CHANGE: `transaction` functions are now throwable and therefore will need to be accompanied by a `try` e.g.
6067

6168
```swift
6269
try await database.writeTransaction { transaction in
6370
try transaction.execute(...)
6471
}
6572
```
66-
* Allow `execute` errors to be handled
67-
* `userId` is now set to `nil` by default and therefore it is no longer required to be set to `nil` when instantiating `PowerSyncCredentials` and can therefore be left out.
6873

69-
## 1.0.0-Beta.5
74+
- Allow `execute` errors to be handled
75+
- `userId` is now set to `nil` by default and therefore it is no longer required to be set to `nil` when instantiating `PowerSyncCredentials` and can therefore be left out.
7076

71-
* Implement improvements to errors originating in Kotlin so that they can be handled in Swift
72-
* Improve `__fetchCredentials`to log the error but not cause an app crash on error
77+
## 1.0.0-Beta.5
7378

79+
- Implement improvements to errors originating in Kotlin so that they can be handled in Swift
80+
- Improve `__fetchCredentials`to log the error but not cause an app crash on error
7481

7582
## 1.0.0-Beta.4
7683

77-
* Allow cursor to use column name to get value by including the following functions that accept a column name parameter:
78-
`getBoolean`,`getBooleanOptional`,`getString`,`getStringOptional`, `getLong`,`getLongOptional`, `getDouble`,`getDoubleOptional`
79-
* BREAKING CHANGE: This should not affect anyone but made `KotlinPowerSyncCredentials`, `KotlinPowerSyncDatabase` and `KotlinPowerSyncBackendConnector` private as these should never have been public.
80-
84+
- Allow cursor to use column name to get value by including the following functions that accept a column name parameter:
85+
`getBoolean`,`getBooleanOptional`,`getString`,`getStringOptional`, `getLong`,`getLongOptional`, `getDouble`,`getDoubleOptional`
86+
- BREAKING CHANGE: This should not affect anyone but made `KotlinPowerSyncCredentials`, `KotlinPowerSyncDatabase` and `KotlinPowerSyncBackendConnector` private as these should never have been public.
8187

8288
## 1.0.0-Beta.3
8389

84-
* BREAKING CHANGE: Update underlying powersync-kotlin package to BETA18.0 which requires transactions to become synchronous as opposed to asynchronous.
90+
- BREAKING CHANGE: Update underlying powersync-kotlin package to BETA18.0 which requires transactions to become synchronous as opposed to asynchronous.
8591
```swift
8692
try await database.writeTransaction { transaction in
8793
try await transaction.execute(
@@ -102,8 +108,8 @@ try await database.writeTransaction { transaction in
102108

103109
## 1.0.0-Beta.2
104110

105-
* Upgrade PowerSyncSqliteCore to 0.3.8
111+
- Upgrade PowerSyncSqliteCore to 0.3.8
106112

107113
## 1.0.0-Beta.1
108114

109-
* Initial Beta release
115+
- Initial Beta release

Tests/PowerSyncTests/AttachmentTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ func waitForMatch<T, E: Error>(
181181
where predicate: @escaping (T) -> Bool,
182182
timeout: TimeInterval
183183
) async throws -> T {
184-
var localIterator = iterator
185184
let timeoutNanoseconds = UInt64(timeout * 1_000_000_000)
186185

187186
return try await withThrowingTaskGroup(of: T.self) { group in
188187
// Task to wait for a matching value
189188
group.addTask {
189+
var localIterator = iterator
190190
while let value = try await localIterator.next() {
191191
if predicate(value) {
192192
return value

0 commit comments

Comments
 (0)