Skip to content

Commit 977fa0e

Browse files
more changelog
1 parent b71eca4 commit 977fa0e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
- Database and transaction/lock level query `execute` methods now have `@discardableResult` annotation.
1010

11+
- Query methods' `parameters` typing has been updated to `[Any?]` from `[Any]`. This makes passing `nil` or optional values to queries easier.
12+
1113
- `AttachmentContext`, `AttachmentQueue`, `AttachmentService` and `SyncingService` are are now explicitly declared as `open` classes, allowing them to be subclassed outside the defining module.
1214

1315
**BREAKING CHANGES**:
@@ -64,8 +66,8 @@ try await database.connect(
6466
- `SyncStatus` values now use Swift primitives for status attributes. `lastSyncedAt` now is of `Date` type.
6567

6668
```diff
67-
- let lastTime: Date? = db.currentStatus.lastSyncedAt?.flatMap {
68-
- Date(timeIntervalSince1970: $0.epochSeconds)
69+
- let lastTime: Date? = db.currentStatus.lastSyncedAt.map {
70+
- Date(timeIntervalSince1970: TimeInterval($0.epochSeconds))
6971
- }
7072
+ let time: Date? = db.currentStatus.lastSyncedAt
7173
```

Sources/PowerSync/Protocol/db/SqlCursor.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public protocol SqlCursor {
125125
}
126126

127127
/// An error type representing issues encountered while working with a `SqlCursor`.
128-
enum SqlCursorError: Error {
128+
public enum SqlCursorError: Error {
129129
/// An expected column was not found.
130130
case columnNotFound(_ name: String)
131131

@@ -154,7 +154,7 @@ enum SqlCursorError: Error {
154154
}
155155
}
156156

157-
extension SqlCursorError: LocalizedError {
157+
public extension SqlCursorError: LocalizedError {
158158
public var errorDescription: String? {
159159
switch self {
160160
case .columnNotFound(let name):

0 commit comments

Comments
 (0)