Skip to content

Commit 832f4a1

Browse files
committed
Allow passing params separately
1 parent 7ca39b3 commit 832f4a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/powersync_core/lib/src/database/powersync_db_mixin.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
3838
/// Use [attachedLogger] to propagate logs to [Logger.root] for custom logging.
3939
Logger get logger;
4040

41+
@Deprecated("This field is unused, pass params to connect() instead")
4142
Map<String, dynamic>? clientParams;
4243

4344
/// Current connection status.
@@ -281,7 +282,7 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
281282
SyncOptions? options,
282283
@Deprecated('Use SyncOptions.crudThrottleTime instead')
283284
Duration? crudThrottleTime,
284-
@Deprecated('Use SyncOptions.params instead') Map<String, dynamic>? params,
285+
Map<String, dynamic>? params,
285286
}) async {
286287
// The initialization process acquires a sync connect lock (through
287288
// updateSchema), so ensure the database is ready before we try to acquire
@@ -295,6 +296,7 @@ mixin PowerSyncDatabaseMixin implements SqliteConnection {
295296
params: options?.params ?? params,
296297
);
297298

299+
// ignore: deprecated_member_use_from_same_package
298300
clientParams = params;
299301
var thisConnectAborter = AbortController();
300302
final zone = Zone.current;

0 commit comments

Comments
 (0)