@@ -11,9 +11,6 @@ import 'powersync_database.dart';
11
11
/// 1. Creating credentials for connecting to the PowerSync service.
12
12
/// 2. Applying local changes against the backend application server.
13
13
///
14
- /// [DevConnector] is provided as a quick starting point, without user management
15
- /// or significant security.
16
- ///
17
14
/// For production, use a custom implementation.
18
15
abstract class PowerSyncBackendConnector {
19
16
PowerSyncCredentials ? _cachedCredentials;
@@ -67,7 +64,7 @@ abstract class PowerSyncBackendConnector {
67
64
68
65
/// Upload local changes to the app backend.
69
66
///
70
- /// Use [PowerSyncDatabase.getCrudBatch] to get a batch of changes to upload. See [DevConnector] for an example implementation.
67
+ /// Use [PowerSyncDatabase.getCrudBatch] to get a batch of changes to upload.
71
68
///
72
69
/// Any thrown errors will result in a retry after the configured wait period (default: 5 seconds).
73
70
Future <void > uploadData (PowerSyncDatabase database);
@@ -153,6 +150,7 @@ class PowerSyncCredentials {
153
150
///
154
151
/// These cannot be used for the main PowerSync APIs. [DevConnector] uses these
155
152
/// credentials to automatically fetch [PowerSyncCredentials] .
153
+ @Deprecated ('We will be removing this in version 2.' )
156
154
class DevCredentials {
157
155
/// Dev endpoint.
158
156
String endpoint;
@@ -201,6 +199,7 @@ class DevCredentials {
201
199
///
202
200
/// Development mode is intended to get up and running quickly, but is not for
203
201
/// production use. For production, write a custom connector.
202
+ @Deprecated ('We will be removing this in version 2.' )
204
203
class DevConnector extends PowerSyncBackendConnector {
205
204
DevCredentials ? _inMemoryDevCredentials;
206
205
0 commit comments