@pol-studios/powersync 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-5FIMA26D.js +1 -0
- package/dist/{chunk-C2RSTGDC.js → chunk-62J2DPKX.js} +497 -43
- package/dist/chunk-62J2DPKX.js.map +1 -0
- package/dist/{chunk-GMFDCVMZ.js → chunk-KCDG2MNP.js} +161 -15
- package/dist/chunk-KCDG2MNP.js.map +1 -0
- package/dist/chunk-PAFBKNL3.js +99 -0
- package/dist/chunk-PAFBKNL3.js.map +1 -0
- package/dist/{chunk-OTJXIRWX.js → chunk-R4YFWQ3Q.js} +1 -1
- package/dist/chunk-R4YFWQ3Q.js.map +1 -0
- package/dist/connector/index.d.ts +2 -1
- package/dist/connector/index.js +4 -1
- package/dist/failed-upload-store-C0cLxxPz.d.ts +33 -0
- package/dist/{index-Cb-NI0Ct.d.ts → index-l3iL9Jte.d.ts} +72 -1
- package/dist/index.d.ts +142 -4
- package/dist/index.js +52 -6
- package/dist/index.native.d.ts +4 -3
- package/dist/index.native.js +52 -6
- package/dist/index.web.d.ts +4 -3
- package/dist/index.web.js +52 -6
- package/dist/provider/index.d.ts +258 -3
- package/dist/provider/index.js +28 -3
- package/dist/sync/index.d.ts +1 -0
- package/dist/sync/index.js +9 -3
- package/package.json +1 -1
- package/dist/chunk-7JQZBZ5N.js +0 -1
- package/dist/chunk-C2RSTGDC.js.map +0 -1
- package/dist/chunk-GMFDCVMZ.js.map +0 -1
- package/dist/chunk-OTJXIRWX.js.map +0 -1
- /package/dist/{chunk-7JQZBZ5N.js.map → chunk-5FIMA26D.js.map} +0 -0
package/dist/index.native.js
CHANGED
|
@@ -2,29 +2,41 @@ import "./chunk-OLHGI472.js";
|
|
|
2
2
|
import "./chunk-32OLICZO.js";
|
|
3
3
|
import {
|
|
4
4
|
AttachmentQueueContext,
|
|
5
|
+
CompletedTransactionsContext,
|
|
5
6
|
ConflictBus,
|
|
6
7
|
ConnectionHealthContext,
|
|
8
|
+
ConnectionStatusContext,
|
|
9
|
+
FailedTransactionsContext,
|
|
10
|
+
PendingMutationsContext,
|
|
7
11
|
PowerSyncContext,
|
|
8
12
|
PowerSyncProvider,
|
|
13
|
+
SyncActivityContext,
|
|
9
14
|
SyncMetricsContext,
|
|
15
|
+
SyncModeContext,
|
|
10
16
|
SyncStatusContext,
|
|
11
17
|
useAttachmentQueue,
|
|
18
|
+
useCompletedTransactionsContext,
|
|
12
19
|
useConnectionHealth,
|
|
20
|
+
useConnectionStatus,
|
|
13
21
|
useDatabase,
|
|
14
22
|
useDownloadProgress,
|
|
15
23
|
useEntitySyncStatus,
|
|
24
|
+
useFailedTransactionsContext,
|
|
16
25
|
useIsSyncing,
|
|
17
26
|
useOnlineStatus,
|
|
18
27
|
usePendingMutations,
|
|
28
|
+
usePendingMutationsContext,
|
|
19
29
|
usePlatform,
|
|
20
30
|
usePowerSync,
|
|
21
31
|
useSyncActivity,
|
|
32
|
+
useSyncActivityContext,
|
|
22
33
|
useSyncControl,
|
|
23
34
|
useSyncMetrics,
|
|
24
35
|
useSyncMode,
|
|
36
|
+
useSyncModeContext,
|
|
25
37
|
useSyncStatus,
|
|
26
38
|
useUploadStatus
|
|
27
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KCDG2MNP.js";
|
|
28
40
|
import {
|
|
29
41
|
AttachmentQueue,
|
|
30
42
|
AttachmentState,
|
|
@@ -32,7 +44,7 @@ import {
|
|
|
32
44
|
DEFAULT_COMPRESSION_CONFIG,
|
|
33
45
|
DEFAULT_DOWNLOAD_CONFIG
|
|
34
46
|
} from "./chunk-V6LJ6MR2.js";
|
|
35
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-5FIMA26D.js";
|
|
36
48
|
import {
|
|
37
49
|
DEFAULT_CONNECTION_HEALTH,
|
|
38
50
|
DEFAULT_SYNC_CONFIG,
|
|
@@ -41,7 +53,7 @@ import {
|
|
|
41
53
|
HealthMonitor,
|
|
42
54
|
MetricsCollector,
|
|
43
55
|
SyncStatusTracker
|
|
44
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-R4YFWQ3Q.js";
|
|
45
57
|
import "./chunk-W7HSR35B.js";
|
|
46
58
|
import {
|
|
47
59
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
@@ -80,13 +92,25 @@ import {
|
|
|
80
92
|
} from "./chunk-3AYXHQ4W.js";
|
|
81
93
|
import "./chunk-VJCL2SWD.js";
|
|
82
94
|
import {
|
|
95
|
+
AbortError,
|
|
96
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
97
|
+
DEFAULT_RETRY_CONFIG,
|
|
98
|
+
RetryExhaustedError,
|
|
83
99
|
SupabaseConnector,
|
|
100
|
+
addJitter,
|
|
101
|
+
calculateBackoffDelay,
|
|
84
102
|
defaultSchemaRouter,
|
|
85
103
|
detectConflicts,
|
|
86
104
|
fetchServerVersion,
|
|
87
105
|
getLocalVersion,
|
|
88
|
-
hasVersionColumn
|
|
89
|
-
|
|
106
|
+
hasVersionColumn,
|
|
107
|
+
sleep,
|
|
108
|
+
withExponentialBackoff
|
|
109
|
+
} from "./chunk-62J2DPKX.js";
|
|
110
|
+
import {
|
|
111
|
+
FailedUploadStore,
|
|
112
|
+
failedUploadStore
|
|
113
|
+
} from "./chunk-PAFBKNL3.js";
|
|
90
114
|
import {
|
|
91
115
|
AttachmentError,
|
|
92
116
|
ConfigurationError,
|
|
@@ -106,6 +130,7 @@ import {
|
|
|
106
130
|
export {
|
|
107
131
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
108
132
|
ATTACHMENT_RETRY_DELAY_MS,
|
|
133
|
+
AbortError,
|
|
109
134
|
AttachmentError,
|
|
110
135
|
AttachmentQueue,
|
|
111
136
|
AttachmentQueueContext,
|
|
@@ -113,12 +138,15 @@ export {
|
|
|
113
138
|
COMPRESSION_MAX_WIDTH,
|
|
114
139
|
COMPRESSION_SKIP_SIZE_BYTES,
|
|
115
140
|
COMPRESSION_TARGET_SIZE_BYTES,
|
|
141
|
+
CompletedTransactionsContext,
|
|
116
142
|
ConfigurationError,
|
|
117
143
|
ConflictBus,
|
|
118
144
|
ConnectionHealthContext,
|
|
145
|
+
ConnectionStatusContext,
|
|
119
146
|
ConnectorError,
|
|
120
147
|
DEFAULT_ATTACHMENT_CACHE_SIZE,
|
|
121
148
|
DEFAULT_ATTACHMENT_CONCURRENCY,
|
|
149
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
122
150
|
DEFAULT_CACHE_CONFIG,
|
|
123
151
|
DEFAULT_COMPRESSION_CONFIG,
|
|
124
152
|
DEFAULT_COMPRESSION_QUALITY,
|
|
@@ -127,6 +155,7 @@ export {
|
|
|
127
155
|
DEFAULT_MAX_RETRY_ATTEMPTS,
|
|
128
156
|
DEFAULT_RETRY_BACKOFF_MULTIPLIER,
|
|
129
157
|
DEFAULT_RETRY_BASE_DELAY_MS,
|
|
158
|
+
DEFAULT_RETRY_CONFIG,
|
|
130
159
|
DEFAULT_RETRY_MAX_DELAY_MS,
|
|
131
160
|
DEFAULT_SYNC_CONFIG,
|
|
132
161
|
DEFAULT_SYNC_INTERVAL_MS,
|
|
@@ -135,6 +164,8 @@ export {
|
|
|
135
164
|
DEFAULT_SYNC_STATUS,
|
|
136
165
|
DOWNLOAD_STOP_THRESHOLD,
|
|
137
166
|
EVICTION_TRIGGER_THRESHOLD,
|
|
167
|
+
FailedTransactionsContext,
|
|
168
|
+
FailedUploadStore,
|
|
138
169
|
HEALTH_CHECK_INTERVAL_MS,
|
|
139
170
|
HEALTH_CHECK_TIMEOUT_MS,
|
|
140
171
|
HealthMonitor,
|
|
@@ -142,10 +173,12 @@ export {
|
|
|
142
173
|
LATENCY_DEGRADED_THRESHOLD_MS,
|
|
143
174
|
MAX_CONSECUTIVE_FAILURES,
|
|
144
175
|
MetricsCollector,
|
|
176
|
+
PendingMutationsContext,
|
|
145
177
|
PlatformAdapterError,
|
|
146
178
|
PowerSyncContext,
|
|
147
179
|
PowerSyncError,
|
|
148
180
|
PowerSyncProvider,
|
|
181
|
+
RetryExhaustedError,
|
|
149
182
|
STATS_CACHE_TTL_MS,
|
|
150
183
|
STATUS_NOTIFY_THROTTLE_MS,
|
|
151
184
|
STORAGE_CRITICAL_THRESHOLD,
|
|
@@ -157,10 +190,14 @@ export {
|
|
|
157
190
|
STORAGE_KEY_SYNC_MODE,
|
|
158
191
|
STORAGE_WARNING_THRESHOLD,
|
|
159
192
|
SupabaseConnector,
|
|
193
|
+
SyncActivityContext,
|
|
160
194
|
SyncMetricsContext,
|
|
195
|
+
SyncModeContext,
|
|
161
196
|
SyncOperationError,
|
|
162
197
|
SyncStatusContext,
|
|
163
198
|
SyncStatusTracker,
|
|
199
|
+
addJitter,
|
|
200
|
+
calculateBackoffDelay,
|
|
164
201
|
classifyError,
|
|
165
202
|
classifySupabaseError,
|
|
166
203
|
createNativePlatformAdapter,
|
|
@@ -169,26 +206,35 @@ export {
|
|
|
169
206
|
detectConflicts,
|
|
170
207
|
extractEntityIds,
|
|
171
208
|
extractTableNames,
|
|
209
|
+
failedUploadStore,
|
|
172
210
|
fetchServerVersion,
|
|
173
211
|
generateFailureId,
|
|
174
212
|
getLocalVersion,
|
|
175
213
|
hasVersionColumn,
|
|
214
|
+
sleep,
|
|
176
215
|
toSyncOperationError,
|
|
177
216
|
useAttachmentQueue,
|
|
217
|
+
useCompletedTransactionsContext,
|
|
178
218
|
useConnectionHealth,
|
|
219
|
+
useConnectionStatus,
|
|
179
220
|
useDatabase,
|
|
180
221
|
useDownloadProgress,
|
|
181
222
|
useEntitySyncStatus,
|
|
223
|
+
useFailedTransactionsContext,
|
|
182
224
|
useIsSyncing,
|
|
183
225
|
useOnlineStatus,
|
|
184
226
|
usePendingMutations,
|
|
227
|
+
usePendingMutationsContext,
|
|
185
228
|
usePlatform,
|
|
186
229
|
usePowerSync,
|
|
187
230
|
useSyncActivity,
|
|
231
|
+
useSyncActivityContext,
|
|
188
232
|
useSyncControl,
|
|
189
233
|
useSyncMetrics,
|
|
190
234
|
useSyncMode,
|
|
235
|
+
useSyncModeContext,
|
|
191
236
|
useSyncStatus,
|
|
192
|
-
useUploadStatus
|
|
237
|
+
useUploadStatus,
|
|
238
|
+
withExponentialBackoff
|
|
193
239
|
};
|
|
194
240
|
//# sourceMappingURL=index.native.js.map
|
package/dist/index.web.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
export { A as AbstractPowerSyncDatabase, k as CacheStats, i as ClassifiedError, j as CompactResult, h as CompletedTransaction, b as ConnectionHealth, o as CountRow, C as CrudEntry, l as CrudTransaction, n as DbStatRow, D as DownloadProgress, E as EntitySyncState, F as FailedTransaction, r as FreelistCountRow, s as IntegrityCheckRow, I as IntegrityResult, q as PageCountRow, p as PageSizeRow, P as PowerSyncBackendConnector, m as SqliteTableRow, c as StorageInfo, d as StorageQuota, f as SyncError, g as SyncErrorType, e as SyncMetrics, S as SyncMode, a as SyncStatus, T as TableCacheStats } from './types-afHtE1U_.js';
|
|
2
2
|
export { ATTACHMENT_DOWNLOAD_TIMEOUT_MS, ATTACHMENT_RETRY_DELAY_MS, AttachmentError, COMPRESSION_MAX_WIDTH, COMPRESSION_SKIP_SIZE_BYTES, COMPRESSION_TARGET_SIZE_BYTES, ConfigurationError, ConnectorError, DEFAULT_ATTACHMENT_CACHE_SIZE, DEFAULT_ATTACHMENT_CONCURRENCY, DEFAULT_COMPRESSION_QUALITY, DEFAULT_MAX_RETRY_ATTEMPTS, DEFAULT_RETRY_BACKOFF_MULTIPLIER, DEFAULT_RETRY_BASE_DELAY_MS, DEFAULT_RETRY_MAX_DELAY_MS, DEFAULT_SYNC_INTERVAL_MS, DEFAULT_SYNC_MODE, DOWNLOAD_STOP_THRESHOLD, EVICTION_TRIGGER_THRESHOLD, HEALTH_CHECK_INTERVAL_MS, HEALTH_CHECK_TIMEOUT_MS, InitializationError, LATENCY_DEGRADED_THRESHOLD_MS, MAX_CONSECUTIVE_FAILURES, PlatformAdapterError, PowerSyncError, STATS_CACHE_TTL_MS, STATUS_NOTIFY_THROTTLE_MS, STORAGE_CRITICAL_THRESHOLD, STORAGE_KEY_ATTACHMENT_SETTINGS, STORAGE_KEY_ENABLED, STORAGE_KEY_METRICS, STORAGE_KEY_PAUSED, STORAGE_KEY_PREFIX, STORAGE_KEY_SYNC_MODE, STORAGE_WARNING_THRESHOLD, SyncOperationError, classifyError, classifySupabaseError, createSyncError, extractEntityIds, extractTableNames, generateFailureId, toSyncOperationError } from './core/index.js';
|
|
3
|
-
export {
|
|
3
|
+
export { f as ConflictBus, g as ConflictCheckResult, j as ConflictDetectionConfig, i as ConflictHandler, k as ConflictListener, h as ConflictResolution, C as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, l as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, S as SupabaseConnector, a as SupabaseConnectorOptions, d as defaultSchemaRouter } from './index-l3iL9Jte.js';
|
|
4
4
|
export { AttachmentQueue, AttachmentQueueConfig, AttachmentRecord, AttachmentSourceConfig, AttachmentState, AttachmentStatsRow, AttachmentStorageAdapter, AttachmentSyncStats, AttachmentSyncStatus, CacheConfig, CacheFileRow, CachedSizeRow, CompressionConfig, DEFAULT_CACHE_CONFIG, DEFAULT_COMPRESSION_CONFIG, DEFAULT_DOWNLOAD_CONFIG, DownloadConfig, DownloadPhase, DownloadStatus, EvictRow, IdRow } from './attachments/index.js';
|
|
5
5
|
export { e as HealthCheckResult, H as HealthMonitorOptions, M as MetricsCollectorOptions, P as PowerSyncRawStatus, c as SyncControlActions, f as SyncEvent, g as SyncEventListener, d as SyncOperationData, S as SyncScope, a as SyncStatusState, b as SyncStatusTrackerOptions, U as Unsubscribe } from './types-Cd7RhNqf.js';
|
|
6
6
|
export { HealthMonitor, MetricsCollector, SyncStatusTracker } from './sync/index.js';
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
7
|
+
export { F as FailedUpload, a as FailedUploadStore, f as failedUploadStore } from './failed-upload-store-C0cLxxPz.js';
|
|
8
|
+
export { AbortError, BackoffConfig, BackoffOptions, DEFAULT_BACKOFF_CONFIG, RetryExhaustedError, addJitter, calculateBackoffDelay, detectConflicts, fetchServerVersion, getLocalVersion, hasVersionColumn, sleep, withExponentialBackoff } from './index.js';
|
|
9
|
+
export { AttachmentQueueContext, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UploadStatusResult, useAttachmentQueue, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadStatus } from './provider/index.js';
|
|
9
10
|
export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
|
|
10
11
|
export { createWebPlatformAdapter } from './platform/index.web.js';
|
|
11
12
|
import '@supabase/supabase-js';
|
package/dist/index.web.js
CHANGED
|
@@ -2,29 +2,41 @@ import "./chunk-OLHGI472.js";
|
|
|
2
2
|
import "./chunk-32OLICZO.js";
|
|
3
3
|
import {
|
|
4
4
|
AttachmentQueueContext,
|
|
5
|
+
CompletedTransactionsContext,
|
|
5
6
|
ConflictBus,
|
|
6
7
|
ConnectionHealthContext,
|
|
8
|
+
ConnectionStatusContext,
|
|
9
|
+
FailedTransactionsContext,
|
|
10
|
+
PendingMutationsContext,
|
|
7
11
|
PowerSyncContext,
|
|
8
12
|
PowerSyncProvider,
|
|
13
|
+
SyncActivityContext,
|
|
9
14
|
SyncMetricsContext,
|
|
15
|
+
SyncModeContext,
|
|
10
16
|
SyncStatusContext,
|
|
11
17
|
useAttachmentQueue,
|
|
18
|
+
useCompletedTransactionsContext,
|
|
12
19
|
useConnectionHealth,
|
|
20
|
+
useConnectionStatus,
|
|
13
21
|
useDatabase,
|
|
14
22
|
useDownloadProgress,
|
|
15
23
|
useEntitySyncStatus,
|
|
24
|
+
useFailedTransactionsContext,
|
|
16
25
|
useIsSyncing,
|
|
17
26
|
useOnlineStatus,
|
|
18
27
|
usePendingMutations,
|
|
28
|
+
usePendingMutationsContext,
|
|
19
29
|
usePlatform,
|
|
20
30
|
usePowerSync,
|
|
21
31
|
useSyncActivity,
|
|
32
|
+
useSyncActivityContext,
|
|
22
33
|
useSyncControl,
|
|
23
34
|
useSyncMetrics,
|
|
24
35
|
useSyncMode,
|
|
36
|
+
useSyncModeContext,
|
|
25
37
|
useSyncStatus,
|
|
26
38
|
useUploadStatus
|
|
27
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-KCDG2MNP.js";
|
|
28
40
|
import {
|
|
29
41
|
AttachmentQueue,
|
|
30
42
|
AttachmentState,
|
|
@@ -32,7 +44,7 @@ import {
|
|
|
32
44
|
DEFAULT_COMPRESSION_CONFIG,
|
|
33
45
|
DEFAULT_DOWNLOAD_CONFIG
|
|
34
46
|
} from "./chunk-V6LJ6MR2.js";
|
|
35
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-5FIMA26D.js";
|
|
36
48
|
import {
|
|
37
49
|
DEFAULT_CONNECTION_HEALTH,
|
|
38
50
|
DEFAULT_SYNC_CONFIG,
|
|
@@ -41,7 +53,7 @@ import {
|
|
|
41
53
|
HealthMonitor,
|
|
42
54
|
MetricsCollector,
|
|
43
55
|
SyncStatusTracker
|
|
44
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-R4YFWQ3Q.js";
|
|
45
57
|
import "./chunk-W7HSR35B.js";
|
|
46
58
|
import {
|
|
47
59
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
@@ -80,13 +92,25 @@ import {
|
|
|
80
92
|
} from "./chunk-7EMDVIZX.js";
|
|
81
93
|
import "./chunk-VJCL2SWD.js";
|
|
82
94
|
import {
|
|
95
|
+
AbortError,
|
|
96
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
97
|
+
DEFAULT_RETRY_CONFIG,
|
|
98
|
+
RetryExhaustedError,
|
|
83
99
|
SupabaseConnector,
|
|
100
|
+
addJitter,
|
|
101
|
+
calculateBackoffDelay,
|
|
84
102
|
defaultSchemaRouter,
|
|
85
103
|
detectConflicts,
|
|
86
104
|
fetchServerVersion,
|
|
87
105
|
getLocalVersion,
|
|
88
|
-
hasVersionColumn
|
|
89
|
-
|
|
106
|
+
hasVersionColumn,
|
|
107
|
+
sleep,
|
|
108
|
+
withExponentialBackoff
|
|
109
|
+
} from "./chunk-62J2DPKX.js";
|
|
110
|
+
import {
|
|
111
|
+
FailedUploadStore,
|
|
112
|
+
failedUploadStore
|
|
113
|
+
} from "./chunk-PAFBKNL3.js";
|
|
90
114
|
import {
|
|
91
115
|
AttachmentError,
|
|
92
116
|
ConfigurationError,
|
|
@@ -106,6 +130,7 @@ import {
|
|
|
106
130
|
export {
|
|
107
131
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
108
132
|
ATTACHMENT_RETRY_DELAY_MS,
|
|
133
|
+
AbortError,
|
|
109
134
|
AttachmentError,
|
|
110
135
|
AttachmentQueue,
|
|
111
136
|
AttachmentQueueContext,
|
|
@@ -113,12 +138,15 @@ export {
|
|
|
113
138
|
COMPRESSION_MAX_WIDTH,
|
|
114
139
|
COMPRESSION_SKIP_SIZE_BYTES,
|
|
115
140
|
COMPRESSION_TARGET_SIZE_BYTES,
|
|
141
|
+
CompletedTransactionsContext,
|
|
116
142
|
ConfigurationError,
|
|
117
143
|
ConflictBus,
|
|
118
144
|
ConnectionHealthContext,
|
|
145
|
+
ConnectionStatusContext,
|
|
119
146
|
ConnectorError,
|
|
120
147
|
DEFAULT_ATTACHMENT_CACHE_SIZE,
|
|
121
148
|
DEFAULT_ATTACHMENT_CONCURRENCY,
|
|
149
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
122
150
|
DEFAULT_CACHE_CONFIG,
|
|
123
151
|
DEFAULT_COMPRESSION_CONFIG,
|
|
124
152
|
DEFAULT_COMPRESSION_QUALITY,
|
|
@@ -127,6 +155,7 @@ export {
|
|
|
127
155
|
DEFAULT_MAX_RETRY_ATTEMPTS,
|
|
128
156
|
DEFAULT_RETRY_BACKOFF_MULTIPLIER,
|
|
129
157
|
DEFAULT_RETRY_BASE_DELAY_MS,
|
|
158
|
+
DEFAULT_RETRY_CONFIG,
|
|
130
159
|
DEFAULT_RETRY_MAX_DELAY_MS,
|
|
131
160
|
DEFAULT_SYNC_CONFIG,
|
|
132
161
|
DEFAULT_SYNC_INTERVAL_MS,
|
|
@@ -135,6 +164,8 @@ export {
|
|
|
135
164
|
DEFAULT_SYNC_STATUS,
|
|
136
165
|
DOWNLOAD_STOP_THRESHOLD,
|
|
137
166
|
EVICTION_TRIGGER_THRESHOLD,
|
|
167
|
+
FailedTransactionsContext,
|
|
168
|
+
FailedUploadStore,
|
|
138
169
|
HEALTH_CHECK_INTERVAL_MS,
|
|
139
170
|
HEALTH_CHECK_TIMEOUT_MS,
|
|
140
171
|
HealthMonitor,
|
|
@@ -142,10 +173,12 @@ export {
|
|
|
142
173
|
LATENCY_DEGRADED_THRESHOLD_MS,
|
|
143
174
|
MAX_CONSECUTIVE_FAILURES,
|
|
144
175
|
MetricsCollector,
|
|
176
|
+
PendingMutationsContext,
|
|
145
177
|
PlatformAdapterError,
|
|
146
178
|
PowerSyncContext,
|
|
147
179
|
PowerSyncError,
|
|
148
180
|
PowerSyncProvider,
|
|
181
|
+
RetryExhaustedError,
|
|
149
182
|
STATS_CACHE_TTL_MS,
|
|
150
183
|
STATUS_NOTIFY_THROTTLE_MS,
|
|
151
184
|
STORAGE_CRITICAL_THRESHOLD,
|
|
@@ -157,10 +190,14 @@ export {
|
|
|
157
190
|
STORAGE_KEY_SYNC_MODE,
|
|
158
191
|
STORAGE_WARNING_THRESHOLD,
|
|
159
192
|
SupabaseConnector,
|
|
193
|
+
SyncActivityContext,
|
|
160
194
|
SyncMetricsContext,
|
|
195
|
+
SyncModeContext,
|
|
161
196
|
SyncOperationError,
|
|
162
197
|
SyncStatusContext,
|
|
163
198
|
SyncStatusTracker,
|
|
199
|
+
addJitter,
|
|
200
|
+
calculateBackoffDelay,
|
|
164
201
|
classifyError,
|
|
165
202
|
classifySupabaseError,
|
|
166
203
|
createSyncError,
|
|
@@ -169,26 +206,35 @@ export {
|
|
|
169
206
|
detectConflicts,
|
|
170
207
|
extractEntityIds,
|
|
171
208
|
extractTableNames,
|
|
209
|
+
failedUploadStore,
|
|
172
210
|
fetchServerVersion,
|
|
173
211
|
generateFailureId,
|
|
174
212
|
getLocalVersion,
|
|
175
213
|
hasVersionColumn,
|
|
214
|
+
sleep,
|
|
176
215
|
toSyncOperationError,
|
|
177
216
|
useAttachmentQueue,
|
|
217
|
+
useCompletedTransactionsContext,
|
|
178
218
|
useConnectionHealth,
|
|
219
|
+
useConnectionStatus,
|
|
179
220
|
useDatabase,
|
|
180
221
|
useDownloadProgress,
|
|
181
222
|
useEntitySyncStatus,
|
|
223
|
+
useFailedTransactionsContext,
|
|
182
224
|
useIsSyncing,
|
|
183
225
|
useOnlineStatus,
|
|
184
226
|
usePendingMutations,
|
|
227
|
+
usePendingMutationsContext,
|
|
185
228
|
usePlatform,
|
|
186
229
|
usePowerSync,
|
|
187
230
|
useSyncActivity,
|
|
231
|
+
useSyncActivityContext,
|
|
188
232
|
useSyncControl,
|
|
189
233
|
useSyncMetrics,
|
|
190
234
|
useSyncMode,
|
|
235
|
+
useSyncModeContext,
|
|
191
236
|
useSyncStatus,
|
|
192
|
-
useUploadStatus
|
|
237
|
+
useUploadStatus,
|
|
238
|
+
withExponentialBackoff
|
|
193
239
|
};
|
|
194
240
|
//# sourceMappingURL=index.web.js.map
|