@pol-studios/powersync 1.0.4 → 1.0.7
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/CacheSettingsManager-1exbOC6S.d.ts +261 -0
- package/dist/attachments/index.d.ts +65 -355
- package/dist/attachments/index.js +24 -6
- package/dist/{types-Cd7RhNqf.d.ts → background-sync-ChCXW-EV.d.ts} +53 -2
- package/dist/chunk-4C3RY5SU.js +204 -0
- package/dist/chunk-4C3RY5SU.js.map +1 -0
- package/dist/{chunk-3AYXHQ4W.js → chunk-53WH2JJV.js} +111 -47
- package/dist/chunk-53WH2JJV.js.map +1 -0
- package/dist/chunk-A4IBBWGO.js +377 -0
- package/dist/chunk-A4IBBWGO.js.map +1 -0
- package/dist/chunk-BREGB4WL.js +1768 -0
- package/dist/chunk-BREGB4WL.js.map +1 -0
- package/dist/{chunk-EJ23MXPQ.js → chunk-CGL33PL4.js} +3 -1
- package/dist/chunk-CGL33PL4.js.map +1 -0
- package/dist/chunk-DGUM43GV.js +11 -0
- package/dist/chunk-DHYUBVP7.js +131 -0
- package/dist/chunk-DHYUBVP7.js.map +1 -0
- package/dist/chunk-FV2HXEIY.js +124 -0
- package/dist/chunk-FV2HXEIY.js.map +1 -0
- package/dist/chunk-GKF7TOMT.js +1 -0
- package/dist/{chunk-OTJXIRWX.js → chunk-H772V6XQ.js} +304 -51
- package/dist/chunk-H772V6XQ.js.map +1 -0
- package/dist/{chunk-C2RSTGDC.js → chunk-HFOFLW5F.js} +525 -87
- package/dist/chunk-HFOFLW5F.js.map +1 -0
- package/dist/chunk-KGSFAE5B.js +1 -0
- package/dist/chunk-LNL64IJZ.js +1 -0
- package/dist/chunk-MKD2VCX3.js +32 -0
- package/dist/chunk-MKD2VCX3.js.map +1 -0
- package/dist/{chunk-7EMDVIZX.js → chunk-N75DEF5J.js} +19 -1
- package/dist/chunk-N75DEF5J.js.map +1 -0
- package/dist/chunk-P6WOZO7H.js +49 -0
- package/dist/chunk-P6WOZO7H.js.map +1 -0
- package/dist/chunk-TGBT5XBE.js +1 -0
- package/dist/chunk-TGBT5XBE.js.map +1 -0
- package/dist/chunk-UEYRTLKE.js +72 -0
- package/dist/chunk-UEYRTLKE.js.map +1 -0
- package/dist/chunk-WGHNIAF7.js +329 -0
- package/dist/chunk-WGHNIAF7.js.map +1 -0
- package/dist/chunk-WQ5MPAVC.js +449 -0
- package/dist/chunk-WQ5MPAVC.js.map +1 -0
- package/dist/{chunk-FPTDATY5.js → chunk-XQAJM2MW.js} +22 -11
- package/dist/chunk-XQAJM2MW.js.map +1 -0
- package/dist/chunk-YSTEESEG.js +676 -0
- package/dist/chunk-YSTEESEG.js.map +1 -0
- package/dist/chunk-ZEOKPWUC.js +1165 -0
- package/dist/chunk-ZEOKPWUC.js.map +1 -0
- package/dist/connector/index.d.ts +182 -2
- package/dist/connector/index.js +14 -3
- package/dist/core/index.d.ts +5 -3
- package/dist/core/index.js +5 -2
- package/dist/error/index.d.ts +54 -0
- package/dist/error/index.js +8 -0
- package/dist/error/index.js.map +1 -0
- package/dist/index.d.ts +237 -11
- package/dist/index.js +183 -27
- package/dist/index.native.d.ts +20 -9
- package/dist/index.native.js +183 -28
- package/dist/index.web.d.ts +20 -9
- package/dist/index.web.js +184 -28
- package/dist/maintenance/index.d.ts +118 -0
- package/dist/maintenance/index.js +17 -0
- package/dist/maintenance/index.js.map +1 -0
- package/dist/platform/index.d.ts +16 -1
- package/dist/platform/index.js +2 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.native.d.ts +2 -2
- package/dist/platform/index.native.js +2 -1
- package/dist/platform/index.web.d.ts +1 -1
- package/dist/platform/index.web.js +2 -1
- package/dist/pol-attachment-queue-C7YNXXhK.d.ts +676 -0
- package/dist/provider/index.d.ts +693 -12
- package/dist/provider/index.js +57 -12
- package/dist/storage/index.d.ts +6 -0
- package/dist/storage/index.js +28 -0
- package/dist/storage/index.js.map +1 -0
- package/dist/storage/index.native.d.ts +6 -0
- package/dist/storage/index.native.js +26 -0
- package/dist/storage/index.native.js.map +1 -0
- package/dist/storage/index.web.d.ts +6 -0
- package/dist/storage/index.web.js +26 -0
- package/dist/storage/index.web.js.map +1 -0
- package/dist/storage/upload/index.d.ts +55 -0
- package/dist/storage/upload/index.js +15 -0
- package/dist/storage/upload/index.js.map +1 -0
- package/dist/storage/upload/index.native.d.ts +57 -0
- package/dist/storage/upload/index.native.js +14 -0
- package/dist/storage/upload/index.native.js.map +1 -0
- package/dist/storage/upload/index.web.d.ts +5 -0
- package/dist/storage/upload/index.web.js +14 -0
- package/dist/storage/upload/index.web.js.map +1 -0
- package/dist/{index-Cb-NI0Ct.d.ts → supabase-connector-qLm-WHkM.d.ts} +146 -10
- package/dist/sync/index.d.ts +288 -22
- package/dist/sync/index.js +23 -5
- package/dist/types-BVacP54t.d.ts +52 -0
- package/dist/types-Bgvx7-E8.d.ts +187 -0
- package/dist/{types-afHtE1U_.d.ts → types-CDqWh56B.d.ts} +2 -0
- package/package.json +72 -2
- package/dist/chunk-32OLICZO.js +0 -1
- package/dist/chunk-3AYXHQ4W.js.map +0 -1
- package/dist/chunk-7EMDVIZX.js.map +0 -1
- package/dist/chunk-7JQZBZ5N.js +0 -1
- package/dist/chunk-C2RSTGDC.js.map +0 -1
- package/dist/chunk-EJ23MXPQ.js.map +0 -1
- package/dist/chunk-FPTDATY5.js.map +0 -1
- package/dist/chunk-GMFDCVMZ.js +0 -1285
- package/dist/chunk-GMFDCVMZ.js.map +0 -1
- package/dist/chunk-OLHGI472.js +0 -1
- package/dist/chunk-OTJXIRWX.js.map +0 -1
- package/dist/chunk-V6LJ6MR2.js +0 -740
- package/dist/chunk-V6LJ6MR2.js.map +0 -1
- package/dist/chunk-VJCL2SWD.js +0 -1
- /package/dist/{chunk-32OLICZO.js.map → chunk-DGUM43GV.js.map} +0 -0
- /package/dist/{chunk-7JQZBZ5N.js.map → chunk-GKF7TOMT.js.map} +0 -0
- /package/dist/{chunk-OLHGI472.js.map → chunk-KGSFAE5B.js.map} +0 -0
- /package/dist/{chunk-VJCL2SWD.js.map → chunk-LNL64IJZ.js.map} +0 -0
package/dist/index.native.js
CHANGED
|
@@ -1,47 +1,117 @@
|
|
|
1
|
-
import "./chunk-
|
|
2
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-KGSFAE5B.js";
|
|
2
|
+
import "./chunk-GKF7TOMT.js";
|
|
3
3
|
import {
|
|
4
|
-
AttachmentQueueContext,
|
|
5
4
|
ConflictBus,
|
|
5
|
+
OfflineDataProvider,
|
|
6
|
+
PowerSyncProvider,
|
|
7
|
+
ProviderBridge
|
|
8
|
+
} from "./chunk-BREGB4WL.js";
|
|
9
|
+
import {
|
|
10
|
+
PowerSyncErrorBoundary
|
|
11
|
+
} from "./chunk-P6WOZO7H.js";
|
|
12
|
+
import {
|
|
13
|
+
ATTACHMENT_TABLE,
|
|
14
|
+
AbstractAttachmentQueue,
|
|
15
|
+
AttachmentState,
|
|
16
|
+
AttachmentTable,
|
|
17
|
+
DEFAULT_ATTACHMENT_QUEUE_OPTIONS,
|
|
18
|
+
DEFAULT_CACHE_CONFIG,
|
|
19
|
+
DEFAULT_COMPRESSION_CONFIG,
|
|
20
|
+
DEFAULT_UPLOAD_CONFIG,
|
|
21
|
+
EncodingType,
|
|
22
|
+
PolAttachmentQueue,
|
|
23
|
+
PolAttachmentState,
|
|
24
|
+
PolStorageAdapter,
|
|
25
|
+
createPolAttachmentQueue
|
|
26
|
+
} from "./chunk-ZEOKPWUC.js";
|
|
27
|
+
import {
|
|
28
|
+
DeadLetterQueue,
|
|
29
|
+
createDeadLetterEntry,
|
|
30
|
+
defineBackgroundSyncTask,
|
|
31
|
+
generateDLQEntryId,
|
|
32
|
+
initializeBackgroundSync,
|
|
33
|
+
isBackgroundSyncRegistered,
|
|
34
|
+
registerBackgroundSync,
|
|
35
|
+
unregisterBackgroundSync
|
|
36
|
+
} from "./chunk-A4IBBWGO.js";
|
|
37
|
+
import {
|
|
38
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
39
|
+
DEFAULT_SYNC_CONFIG,
|
|
40
|
+
DEFAULT_SYNC_METRICS,
|
|
41
|
+
DEFAULT_SYNC_STATUS,
|
|
42
|
+
HealthMonitor,
|
|
43
|
+
MetricsCollector,
|
|
44
|
+
SyncStatusTracker
|
|
45
|
+
} from "./chunk-H772V6XQ.js";
|
|
46
|
+
import {
|
|
47
|
+
checkIntegrityImpl,
|
|
48
|
+
checkStorageQuotaImpl,
|
|
49
|
+
compactDatabaseImpl,
|
|
50
|
+
formatBytes,
|
|
51
|
+
getCacheStatsImpl,
|
|
52
|
+
useDatabaseMaintenance
|
|
53
|
+
} from "./chunk-WGHNIAF7.js";
|
|
54
|
+
import {
|
|
55
|
+
AttachmentQueueContext,
|
|
56
|
+
CompletedTransactionsContext,
|
|
6
57
|
ConnectionHealthContext,
|
|
58
|
+
ConnectionStatusContext,
|
|
59
|
+
FailedTransactionsContext,
|
|
60
|
+
PendingMutationsContext,
|
|
7
61
|
PowerSyncContext,
|
|
8
|
-
|
|
62
|
+
SyncActivityContext,
|
|
9
63
|
SyncMetricsContext,
|
|
64
|
+
SyncModeContext,
|
|
10
65
|
SyncStatusContext,
|
|
11
66
|
useAttachmentQueue,
|
|
67
|
+
useAttachmentQueueReady,
|
|
68
|
+
useCompletedTransactions,
|
|
69
|
+
useCompletedTransactionsContext,
|
|
12
70
|
useConnectionHealth,
|
|
71
|
+
useConnectionStatus,
|
|
13
72
|
useDatabase,
|
|
14
73
|
useDownloadProgress,
|
|
15
74
|
useEntitySyncStatus,
|
|
75
|
+
useFailedTransactions,
|
|
76
|
+
useFailedTransactionsContext,
|
|
16
77
|
useIsSyncing,
|
|
17
78
|
useOnlineStatus,
|
|
18
79
|
usePendingMutations,
|
|
80
|
+
usePendingMutationsContext,
|
|
19
81
|
usePlatform,
|
|
20
82
|
usePowerSync,
|
|
21
83
|
useSyncActivity,
|
|
84
|
+
useSyncActivityContext,
|
|
22
85
|
useSyncControl,
|
|
23
86
|
useSyncMetrics,
|
|
24
87
|
useSyncMode,
|
|
88
|
+
useSyncModeContext,
|
|
25
89
|
useSyncStatus,
|
|
26
90
|
useUploadStatus
|
|
27
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-YSTEESEG.js";
|
|
92
|
+
import "./chunk-LNL64IJZ.js";
|
|
28
93
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
94
|
+
CacheSettingsManager,
|
|
95
|
+
DEFAULT_CACHE_SETTINGS,
|
|
96
|
+
SupabaseStorageAdapter,
|
|
97
|
+
createSupabaseStorageAdapter,
|
|
98
|
+
getExtensionFromMimeType,
|
|
99
|
+
getMimeType,
|
|
100
|
+
getMimeTypeFromPath,
|
|
101
|
+
isAudioMimeType,
|
|
102
|
+
isDocumentMimeType,
|
|
103
|
+
isImageMimeType,
|
|
104
|
+
isVideoMimeType
|
|
105
|
+
} from "./chunk-WQ5MPAVC.js";
|
|
106
|
+
import "./chunk-TGBT5XBE.js";
|
|
36
107
|
import {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} from "./chunk-OTJXIRWX.js";
|
|
108
|
+
SupabaseUploadHandler,
|
|
109
|
+
createSupabaseUploadHandler
|
|
110
|
+
} from "./chunk-UEYRTLKE.js";
|
|
111
|
+
import {
|
|
112
|
+
DEFAULT_UPLOAD_NOTIFICATION,
|
|
113
|
+
resolveBucketFromConfig
|
|
114
|
+
} from "./chunk-MKD2VCX3.js";
|
|
45
115
|
import "./chunk-W7HSR35B.js";
|
|
46
116
|
import {
|
|
47
117
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
@@ -68,25 +138,41 @@ import {
|
|
|
68
138
|
STATUS_NOTIFY_THROTTLE_MS,
|
|
69
139
|
STORAGE_CRITICAL_THRESHOLD,
|
|
70
140
|
STORAGE_KEY_ATTACHMENT_SETTINGS,
|
|
141
|
+
STORAGE_KEY_AUTO_OFFLINE,
|
|
71
142
|
STORAGE_KEY_ENABLED,
|
|
72
143
|
STORAGE_KEY_METRICS,
|
|
73
144
|
STORAGE_KEY_PAUSED,
|
|
74
145
|
STORAGE_KEY_PREFIX,
|
|
75
146
|
STORAGE_KEY_SYNC_MODE,
|
|
76
147
|
STORAGE_WARNING_THRESHOLD
|
|
77
|
-
} from "./chunk-
|
|
148
|
+
} from "./chunk-CGL33PL4.js";
|
|
78
149
|
import {
|
|
79
150
|
createNativePlatformAdapter
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import
|
|
151
|
+
} from "./chunk-53WH2JJV.js";
|
|
152
|
+
import {
|
|
153
|
+
CircuitBreaker,
|
|
154
|
+
CircuitOpenError,
|
|
155
|
+
DEFAULT_CIRCUIT_BREAKER_CONFIG
|
|
156
|
+
} from "./chunk-4C3RY5SU.js";
|
|
82
157
|
import {
|
|
158
|
+
ConflictDetectionError,
|
|
159
|
+
DEFAULT_RETRY_CONFIG,
|
|
83
160
|
SupabaseConnector,
|
|
84
161
|
defaultSchemaRouter,
|
|
85
162
|
detectConflicts,
|
|
86
163
|
fetchServerVersion,
|
|
87
164
|
getLocalVersion,
|
|
88
165
|
hasVersionColumn
|
|
89
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-HFOFLW5F.js";
|
|
167
|
+
import {
|
|
168
|
+
AbortError,
|
|
169
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
170
|
+
RetryExhaustedError,
|
|
171
|
+
addJitter,
|
|
172
|
+
calculateBackoffDelay,
|
|
173
|
+
sleep,
|
|
174
|
+
withExponentialBackoff
|
|
175
|
+
} from "./chunk-FV2HXEIY.js";
|
|
90
176
|
import {
|
|
91
177
|
AttachmentError,
|
|
92
178
|
ConfigurationError,
|
|
@@ -102,39 +188,58 @@ import {
|
|
|
102
188
|
extractTableNames,
|
|
103
189
|
generateFailureId,
|
|
104
190
|
toSyncOperationError
|
|
105
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-XQAJM2MW.js";
|
|
192
|
+
import "./chunk-DGUM43GV.js";
|
|
106
193
|
export {
|
|
107
194
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
108
195
|
ATTACHMENT_RETRY_DELAY_MS,
|
|
196
|
+
ATTACHMENT_TABLE,
|
|
197
|
+
AbortError,
|
|
198
|
+
AbstractAttachmentQueue,
|
|
109
199
|
AttachmentError,
|
|
110
|
-
AttachmentQueue,
|
|
111
200
|
AttachmentQueueContext,
|
|
112
201
|
AttachmentState,
|
|
202
|
+
AttachmentTable,
|
|
113
203
|
COMPRESSION_MAX_WIDTH,
|
|
114
204
|
COMPRESSION_SKIP_SIZE_BYTES,
|
|
115
205
|
COMPRESSION_TARGET_SIZE_BYTES,
|
|
206
|
+
CacheSettingsManager,
|
|
207
|
+
CircuitBreaker,
|
|
208
|
+
CircuitOpenError,
|
|
209
|
+
CompletedTransactionsContext,
|
|
116
210
|
ConfigurationError,
|
|
117
211
|
ConflictBus,
|
|
212
|
+
ConflictDetectionError,
|
|
118
213
|
ConnectionHealthContext,
|
|
214
|
+
ConnectionStatusContext,
|
|
119
215
|
ConnectorError,
|
|
120
216
|
DEFAULT_ATTACHMENT_CACHE_SIZE,
|
|
121
217
|
DEFAULT_ATTACHMENT_CONCURRENCY,
|
|
218
|
+
DEFAULT_ATTACHMENT_QUEUE_OPTIONS,
|
|
219
|
+
DEFAULT_BACKOFF_CONFIG,
|
|
122
220
|
DEFAULT_CACHE_CONFIG,
|
|
221
|
+
DEFAULT_CACHE_SETTINGS,
|
|
222
|
+
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
123
223
|
DEFAULT_COMPRESSION_CONFIG,
|
|
124
224
|
DEFAULT_COMPRESSION_QUALITY,
|
|
125
225
|
DEFAULT_CONNECTION_HEALTH,
|
|
126
|
-
DEFAULT_DOWNLOAD_CONFIG,
|
|
127
226
|
DEFAULT_MAX_RETRY_ATTEMPTS,
|
|
128
227
|
DEFAULT_RETRY_BACKOFF_MULTIPLIER,
|
|
129
228
|
DEFAULT_RETRY_BASE_DELAY_MS,
|
|
229
|
+
DEFAULT_RETRY_CONFIG,
|
|
130
230
|
DEFAULT_RETRY_MAX_DELAY_MS,
|
|
131
231
|
DEFAULT_SYNC_CONFIG,
|
|
132
232
|
DEFAULT_SYNC_INTERVAL_MS,
|
|
133
233
|
DEFAULT_SYNC_METRICS,
|
|
134
234
|
DEFAULT_SYNC_MODE,
|
|
135
235
|
DEFAULT_SYNC_STATUS,
|
|
236
|
+
DEFAULT_UPLOAD_CONFIG,
|
|
237
|
+
DEFAULT_UPLOAD_NOTIFICATION,
|
|
136
238
|
DOWNLOAD_STOP_THRESHOLD,
|
|
239
|
+
DeadLetterQueue,
|
|
137
240
|
EVICTION_TRIGGER_THRESHOLD,
|
|
241
|
+
EncodingType,
|
|
242
|
+
FailedTransactionsContext,
|
|
138
243
|
HEALTH_CHECK_INTERVAL_MS,
|
|
139
244
|
HEALTH_CHECK_TIMEOUT_MS,
|
|
140
245
|
HealthMonitor,
|
|
@@ -142,14 +247,23 @@ export {
|
|
|
142
247
|
LATENCY_DEGRADED_THRESHOLD_MS,
|
|
143
248
|
MAX_CONSECUTIVE_FAILURES,
|
|
144
249
|
MetricsCollector,
|
|
250
|
+
OfflineDataProvider,
|
|
251
|
+
PendingMutationsContext,
|
|
145
252
|
PlatformAdapterError,
|
|
253
|
+
PolAttachmentQueue,
|
|
254
|
+
PolAttachmentState,
|
|
255
|
+
PolStorageAdapter,
|
|
146
256
|
PowerSyncContext,
|
|
147
257
|
PowerSyncError,
|
|
258
|
+
PowerSyncErrorBoundary,
|
|
148
259
|
PowerSyncProvider,
|
|
260
|
+
ProviderBridge,
|
|
261
|
+
RetryExhaustedError,
|
|
149
262
|
STATS_CACHE_TTL_MS,
|
|
150
263
|
STATUS_NOTIFY_THROTTLE_MS,
|
|
151
264
|
STORAGE_CRITICAL_THRESHOLD,
|
|
152
265
|
STORAGE_KEY_ATTACHMENT_SETTINGS,
|
|
266
|
+
STORAGE_KEY_AUTO_OFFLINE,
|
|
153
267
|
STORAGE_KEY_ENABLED,
|
|
154
268
|
STORAGE_KEY_METRICS,
|
|
155
269
|
STORAGE_KEY_PAUSED,
|
|
@@ -157,38 +271,79 @@ export {
|
|
|
157
271
|
STORAGE_KEY_SYNC_MODE,
|
|
158
272
|
STORAGE_WARNING_THRESHOLD,
|
|
159
273
|
SupabaseConnector,
|
|
274
|
+
SupabaseStorageAdapter,
|
|
275
|
+
SupabaseUploadHandler,
|
|
276
|
+
SyncActivityContext,
|
|
160
277
|
SyncMetricsContext,
|
|
278
|
+
SyncModeContext,
|
|
161
279
|
SyncOperationError,
|
|
162
280
|
SyncStatusContext,
|
|
163
281
|
SyncStatusTracker,
|
|
282
|
+
addJitter,
|
|
283
|
+
calculateBackoffDelay,
|
|
284
|
+
checkIntegrityImpl,
|
|
285
|
+
checkStorageQuotaImpl,
|
|
164
286
|
classifyError,
|
|
165
287
|
classifySupabaseError,
|
|
288
|
+
compactDatabaseImpl,
|
|
289
|
+
createDeadLetterEntry,
|
|
166
290
|
createNativePlatformAdapter,
|
|
291
|
+
createPolAttachmentQueue,
|
|
292
|
+
createSupabaseStorageAdapter,
|
|
293
|
+
createSupabaseUploadHandler,
|
|
167
294
|
createSyncError,
|
|
168
295
|
defaultSchemaRouter,
|
|
296
|
+
defineBackgroundSyncTask,
|
|
169
297
|
detectConflicts,
|
|
170
298
|
extractEntityIds,
|
|
171
299
|
extractTableNames,
|
|
172
300
|
fetchServerVersion,
|
|
301
|
+
formatBytes,
|
|
302
|
+
generateDLQEntryId,
|
|
173
303
|
generateFailureId,
|
|
304
|
+
getCacheStatsImpl,
|
|
305
|
+
getExtensionFromMimeType,
|
|
174
306
|
getLocalVersion,
|
|
307
|
+
getMimeType,
|
|
308
|
+
getMimeTypeFromPath,
|
|
175
309
|
hasVersionColumn,
|
|
310
|
+
initializeBackgroundSync,
|
|
311
|
+
isAudioMimeType,
|
|
312
|
+
isBackgroundSyncRegistered,
|
|
313
|
+
isDocumentMimeType,
|
|
314
|
+
isImageMimeType,
|
|
315
|
+
isVideoMimeType,
|
|
316
|
+
registerBackgroundSync,
|
|
317
|
+
resolveBucketFromConfig,
|
|
318
|
+
sleep,
|
|
176
319
|
toSyncOperationError,
|
|
320
|
+
unregisterBackgroundSync,
|
|
177
321
|
useAttachmentQueue,
|
|
322
|
+
useAttachmentQueueReady,
|
|
323
|
+
useCompletedTransactions,
|
|
324
|
+
useCompletedTransactionsContext,
|
|
178
325
|
useConnectionHealth,
|
|
326
|
+
useConnectionStatus,
|
|
179
327
|
useDatabase,
|
|
328
|
+
useDatabaseMaintenance,
|
|
180
329
|
useDownloadProgress,
|
|
181
330
|
useEntitySyncStatus,
|
|
331
|
+
useFailedTransactions,
|
|
332
|
+
useFailedTransactionsContext,
|
|
182
333
|
useIsSyncing,
|
|
183
334
|
useOnlineStatus,
|
|
184
335
|
usePendingMutations,
|
|
336
|
+
usePendingMutationsContext,
|
|
185
337
|
usePlatform,
|
|
186
338
|
usePowerSync,
|
|
187
339
|
useSyncActivity,
|
|
340
|
+
useSyncActivityContext,
|
|
188
341
|
useSyncControl,
|
|
189
342
|
useSyncMetrics,
|
|
190
343
|
useSyncMode,
|
|
344
|
+
useSyncModeContext,
|
|
191
345
|
useSyncStatus,
|
|
192
|
-
useUploadStatus
|
|
346
|
+
useUploadStatus,
|
|
347
|
+
withExponentialBackoff
|
|
193
348
|
};
|
|
194
349
|
//# sourceMappingURL=index.native.js.map
|
package/dist/index.web.d.ts
CHANGED
|
@@ -1,13 +1,24 @@
|
|
|
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-
|
|
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 {
|
|
4
|
-
export {
|
|
5
|
-
export { e as
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
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-CDqWh56B.js';
|
|
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_AUTO_OFFLINE, 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 { g as ConflictBus, h as ConflictCheckResult, k as ConflictDetectionConfig, j as ConflictHandler, l as ConflictListener, i as ConflictResolution, C as ConnectorCircuitBreakerConfig, b as ConnectorConfig, e as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, m as ResolutionListener, f as RetryConfig, R as RetryStrategyConfig, c as SchemaRouter, S as SupabaseConnector, a as SupabaseConnectorOptions, d as defaultSchemaRouter } from './supabase-connector-qLm-WHkM.js';
|
|
4
|
+
export { CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG } from './connector/index.js';
|
|
5
|
+
export { t as AttachmentRecord, A as AttachmentSourceConfig, q as AttachmentStatsRow, e as AttachmentStorageAdapter, p as AttachmentSyncStats, o as AttachmentSyncStatus, h as CacheConfig, r as CacheFileRow, s as CachedSizeRow, C as CompressionConfig, i as DEFAULT_CACHE_CONFIG, D as DEFAULT_COMPRESSION_CONFIG, f as DEFAULT_UPLOAD_CONFIG, k as DownloadPhase, l as DownloadStatus, E as EvictRow, I as IdRow, P as PolAttachmentQueue, j as PolAttachmentQueueConfig, a as PolAttachmentQueueOptions, d as PolAttachmentRecord, b as PolAttachmentState, U as UploadConfig, g as UploadHandler, m as UploadPhase, n as UploadStatus, c as createPolAttachmentQueue } from './pol-attachment-queue-C7YNXXhK.js';
|
|
6
|
+
export { PolStorageAdapter, PolStorageAdapterOptions } from './attachments/index.js';
|
|
7
|
+
export { B as BackgroundSyncOptions, h as BackgroundSyncSystem, 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, i as defineBackgroundSyncTask, j as initializeBackgroundSync, k as isBackgroundSyncRegistered, r as registerBackgroundSync, u as unregisterBackgroundSync } from './background-sync-ChCXW-EV.js';
|
|
8
|
+
export { DeadLetterEntry, DeadLetterQueue, DeadLetterQueueListener, DeadLetterQueueOptions, DeadLetterReason, HealthMonitor, MetricsCollector, SyncStatusTracker, createDeadLetterEntry, generateDLQEntryId } from './sync/index.js';
|
|
9
|
+
export { AbortError, BackoffConfig, BackoffOptions, ConflictDetectionError, DEFAULT_BACKOFF_CONFIG, RetryExhaustedError, addJitter, calculateBackoffDelay, detectConflicts, fetchServerVersion, formatBytes, getExtensionFromMimeType, getLocalVersion, getMimeType, getMimeTypeFromPath, hasVersionColumn, isAudioMimeType, isDocumentMimeType, isImageMimeType, isVideoMimeType, sleep, withExponentialBackoff } from './index.js';
|
|
10
|
+
export { DatabaseMaintenanceUtils, checkIntegrityImpl, checkStorageQuotaImpl, compactDatabaseImpl, getCacheStatsImpl, useDatabaseMaintenance } from './maintenance/index.js';
|
|
11
|
+
export { A as AttachmentUploadHandler, a as BucketConfig, B as BucketResolver, D as DownloadResult, P as PowerSyncStorageAdapter, R as RemoteStorageAdapter, S as StorageUploadHandler, b as SupabaseStorageAdapterOptions, U as UploadOptions, r as resolveBucketFromConfig } from './types-Bgvx7-E8.js';
|
|
12
|
+
export { a as CacheSettings, C as CacheSettingsManager, b as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, S as SupabaseStorageAdapter, c as createSupabaseStorageAdapter } from './CacheSettingsManager-1exbOC6S.js';
|
|
13
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-BVacP54t.js';
|
|
14
|
+
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './storage/upload/index.js';
|
|
15
|
+
export { PowerSyncErrorBoundary } from './error/index.js';
|
|
16
|
+
export { AttachmentQueueContext, BackgroundSyncCallbacks, BackgroundSyncConfig, BackgroundSyncStatus, CompletedTransactionsContext, CompletedTransactionsContextValue, ConnectionHealthContext, ConnectionHealthContextValue, ConnectionStatusContext, ConnectionStatusContextValue, DEFAULT_CONNECTION_HEALTH, DEFAULT_SYNC_CONFIG, DEFAULT_SYNC_METRICS, DEFAULT_SYNC_STATUS, DataLayerConfig, DataLayerIntegration, EntitySyncStatusResult, FailedTransactionsContext, FailedTransactionsContextValue, OfflineDataAttachmentConfig, OfflineDataProvider, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadStatus } from './provider/index.js';
|
|
9
17
|
export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
|
|
10
18
|
export { createWebPlatformAdapter } from './platform/index.web.js';
|
|
19
|
+
export { ATTACHMENT_TABLE, AbstractAttachmentQueue, AttachmentState, AttachmentTable, AttachmentTableOptions, AttachmentQueueOptions as BaseAttachmentQueueOptions, DEFAULT_ATTACHMENT_QUEUE_OPTIONS, EncodingType, AttachmentRecord as OfficialAttachmentRecord, StorageAdapter } from '@powersync/attachments';
|
|
11
20
|
import '@supabase/supabase-js';
|
|
12
|
-
import '@
|
|
21
|
+
import '@powersync/common';
|
|
13
22
|
import 'react';
|
|
23
|
+
import '@tanstack/react-query';
|
|
24
|
+
import '@powersync/react-native';
|