You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Changelog
2
2
3
-
# 1.0.0-Beta.14
3
+
# 1.0.0
4
4
5
5
- Improved the stability of watched queries. Watched queries were previously susceptible to runtime crashes if an exception was thrown in the update stream. Errors are now gracefully handled.
6
6
@@ -86,6 +86,35 @@ try await database.connect(
86
86
+ let time: Date? = db.currentStatus.lastSyncedAt
87
87
```
88
88
89
+
-`crudThrottleMs` and `retryDelayMs` in the `connect` method have been updated to `crudThrottle` and `retryDelay` which are now of type `TimeInterval`. Previously the parameters were specified in milliseconds, the `TimeInterval` typing now requires values to be specified in seconds.
90
+
91
+
```diff
92
+
try await database.connect(
93
+
connector: PowerSyncBackendConnector(),
94
+
- crudThrottleMs: 1000,
95
+
- retryDelayMs: 5000,
96
+
+ crudThrottle: 1,
97
+
+ retryDelay: 5,
98
+
params: [
99
+
"foo": .string("bar"),
100
+
]
101
+
)
102
+
```
103
+
104
+
-`throttleMs` in the watched query `WatchOptions` has been updated to `throttle` which is now of type `TimeInterval`. Previously the parameters were specified in milliseconds, the `TimeInterval` typing now requires values to be specified in seconds.
105
+
106
+
```diff
107
+
let stream = try database.watch(
108
+
options: WatchOptions(
109
+
sql: "SELECT name FROM users ORDER BY id",
110
+
- throttleMs: 1000,
111
+
+ throttle: 1,
112
+
mapper: { cursor in
113
+
try cursor.getString(index: 0)
114
+
}
115
+
))
116
+
```
117
+
89
118
# 1.0.0-Beta.13
90
119
91
120
- Update `powersync-kotlin` dependency to version `1.0.0-BETA32`, which includes:
0 commit comments