@pol-studios/powersync 1.0.30 → 1.0.33
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-uz-kbnRH.d.ts → CacheSettingsManager-0H_7thHW.d.ts} +21 -3
- package/dist/attachments/index.d.ts +30 -30
- package/dist/attachments/index.js +13 -4
- package/dist/{background-sync-CVR3PkFi.d.ts → background-sync-BujnI3IR.d.ts} +1 -1
- package/dist/{chunk-RE5HWLCB.js → chunk-2RDWLXJW.js} +322 -103
- package/dist/chunk-2RDWLXJW.js.map +1 -0
- package/dist/{chunk-P4HZA6ZT.js → chunk-4665ZSE5.js} +2 -2
- package/dist/chunk-4665ZSE5.js.map +1 -0
- package/dist/{chunk-XOY2CJ67.js → chunk-4F5B5CZ7.js} +3 -3
- package/dist/chunk-5WRI5ZAA.js +31 -0
- package/dist/{chunk-BC2SRII2.js → chunk-65A3SYJZ.js} +14 -1
- package/dist/chunk-65A3SYJZ.js.map +1 -0
- package/dist/chunk-6SZ64KCZ.js +755 -0
- package/dist/chunk-6SZ64KCZ.js.map +1 -0
- package/dist/{chunk-C2ACBYBZ.js → chunk-74TBHWJ4.js} +10 -96
- package/dist/{chunk-C2ACBYBZ.js.map → chunk-74TBHWJ4.js.map} +1 -1
- package/dist/chunk-ANXWYQEJ.js +1 -0
- package/dist/chunk-ANXWYQEJ.js.map +1 -0
- package/dist/{chunk-CAB26E6F.js → chunk-C4J4MLER.js} +29 -24
- package/dist/chunk-C4J4MLER.js.map +1 -0
- package/dist/{chunk-C5ODS3XH.js → chunk-EOW7JK7Q.js} +9 -16
- package/dist/chunk-EOW7JK7Q.js.map +1 -0
- package/dist/chunk-HRAVPIAZ.js +220 -0
- package/dist/chunk-HRAVPIAZ.js.map +1 -0
- package/dist/{chunk-XAEII4ZX.js → chunk-NUGQOTEM.js} +32 -4
- package/dist/chunk-NUGQOTEM.js.map +1 -0
- package/dist/chunk-OGUFUZSY.js +5415 -0
- package/dist/chunk-OGUFUZSY.js.map +1 -0
- package/dist/{chunk-JCGOZVWL.js → chunk-P4D6BQ4X.js} +115 -576
- package/dist/chunk-P4D6BQ4X.js.map +1 -0
- package/dist/{chunk-CACKC6XG.js → chunk-PGEDE6IM.js} +136 -89
- package/dist/chunk-PGEDE6IM.js.map +1 -0
- package/dist/{chunk-A4IBBWGO.js → chunk-RALHHPTU.js} +1 -1
- package/dist/chunk-RIDSPLE5.js +42 -0
- package/dist/chunk-RIDSPLE5.js.map +1 -0
- package/dist/{chunk-Z6VOBGTU.js → chunk-UOMHWUHV.js} +2 -12
- package/dist/chunk-UOMHWUHV.js.map +1 -0
- package/dist/{chunk-QREWE3NR.js → chunk-YONQYTVH.js} +2 -2
- package/dist/chunk-ZAN22NGL.js +13 -0
- package/dist/chunk-ZAN22NGL.js.map +1 -0
- package/dist/config/index.d.ts +200 -0
- package/dist/config/index.js +23 -0
- package/dist/config/index.js.map +1 -0
- package/dist/connector/index.d.ts +23 -5
- package/dist/connector/index.js +4 -1
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +1 -0
- package/dist/error/index.js +1 -0
- package/dist/generator/index.js +2 -0
- package/dist/generator/index.js.map +1 -1
- package/dist/index.d.ts +19 -16
- package/dist/index.js +68 -36
- package/dist/index.native.d.ts +18 -14
- package/dist/index.native.js +73 -34
- package/dist/index.web.d.ts +17 -14
- package/dist/index.web.js +68 -36
- package/dist/maintenance/index.d.ts +2 -2
- package/dist/maintenance/index.js +3 -2
- package/dist/platform/index.d.ts +1 -1
- package/dist/platform/index.js +2 -0
- package/dist/platform/index.js.map +1 -1
- package/dist/platform/index.native.d.ts +1 -1
- package/dist/platform/index.native.js +1 -0
- package/dist/platform/index.web.d.ts +1 -1
- package/dist/platform/index.web.js +1 -0
- package/dist/pol-attachment-queue-DqBvLAEY.d.ts +255 -0
- package/dist/provider/index.d.ts +149 -114
- package/dist/provider/index.js +9 -14
- package/dist/provider/index.native.d.ts +108 -0
- package/dist/provider/index.native.js +121 -0
- package/dist/provider/index.native.js.map +1 -0
- package/dist/provider/index.web.d.ts +16 -0
- package/dist/provider/index.web.js +112 -0
- package/dist/provider/index.web.js.map +1 -0
- package/dist/react/index.d.ts +16 -65
- package/dist/react/index.js +2 -9
- package/dist/storage/index.d.ts +5 -4
- package/dist/storage/index.js +12 -9
- package/dist/storage/index.native.d.ts +5 -4
- package/dist/storage/index.native.js +8 -5
- package/dist/storage/index.web.d.ts +5 -4
- package/dist/storage/index.web.js +11 -8
- package/dist/storage/upload/index.d.ts +4 -3
- package/dist/storage/upload/index.js +4 -2
- package/dist/storage/upload/index.native.d.ts +4 -3
- package/dist/storage/upload/index.native.js +4 -2
- package/dist/storage/upload/index.web.d.ts +2 -1
- package/dist/storage/upload/index.web.js +4 -2
- package/dist/{supabase-connector-C4YpH_l3.d.ts → supabase-connector-HMxBA9Kg.d.ts} +2 -2
- package/dist/sync/index.d.ts +155 -20
- package/dist/sync/index.js +13 -3
- package/dist/{types-CyvBaAl8.d.ts → types-6QHGELuY.d.ts} +4 -1
- package/dist/{types-Dv1uf0LZ.d.ts → types-B9MptP7E.d.ts} +7 -10
- package/dist/types-BhAEsJj-.d.ts +330 -0
- package/dist/{types-D0WcHrq6.d.ts → types-CGMibJKD.d.ts} +8 -0
- package/dist/{types-CpM2_LhU.d.ts → types-DqJnP50o.d.ts} +6 -1
- package/dist/{pol-attachment-queue-BE2HU3Us.d.ts → types-JCEhw2Lf.d.ts} +139 -346
- package/package.json +18 -4
- package/dist/chunk-654ERHA7.js +0 -1
- package/dist/chunk-BC2SRII2.js.map +0 -1
- package/dist/chunk-C5ODS3XH.js.map +0 -1
- package/dist/chunk-CAB26E6F.js.map +0 -1
- package/dist/chunk-CACKC6XG.js.map +0 -1
- package/dist/chunk-FNYQFILT.js +0 -44
- package/dist/chunk-FNYQFILT.js.map +0 -1
- package/dist/chunk-JCGOZVWL.js.map +0 -1
- package/dist/chunk-P4HZA6ZT.js.map +0 -1
- package/dist/chunk-RBPWEOIV.js +0 -358
- package/dist/chunk-RBPWEOIV.js.map +0 -1
- package/dist/chunk-RE5HWLCB.js.map +0 -1
- package/dist/chunk-XAEII4ZX.js.map +0 -1
- package/dist/chunk-Z6VOBGTU.js.map +0 -1
- /package/dist/{chunk-XOY2CJ67.js.map → chunk-4F5B5CZ7.js.map} +0 -0
- /package/dist/{chunk-654ERHA7.js.map → chunk-5WRI5ZAA.js.map} +0 -0
- /package/dist/{chunk-A4IBBWGO.js.map → chunk-RALHHPTU.js.map} +0 -0
- /package/dist/{chunk-QREWE3NR.js.map → chunk-YONQYTVH.js.map} +0 -0
package/dist/index.native.js
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
|
-
import "./chunk-654ERHA7.js";
|
|
2
1
|
import {
|
|
3
|
-
|
|
2
|
+
OfflineDataProvider
|
|
3
|
+
} from "./chunk-6SZ64KCZ.js";
|
|
4
|
+
import "./chunk-YHTZ7VMV.js";
|
|
5
|
+
import "./chunk-C4J4MLER.js";
|
|
6
|
+
import "./chunk-ANXWYQEJ.js";
|
|
7
|
+
import {
|
|
4
8
|
useAttachmentQueueContext,
|
|
5
9
|
usePowerSyncContext,
|
|
6
10
|
useSyncStatusContext
|
|
7
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RIDSPLE5.js";
|
|
12
|
+
import {
|
|
13
|
+
createSchemaRouter,
|
|
14
|
+
definePolConfig,
|
|
15
|
+
generatePowerSyncSchema,
|
|
16
|
+
getTableFromSchema,
|
|
17
|
+
getTableStrategy,
|
|
18
|
+
isProcessedPolConfig,
|
|
19
|
+
isTablePowerSync,
|
|
20
|
+
normalizeTableSpec
|
|
21
|
+
} from "./chunk-HRAVPIAZ.js";
|
|
8
22
|
import {
|
|
9
23
|
DOWNLOAD_WORKFLOW_STATES,
|
|
10
24
|
STATE_MAPPING,
|
|
@@ -16,7 +30,7 @@ import {
|
|
|
16
30
|
buildRecordFetchQuery,
|
|
17
31
|
buildWatchQuery,
|
|
18
32
|
createMigrationStats,
|
|
19
|
-
|
|
33
|
+
createWatchPaths,
|
|
20
34
|
extractIdsFromRows,
|
|
21
35
|
formatMigrationStats,
|
|
22
36
|
getStateName,
|
|
@@ -30,19 +44,17 @@ import {
|
|
|
30
44
|
validateSqlIdentifier as validateSqlIdentifier2,
|
|
31
45
|
validateWhereClause,
|
|
32
46
|
watchConfigToSourceConfig
|
|
33
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-EOW7JK7Q.js";
|
|
48
|
+
import {
|
|
49
|
+
PowerSyncErrorBoundary
|
|
50
|
+
} from "./chunk-P6WOZO7H.js";
|
|
34
51
|
import {
|
|
35
52
|
ConflictBus,
|
|
36
|
-
OfflineDataProvider,
|
|
37
53
|
PowerSyncProvider,
|
|
38
54
|
ProviderBridge,
|
|
39
55
|
UPLOAD_BACKOFF_DELAYS,
|
|
40
56
|
UPLOAD_MAX_RETRIES
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-YHTZ7VMV.js";
|
|
43
|
-
import {
|
|
44
|
-
PowerSyncErrorBoundary
|
|
45
|
-
} from "./chunk-P6WOZO7H.js";
|
|
57
|
+
} from "./chunk-P4D6BQ4X.js";
|
|
46
58
|
import {
|
|
47
59
|
ATTACHMENT_TABLE,
|
|
48
60
|
AbstractAttachmentQueue,
|
|
@@ -77,6 +89,7 @@ import {
|
|
|
77
89
|
extractErrorCode,
|
|
78
90
|
formatCacheSize,
|
|
79
91
|
getCachedSize,
|
|
92
|
+
getCustomUrlResolver,
|
|
80
93
|
getEvictionCandidates,
|
|
81
94
|
getExcludeProtectedStatesCondition,
|
|
82
95
|
getExtensionFromMimeType,
|
|
@@ -91,22 +104,25 @@ import {
|
|
|
91
104
|
getSyncedUploadsWithPendingCallback,
|
|
92
105
|
isAudioMimeType,
|
|
93
106
|
isCacheNearCapacity,
|
|
107
|
+
isCustomSource,
|
|
94
108
|
isDocumentMimeType,
|
|
95
109
|
isImageMimeType,
|
|
96
110
|
isLocallyAvailable,
|
|
97
111
|
isPendingDownloadState,
|
|
98
112
|
isPermanentError,
|
|
99
113
|
isProtectedUploadState,
|
|
114
|
+
isSignedUrlSource,
|
|
100
115
|
isStateTransitionAllowed,
|
|
101
116
|
isVideoMimeType,
|
|
102
117
|
markUploadPermanentFailure,
|
|
103
118
|
markUploadSynced,
|
|
119
|
+
resolveBucketFromConfig,
|
|
104
120
|
scheduleUploadRetry,
|
|
105
121
|
startUploadProcessing,
|
|
106
122
|
stripFileUri,
|
|
107
123
|
uploadOne,
|
|
108
124
|
validateSqlIdentifier
|
|
109
|
-
} from "./chunk-
|
|
125
|
+
} from "./chunk-PGEDE6IM.js";
|
|
110
126
|
import {
|
|
111
127
|
DeadLetterQueue,
|
|
112
128
|
createDeadLetterEntry,
|
|
@@ -116,18 +132,22 @@ import {
|
|
|
116
132
|
isBackgroundSyncRegistered,
|
|
117
133
|
registerBackgroundSync,
|
|
118
134
|
unregisterBackgroundSync
|
|
119
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-RALHHPTU.js";
|
|
120
136
|
import {
|
|
137
|
+
DEFAULT_CONNECTION_HEALTH,
|
|
138
|
+
DEFAULT_SYNC_CONFIG,
|
|
139
|
+
DEFAULT_SYNC_METRICS,
|
|
140
|
+
DEFAULT_SYNC_STATUS,
|
|
121
141
|
HealthMonitor,
|
|
122
142
|
MetricsCollector,
|
|
123
143
|
SyncStatusTracker
|
|
124
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-2RDWLXJW.js";
|
|
125
145
|
import {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
} from "./chunk-
|
|
146
|
+
CompletedTransactionsTable,
|
|
147
|
+
FailedTransactionsTable,
|
|
148
|
+
LOCAL_ONLY_TABLES,
|
|
149
|
+
LOCAL_TABLE_NAMES
|
|
150
|
+
} from "./chunk-OGUFUZSY.js";
|
|
131
151
|
import {
|
|
132
152
|
checkIntegrityImpl,
|
|
133
153
|
checkStorageQuotaImpl,
|
|
@@ -135,7 +155,7 @@ import {
|
|
|
135
155
|
formatBytes,
|
|
136
156
|
getCacheStatsImpl,
|
|
137
157
|
useDatabaseMaintenance
|
|
138
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-YONQYTVH.js";
|
|
139
159
|
import {
|
|
140
160
|
AttachmentQueueContext,
|
|
141
161
|
CompletedTransactionsContext,
|
|
@@ -176,32 +196,33 @@ import {
|
|
|
176
196
|
useUploadBlockedReason,
|
|
177
197
|
useUploadRetry,
|
|
178
198
|
useUploadStatus
|
|
179
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-74TBHWJ4.js";
|
|
180
200
|
import "./chunk-T4AO7JIG.js";
|
|
181
|
-
import "./chunk-
|
|
201
|
+
import "./chunk-TGBT5XBE.js";
|
|
202
|
+
import {
|
|
203
|
+
SupabaseUploadHandler,
|
|
204
|
+
createSupabaseUploadHandler
|
|
205
|
+
} from "./chunk-4665ZSE5.js";
|
|
182
206
|
import {
|
|
183
207
|
CacheSettingsManager,
|
|
184
208
|
DEFAULT_CACHE_SETTINGS,
|
|
185
209
|
createSupabaseStorage,
|
|
186
210
|
isBlobResult,
|
|
187
211
|
isFileResult
|
|
188
|
-
} from "./chunk-
|
|
212
|
+
} from "./chunk-4F5B5CZ7.js";
|
|
213
|
+
import {
|
|
214
|
+
DEFAULT_UPLOAD_NOTIFICATION
|
|
215
|
+
} from "./chunk-ZAN22NGL.js";
|
|
189
216
|
import {
|
|
190
217
|
SupabaseStorageAdapter,
|
|
191
218
|
createSupabaseStorageAdapter,
|
|
192
219
|
getStorageErrorMessage,
|
|
193
220
|
isStorageAuthError,
|
|
194
221
|
normalizeStoragePath
|
|
195
|
-
} from "./chunk-
|
|
196
|
-
import "./chunk-TGBT5XBE.js";
|
|
222
|
+
} from "./chunk-NUGQOTEM.js";
|
|
197
223
|
import {
|
|
198
|
-
SupabaseUploadHandler,
|
|
199
|
-
createSupabaseUploadHandler
|
|
200
|
-
} from "./chunk-P4HZA6ZT.js";
|
|
201
|
-
import {
|
|
202
|
-
DEFAULT_UPLOAD_NOTIFICATION,
|
|
203
224
|
resolveBucket
|
|
204
|
-
} from "./chunk-
|
|
225
|
+
} from "./chunk-UOMHWUHV.js";
|
|
205
226
|
import {
|
|
206
227
|
AbortError,
|
|
207
228
|
DEFAULT_BACKOFF_CONFIG,
|
|
@@ -265,6 +286,7 @@ import {
|
|
|
265
286
|
detectConflicts,
|
|
266
287
|
discardOnHttpStatus,
|
|
267
288
|
discardOnPgCodes,
|
|
289
|
+
discardOnRlsDenied,
|
|
268
290
|
discardOrphaned,
|
|
269
291
|
fetchServerVersion,
|
|
270
292
|
getLocalVersion,
|
|
@@ -275,7 +297,7 @@ import {
|
|
|
275
297
|
runUploadErrorMiddlewareSync,
|
|
276
298
|
successOnPgCodes,
|
|
277
299
|
tableHandlers
|
|
278
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-65A3SYJZ.js";
|
|
279
301
|
import {
|
|
280
302
|
AttachmentError,
|
|
281
303
|
ConfigurationError,
|
|
@@ -294,6 +316,7 @@ import {
|
|
|
294
316
|
isRlsError,
|
|
295
317
|
toSyncOperationError
|
|
296
318
|
} from "./chunk-I2AYMY5O.js";
|
|
319
|
+
import "./chunk-5WRI5ZAA.js";
|
|
297
320
|
export {
|
|
298
321
|
ATTACHMENT_DOWNLOAD_TIMEOUT_MS,
|
|
299
322
|
ATTACHMENT_RETRY_DELAY_MS,
|
|
@@ -313,6 +336,7 @@ export {
|
|
|
313
336
|
CircuitBreaker,
|
|
314
337
|
CircuitOpenError,
|
|
315
338
|
CompletedTransactionsContext,
|
|
339
|
+
CompletedTransactionsTable,
|
|
316
340
|
ConfigurationError,
|
|
317
341
|
ConflictBus,
|
|
318
342
|
ConflictDetectionError,
|
|
@@ -349,12 +373,15 @@ export {
|
|
|
349
373
|
EVICTION_TRIGGER_THRESHOLD,
|
|
350
374
|
EncodingType,
|
|
351
375
|
FailedTransactionsContext,
|
|
376
|
+
FailedTransactionsTable,
|
|
352
377
|
HEALTH_CHECK_INTERVAL_MS,
|
|
353
378
|
HEALTH_CHECK_TIMEOUT_MS,
|
|
354
379
|
HealthMonitor,
|
|
355
380
|
InitializationError,
|
|
356
381
|
LATENCY_DEGRADED_THRESHOLD_MS,
|
|
357
382
|
LOCALLY_AVAILABLE_STATES,
|
|
383
|
+
LOCAL_ONLY_TABLES,
|
|
384
|
+
LOCAL_TABLE_NAMES,
|
|
358
385
|
MAX_CONSECUTIVE_FAILURES,
|
|
359
386
|
MetricsCollector,
|
|
360
387
|
OfflineDataProvider,
|
|
@@ -384,7 +411,6 @@ export {
|
|
|
384
411
|
STORAGE_KEY_PREFIX,
|
|
385
412
|
STORAGE_KEY_SYNC_MODE,
|
|
386
413
|
STORAGE_WARNING_THRESHOLD,
|
|
387
|
-
SlimPowerSyncProvider,
|
|
388
414
|
SupabaseConnector,
|
|
389
415
|
SupabaseStorageAdapter,
|
|
390
416
|
SupabaseUploadHandler,
|
|
@@ -420,6 +446,7 @@ export {
|
|
|
420
446
|
createMigrationStats,
|
|
421
447
|
createNativePlatformAdapter,
|
|
422
448
|
createPolAttachmentQueue,
|
|
449
|
+
createSchemaRouter,
|
|
423
450
|
createSupabaseAuth,
|
|
424
451
|
createSupabaseStorage,
|
|
425
452
|
createSupabaseStorageAdapter,
|
|
@@ -427,13 +454,15 @@ export {
|
|
|
427
454
|
createSyncError,
|
|
428
455
|
createUploadManagerDeps,
|
|
429
456
|
createUploadManagerState,
|
|
430
|
-
|
|
457
|
+
createWatchPaths,
|
|
431
458
|
defaultSchemaRouter,
|
|
432
459
|
defineBackgroundSyncTask,
|
|
460
|
+
definePolConfig,
|
|
433
461
|
detectConflicts,
|
|
434
462
|
determineAttachmentState,
|
|
435
463
|
discardOnHttpStatus,
|
|
436
464
|
discardOnPgCodes,
|
|
465
|
+
discardOnRlsDenied,
|
|
437
466
|
discardOrphaned,
|
|
438
467
|
downloadRecord,
|
|
439
468
|
enforceCacheLimit,
|
|
@@ -449,8 +478,10 @@ export {
|
|
|
449
478
|
formatMigrationStats,
|
|
450
479
|
generateDLQEntryId,
|
|
451
480
|
generateFailureId,
|
|
481
|
+
generatePowerSyncSchema,
|
|
452
482
|
getCacheStatsImpl,
|
|
453
483
|
getCachedSize,
|
|
484
|
+
getCustomUrlResolver,
|
|
454
485
|
getEvictionCandidates,
|
|
455
486
|
getExcludeProtectedStatesCondition,
|
|
456
487
|
getExtensionFromMimeType,
|
|
@@ -466,6 +497,8 @@ export {
|
|
|
466
497
|
getStateName,
|
|
467
498
|
getStorageErrorMessage,
|
|
468
499
|
getSyncedUploadsWithPendingCallback,
|
|
500
|
+
getTableFromSchema,
|
|
501
|
+
getTableStrategy,
|
|
469
502
|
hasVersionColumn,
|
|
470
503
|
idempotentTables,
|
|
471
504
|
initializeBackgroundSync,
|
|
@@ -473,6 +506,7 @@ export {
|
|
|
473
506
|
isBackgroundSyncRegistered,
|
|
474
507
|
isBlobResult,
|
|
475
508
|
isCacheNearCapacity,
|
|
509
|
+
isCustomSource,
|
|
476
510
|
isDocumentMimeType,
|
|
477
511
|
isDownloadWorkflowState,
|
|
478
512
|
isFileResult,
|
|
@@ -480,10 +514,13 @@ export {
|
|
|
480
514
|
isLocallyAvailable,
|
|
481
515
|
isPendingDownloadState,
|
|
482
516
|
isPermanentError,
|
|
517
|
+
isProcessedPolConfig,
|
|
483
518
|
isProtectedUploadState,
|
|
484
519
|
isRlsError,
|
|
520
|
+
isSignedUrlSource,
|
|
485
521
|
isStateTransitionAllowed,
|
|
486
522
|
isStorageAuthError,
|
|
523
|
+
isTablePowerSync,
|
|
487
524
|
isTerminalState,
|
|
488
525
|
isUploadWorkflowState,
|
|
489
526
|
isValidAttachmentState,
|
|
@@ -493,9 +530,11 @@ export {
|
|
|
493
530
|
migrateAttachmentState,
|
|
494
531
|
migrateAttachmentStateSafe,
|
|
495
532
|
normalizeStoragePath,
|
|
533
|
+
normalizeTableSpec,
|
|
496
534
|
recordMigration,
|
|
497
535
|
registerBackgroundSync,
|
|
498
536
|
resolveBucket,
|
|
537
|
+
resolveBucketFromConfig,
|
|
499
538
|
retryOnHttpStatus,
|
|
500
539
|
runUploadErrorMiddleware,
|
|
501
540
|
runUploadErrorMiddlewareSync,
|
package/dist/index.web.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
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, U as UploadBlockReason } from './types-
|
|
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, U as UploadBlockReason } from './types-B9MptP7E.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_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, extractHttpStatusCode, extractTableNames, generateFailureId, isRlsError, toSyncOperationError } from './core/index.js';
|
|
3
|
-
export { A as AuthProvider, i as ConflictBus, j as ConflictCheckResult, m as ConflictDetectionConfig, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-
|
|
4
|
-
export { S as SupabaseConnector } from './supabase-connector-
|
|
5
|
-
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
6
|
-
export {
|
|
7
|
-
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState,
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
3
|
+
export { A as AuthProvider, i as ConflictBus, j as ConflictCheckResult, m as ConflictDetectionConfig, l as ConflictHandler, n as ConflictListener, k as ConflictResolution, C as ConnectorCircuitBreakerConfig, a as ConnectorConfig, c as CrudHandler, D as DEFAULT_RETRY_CONFIG, F as FieldConflict, P as PowerSyncCredentials, o as ResolutionListener, e as RetryConfig, R as RetryStrategyConfig, b as SchemaRouter, f as Session, S as SupabaseConnectorOptions, U as UploadErrorClassification, g as UploadErrorContext, h as UploadErrorMiddleware, d as defaultSchemaRouter } from './types-DqJnP50o.js';
|
|
4
|
+
export { S as SupabaseConnector } from './supabase-connector-HMxBA9Kg.js';
|
|
5
|
+
export { AuthRefreshError, CircuitBreaker, CircuitBreakerConfig, CircuitBreakerStats, CircuitOpenError, CircuitState, DEFAULT_CIRCUIT_BREAKER_CONFIG, DiscardEntryError, SupabaseAuthOptions, TransactionAbortError, createSupabaseAuth, discardOnHttpStatus, discardOnPgCodes, discardOnRlsDenied, discardOrphaned, idempotentTables, retryOnHttpStatus, runUploadErrorMiddleware, runUploadErrorMiddlewareSync, successOnPgCodes, tableHandlers } from './connector/index.js';
|
|
6
|
+
export { P as PolAttachmentQueue, a as PolAttachmentQueueOptions, c as createPolAttachmentQueue } from './pol-attachment-queue-DqBvLAEY.js';
|
|
7
|
+
export { CacheManagerDeps, DOWNLOAD_WORKFLOW_STATES, DownloadManagerDeps, LOCALLY_AVAILABLE_STATES, MigrationStats, PENDING_DOWNLOAD_STATES, PROTECTED_UPLOAD_STATES, PolStorageAdapter, PolStorageAdapterOptions, STATE_MAPPING, STATE_NAMES, TERMINAL_STATES, UPLOAD_WORKFLOW_STATES, UploadManagerDeps, UploadManagerState, VALID_STATES, blobToArrayBuffer, buildIdOnlyWatchQuery, buildRecordFetchQuery, buildWatchQuery, cacheLocalFile, clearCache, clearUploadCallback, copyToManagedCache, createCacheManagerDeps, createMigrationStats, createUploadManagerDeps, createUploadManagerState, createWatchPaths, determineAttachmentState, downloadRecord, enforceCacheLimit, ensureFileUri, extractErrorCode, extractIdsFromRows, formatMigrationStats, getCachedSize, getEvictionCandidates, getExcludeProtectedStatesCondition, getFailedPermanentUploads, getLocalUriForStoragePath, getPendingUploads, getProtectedStatesInClause, getSoonestRetryTime, getStaleUploads, getStateName, getSyncedUploadsWithPendingCallback, isCacheNearCapacity, isDownloadWorkflowState, isLocallyAvailable, isPendingDownloadState, isPermanentError, isProtectedUploadState, isStateTransitionAllowed, isTerminalState, isUploadWorkflowState, isValidAttachmentState, markUploadPermanentFailure, markUploadSynced, migrateAttachmentState, migrateAttachmentStateSafe, recordMigration, scheduleUploadRetry, startUploadProcessing, stripFileUri, uploadOne, validateSqlIdentifier, validateSqlIdentifierFromStateMachine, validateWhereClause, watchConfigToSourceConfig } from './attachments/index.js';
|
|
8
|
+
export { d as AttachmentConfig, z as AttachmentRecord, A as AttachmentSource, c as AttachmentSourceConfig, w as AttachmentStatsRow, e as AttachmentStorageAdapter, v as AttachmentSyncStats, u as AttachmentSyncStatus, m as CACHE_SIZE_PRESETS, k as CacheConfig, x as CacheFileRow, n as CacheSizePreset, o as CacheSizeValue, y as CachedSizeRow, f as CompressionConfig, C as CustomAttachmentSource, l as DEFAULT_CACHE_CONFIG, D as DEFAULT_COMPRESSION_CONFIG, j as DEFAULT_DOWNLOAD_CONFIG, g as DEFAULT_UPLOAD_CONFIG, i as DownloadConfig, q as DownloadPhase, r as DownloadStatus, E as EvictRow, I as IdRow, a as PolAttachmentRecord, A as PolAttachmentSource, P as PolAttachmentState, S as SimpleAttachmentConfig, b as SupabaseBucketSource, U as UploadConfig, h as UploadHandler, s as UploadPhase, t as UploadStatus, W as WatchConfig, p as formatCacheSize, H as getCustomUrlResolver, G as isCustomSource, F as isSignedUrlSource, B as resolveBucketFromConfig } from './types-JCEhw2Lf.js';
|
|
9
|
+
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-BujnI3IR.js';
|
|
10
|
+
export { CompletedTransactionsTable, DeadLetterEntry, DeadLetterQueue, DeadLetterQueueListener, DeadLetterQueueOptions, DeadLetterReason, FailedTransactionsTable, HealthMonitor, LOCAL_ONLY_TABLES, LOCAL_TABLE_NAMES, MetricsCollector, SyncStatusTracker, createDeadLetterEntry, generateDLQEntryId } from './sync/index.js';
|
|
10
11
|
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';
|
|
12
|
+
export { createSchemaRouter, definePolConfig, generatePowerSyncSchema, getTableFromSchema, getTableStrategy, isProcessedPolConfig, isTablePowerSync, normalizeTableSpec } from './config/index.js';
|
|
11
13
|
export { DatabaseMaintenanceUtils, checkIntegrityImpl, checkStorageQuotaImpl, compactDatabaseImpl, getCacheStatsImpl, useDatabaseMaintenance } from './maintenance/index.js';
|
|
12
|
-
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-
|
|
13
|
-
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-
|
|
14
|
-
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-
|
|
14
|
+
export { D as DownloadResult, a as StorageBackend, b as StorageUploadOptions, d as SupabaseClient, S as SupabaseStorage, c as SupabaseStorageOptions, e as SupabaseTransformOptions, U as UploadProgress, r as resolveBucket } from './types-CGMibJKD.js';
|
|
15
|
+
export { f as CacheSettings, C as CacheSettingsManager, h as CacheSettingsManagerOptions, D as DEFAULT_CACHE_SETTINGS, I as ImageTransformOptions, S as SupabaseStorageAdapter, e as SupabaseStorageAdapterOptions, c as createSupabaseStorage, d as createSupabaseStorageAdapter, g as getStorageErrorMessage, a as isBlobResult, i as isFileResult, b as isStorageAuthError, n as normalizeStoragePath } from './CacheSettingsManager-0H_7thHW.js';
|
|
16
|
+
export { D as DEFAULT_UPLOAD_NOTIFICATION, S as SupabaseUploadHandlerOptions, U as UploadEventHandlers, a as UploadNotificationConfig } from './types-6QHGELuY.js';
|
|
15
17
|
export { SupabaseUploadHandler, createSupabaseUploadHandler } from './storage/upload/index.js';
|
|
16
18
|
export { PowerSyncErrorBoundary } from './error/index.js';
|
|
17
|
-
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,
|
|
18
|
-
export { AttachmentQueueContextValue,
|
|
19
|
+
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, OfflineDataProviderConfig, OfflineDataProviderProps, PendingMutationsContext, PendingMutationsContextValue, PowerSyncConfig, PowerSyncContext, PowerSyncContextValue, PowerSyncProvider, PowerSyncProviderProps, PowerSyncSyncStatusSnapshot, ProviderBridge, ProviderBridgeProps, ResetSyncOptions, RetryCountdownResult, SyncActivityContext, SyncActivityContextValue, SyncActivityResult, SyncConfig, SyncMetricsContext, SyncMetricsContextValue, SyncModeContext, SyncModeContextValue, SyncStatusContext, SyncStatusContextValue, UPLOAD_BACKOFF_DELAYS, UPLOAD_MAX_RETRIES, UploadBlockedReasonResult, UploadStatusResult, useAttachmentQueue, useAttachmentQueueReady, useCompletedTransactions, useCompletedTransactionsContext, useConnectionHealth, useConnectionStatus, useDatabase, useDownloadProgress, useEntitySyncStatus, useFailedTransactions, useFailedTransactionsContext, useIsSyncing, useOnlineStatus, usePendingMutations, usePendingMutationsContext, usePlatform, usePowerSync, useRetryCountdown, useSyncActivity, useSyncActivityContext, useSyncControl, useSyncMetrics, useSyncMode, useSyncModeContext, useSyncStatus, useUploadBlockedReason, useUploadRetry, useUploadStatus } from './provider/index.js';
|
|
20
|
+
export { AttachmentQueueContextValue, useAttachmentQueueContext, usePowerSyncContext, useSyncStatusContext } from './react/index.js';
|
|
19
21
|
export { AsyncStorageAdapter, CompressedImage, CompressionOptions, ConnectionType, DatabaseOptions, FileInfo, FileSystemAdapter, ImageProcessorAdapter, LoggerAdapter, NetworkAdapter, PlatformAdapter, PlatformType, detectPlatform } from './platform/index.js';
|
|
20
22
|
export { createWebPlatformAdapter } from './platform/index.web.js';
|
|
21
23
|
export { ATTACHMENT_TABLE, AbstractAttachmentQueue, AttachmentState, AttachmentTable, AttachmentTableOptions, AttachmentQueueOptions as BaseAttachmentQueueOptions, DEFAULT_ATTACHMENT_QUEUE_OPTIONS, EncodingType, AttachmentRecord as OfficialAttachmentRecord, StorageAdapter } from '@powersync/attachments';
|
|
22
24
|
export { AbstractPowerSyncDatabase as PowerSyncDBInterface } from '@powersync/common';
|
|
25
|
+
export { g as DatabaseColumnDef, D as DatabaseSchemaObject, f as DatabaseTableDef, P as PolConfig, c as PolConfigAttachments, d as PolConfigConnector, e as PolConfigSync, a as ProcessedPolConfig, b as ProcessedTableStrategy, T as TableSpec } from './types-BhAEsJj-.js';
|
|
23
26
|
import '@supabase/supabase-js';
|
|
27
|
+
import '@powersync/react-native';
|
|
24
28
|
import 'react';
|
|
25
29
|
import '@tanstack/react-query';
|
|
26
|
-
import '@powersync/react-native';
|