@pol-studios/db 1.0.54 → 1.0.55
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/auth/context.js +4 -4
- package/dist/auth/hooks.js +5 -5
- package/dist/auth/index.js +5 -5
- package/dist/{chunk-FIAXWEBK.js → chunk-7YGDT46S.js} +4 -4
- package/dist/{chunk-BZSAPFFB.js → chunk-AA3VUWTP.js} +112 -16
- package/dist/chunk-AA3VUWTP.js.map +1 -0
- package/dist/{chunk-3Q74DK5K.js → chunk-AKCNWHXV.js} +2 -2
- package/dist/{chunk-UJWETW36.js → chunk-AKIRHA4Q.js} +527 -418
- package/dist/chunk-AKIRHA4Q.js.map +1 -0
- package/dist/{chunk-FMYXG4VN.js → chunk-BRFFTGVJ.js} +2 -2
- package/dist/{chunk-YA6MUTA7.js → chunk-FI6JAD5G.js} +3 -3
- package/dist/chunk-JOULSXOI.js +415 -0
- package/dist/chunk-JOULSXOI.js.map +1 -0
- package/dist/{chunk-OKYHI6JG.js → chunk-LF3V3ERS.js} +3 -3
- package/dist/{chunk-2XS2PM62.js → chunk-OC6S4XFL.js} +7 -7
- package/dist/{chunk-DP3YEVSX.js → chunk-WILXD5X3.js} +3 -3
- package/dist/{chunk-ZGQ7Q4ZU.js → chunk-WM25QE7E.js} +2 -2
- package/dist/{chunk-WQLIGVQR.js → chunk-WSKBZIEI.js} +4 -1
- package/dist/chunk-WSKBZIEI.js.map +1 -0
- package/dist/chunk-YUX6RGLZ.js +1858 -0
- package/dist/chunk-YUX6RGLZ.js.map +1 -0
- package/dist/{chunk-Z3EJX3VG.js → chunk-Z456IHCB.js} +3 -3
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +13 -13
- package/dist/index.native.d.ts +56 -2
- package/dist/index.native.js +13 -13
- package/dist/index.web.js +13 -13
- package/dist/mutation/index.js +3 -3
- package/dist/parser/index.js +3 -3
- package/dist/query/index.js +4 -4
- package/dist/realtime/index.js +3 -3
- package/dist/types/index.js +4 -4
- package/dist/with-auth/index.js +7 -7
- package/package.json +5 -3
- package/dist/chunk-BZSAPFFB.js.map +0 -1
- package/dist/chunk-CTRY7JDP.js +0 -4112
- package/dist/chunk-CTRY7JDP.js.map +0 -1
- package/dist/chunk-INEUG6MC.js +0 -521
- package/dist/chunk-INEUG6MC.js.map +0 -1
- package/dist/chunk-UJWETW36.js.map +0 -1
- package/dist/chunk-WQLIGVQR.js.map +0 -1
- /package/dist/{chunk-FIAXWEBK.js.map → chunk-7YGDT46S.js.map} +0 -0
- /package/dist/{chunk-3Q74DK5K.js.map → chunk-AKCNWHXV.js.map} +0 -0
- /package/dist/{chunk-FMYXG4VN.js.map → chunk-BRFFTGVJ.js.map} +0 -0
- /package/dist/{chunk-YA6MUTA7.js.map → chunk-FI6JAD5G.js.map} +0 -0
- /package/dist/{chunk-OKYHI6JG.js.map → chunk-LF3V3ERS.js.map} +0 -0
- /package/dist/{chunk-2XS2PM62.js.map → chunk-OC6S4XFL.js.map} +0 -0
- /package/dist/{chunk-DP3YEVSX.js.map → chunk-WILXD5X3.js.map} +0 -0
- /package/dist/{chunk-ZGQ7Q4ZU.js.map → chunk-WM25QE7E.js.map} +0 -0
- /package/dist/{chunk-Z3EJX3VG.js.map → chunk-Z456IHCB.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
useHasConflicts,
|
|
25
25
|
usePendingConflicts,
|
|
26
26
|
useSupabaseUpload
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-AA3VUWTP.js";
|
|
28
28
|
import {
|
|
29
29
|
ADAPTER_STRATEGIES,
|
|
30
30
|
AdapterAutoDetector,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
useUpsertChangelog,
|
|
78
78
|
useUpsertChangelogEntry,
|
|
79
79
|
useUpsertChangelogMedia
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-OC6S4XFL.js";
|
|
81
81
|
import {
|
|
82
82
|
LiveChangeContext,
|
|
83
83
|
LiveChangeContextProvider,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
useUserMetadataState,
|
|
89
89
|
useUserMetadataValue,
|
|
90
90
|
userMetadataContext
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-7YGDT46S.js";
|
|
92
92
|
import {
|
|
93
93
|
PostgrestFilter,
|
|
94
94
|
binarySearch,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
removeAliasFromDeclaration,
|
|
117
117
|
removeFirstPathElement,
|
|
118
118
|
setFilterValue
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-FI6JAD5G.js";
|
|
120
120
|
import {
|
|
121
121
|
useAdvanceQuery,
|
|
122
122
|
useDbCount,
|
|
@@ -128,11 +128,11 @@ import {
|
|
|
128
128
|
useOnlineStatus,
|
|
129
129
|
useSyncControl,
|
|
130
130
|
useSyncStatus
|
|
131
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-AKCNWHXV.js";
|
|
132
132
|
import {
|
|
133
133
|
Constants,
|
|
134
134
|
createCombinedStatus
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-Z456IHCB.js";
|
|
136
136
|
import {
|
|
137
137
|
Accessory,
|
|
138
138
|
Address,
|
|
@@ -321,12 +321,12 @@ import {
|
|
|
321
321
|
UserMetadata
|
|
322
322
|
} from "./chunk-SM73S2DY.js";
|
|
323
323
|
import "./chunk-NSIAAYW3.js";
|
|
324
|
-
import "./chunk-
|
|
324
|
+
import "./chunk-BRFFTGVJ.js";
|
|
325
325
|
import {
|
|
326
326
|
DEFAULT_QUERY_TIMEOUT,
|
|
327
327
|
TIMEOUT_ERROR_MESSAGE,
|
|
328
328
|
isTimeoutError
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-WILXD5X3.js";
|
|
330
330
|
import {
|
|
331
331
|
DataLayerContext,
|
|
332
332
|
DataLayerCoreContext,
|
|
@@ -337,7 +337,7 @@ import {
|
|
|
337
337
|
useDataLayerStatus,
|
|
338
338
|
useDbQuery,
|
|
339
339
|
useDbQueryById
|
|
340
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-WSKBZIEI.js";
|
|
341
341
|
import "./chunk-RT4O5H2E.js";
|
|
342
342
|
import "./chunk-HZIVE5AZ.js";
|
|
343
343
|
import {
|
|
@@ -347,7 +347,7 @@ import {
|
|
|
347
347
|
import {
|
|
348
348
|
useBatchDelete,
|
|
349
349
|
useBatchUpsert
|
|
350
|
-
} from "./chunk-
|
|
350
|
+
} from "./chunk-WM25QE7E.js";
|
|
351
351
|
import {
|
|
352
352
|
OPERATOR_MAP,
|
|
353
353
|
PostgrestParser,
|
|
@@ -361,10 +361,10 @@ import {
|
|
|
361
361
|
parseSelectParam,
|
|
362
362
|
parseValue,
|
|
363
363
|
sortSearchParams
|
|
364
|
-
} from "./chunk-
|
|
364
|
+
} from "./chunk-JOULSXOI.js";
|
|
365
365
|
import "./chunk-J4ZVCXZ4.js";
|
|
366
|
-
import "./chunk-
|
|
367
|
-
import "./chunk-
|
|
366
|
+
import "./chunk-YUX6RGLZ.js";
|
|
367
|
+
import "./chunk-AKIRHA4Q.js";
|
|
368
368
|
import {
|
|
369
369
|
ClientInstanceId,
|
|
370
370
|
SupabaseProvider,
|
package/dist/index.native.d.ts
CHANGED
|
@@ -106,6 +106,21 @@ interface PowerSyncDatabase {
|
|
|
106
106
|
* Used to map schema-qualified names like "core.Profile" to aliases like "CoreProfile".
|
|
107
107
|
*/
|
|
108
108
|
type TableNameResolver = (table: string) => string;
|
|
109
|
+
/**
|
|
110
|
+
* Configuration options for the PowerSyncAdapter.
|
|
111
|
+
*/
|
|
112
|
+
interface PowerSyncAdapterOptions {
|
|
113
|
+
/**
|
|
114
|
+
* Optional custom resolver for table names to PowerSync aliases.
|
|
115
|
+
*/
|
|
116
|
+
tableNameResolver?: TableNameResolver;
|
|
117
|
+
/**
|
|
118
|
+
* Maximum number of subscriptions to keep in the registry.
|
|
119
|
+
* When exceeded, the least recently used subscriptions are evicted.
|
|
120
|
+
* @default 100
|
|
121
|
+
*/
|
|
122
|
+
maxSubscriptions?: number;
|
|
123
|
+
}
|
|
109
124
|
declare class PowerSyncAdapter implements TableDataAdapter, CapableDataAdapter {
|
|
110
125
|
private db;
|
|
111
126
|
private schema;
|
|
@@ -126,14 +141,36 @@ declare class PowerSyncAdapter implements TableDataAdapter, CapableDataAdapter {
|
|
|
126
141
|
* If not provided, uses default auto-alias generation.
|
|
127
142
|
*/
|
|
128
143
|
private tableNameResolver?;
|
|
144
|
+
/**
|
|
145
|
+
* Maximum number of subscriptions to keep in the registry.
|
|
146
|
+
*/
|
|
147
|
+
private maxSubscriptions;
|
|
148
|
+
/**
|
|
149
|
+
* Subscription deduplication registry.
|
|
150
|
+
* Maps cache keys (table + serialized options) to shared subscription entries.
|
|
151
|
+
* This prevents duplicate PowerSync watch() calls when multiple components
|
|
152
|
+
* subscribe to the same query.
|
|
153
|
+
*
|
|
154
|
+
* Uses Map insertion order for LRU eviction - most recently accessed entries
|
|
155
|
+
* are moved to the end by deleting and re-adding.
|
|
156
|
+
*/
|
|
157
|
+
private subscriptionRegistry;
|
|
129
158
|
/**
|
|
130
159
|
* Create a new PowerSyncAdapter
|
|
131
160
|
*
|
|
132
161
|
* @param db - PowerSync database instance
|
|
133
162
|
* @param schema - Database schema for relationship resolution
|
|
134
|
-
* @param
|
|
163
|
+
* @param options - Optional configuration (tableNameResolver, maxSubscriptions)
|
|
164
|
+
*/
|
|
165
|
+
constructor(db: PowerSyncDatabase, schema: DatabaseSchema, options?: TableNameResolver | PowerSyncAdapterOptions);
|
|
166
|
+
/**
|
|
167
|
+
* Move a subscription entry to the end of the Map for LRU tracking.
|
|
168
|
+
* The most recently accessed entries are at the end; oldest are at the start.
|
|
169
|
+
*
|
|
170
|
+
* @param key - The subscription cache key
|
|
171
|
+
* @param entry - The subscription entry to touch
|
|
135
172
|
*/
|
|
136
|
-
|
|
173
|
+
private touchSubscription;
|
|
137
174
|
/**
|
|
138
175
|
* Resolve a table name to its PowerSync alias.
|
|
139
176
|
* Schema-qualified names like "chat.Conversation" become "Conversation" (schema stripped).
|
|
@@ -160,12 +197,29 @@ declare class PowerSyncAdapter implements TableDataAdapter, CapableDataAdapter {
|
|
|
160
197
|
* @returns Promise resolving to the record or null if not found
|
|
161
198
|
*/
|
|
162
199
|
queryById<T>(table: string, id: string, options?: Pick<QueryOptions, "select">): Promise<T | null>;
|
|
200
|
+
/**
|
|
201
|
+
* Generate a unique cache key for subscription deduplication.
|
|
202
|
+
* Combines table name and serialized options to identify identical queries.
|
|
203
|
+
* Uses sorted keys to ensure consistent serialization regardless of property order.
|
|
204
|
+
*
|
|
205
|
+
* @param table - The table name
|
|
206
|
+
* @param options - Query options
|
|
207
|
+
* @returns A unique string key for the subscription registry
|
|
208
|
+
*/
|
|
209
|
+
private generateSubscriptionKey;
|
|
163
210
|
/**
|
|
164
211
|
* Subscribe to changes on a query using PowerSync's native watch() API.
|
|
165
212
|
*
|
|
166
213
|
* This uses PowerSync's reactive query watching which efficiently detects
|
|
167
214
|
* changes to the underlying data and re-executes the query only when needed.
|
|
168
215
|
*
|
|
216
|
+
* Subscription Deduplication:
|
|
217
|
+
* Multiple components subscribing to the same query (same table + options)
|
|
218
|
+
* will share a single underlying PowerSync watch. This optimization:
|
|
219
|
+
* - Reduces database load by avoiding duplicate watches
|
|
220
|
+
* - Provides instant data to new subscribers from cached results
|
|
221
|
+
* - Properly cleans up when all subscribers unsubscribe
|
|
222
|
+
*
|
|
169
223
|
* If the database doesn't support watch(), falls back to polling every 5 seconds.
|
|
170
224
|
*
|
|
171
225
|
* @param table - The table name to watch
|
package/dist/index.native.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useHasConflicts,
|
|
14
14
|
usePendingConflicts,
|
|
15
15
|
useSupabaseUpload
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AA3VUWTP.js";
|
|
17
17
|
import {
|
|
18
18
|
ADAPTER_STRATEGIES,
|
|
19
19
|
AdapterAutoDetector,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
useUpsertChangelog,
|
|
66
66
|
useUpsertChangelogEntry,
|
|
67
67
|
useUpsertChangelogMedia
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OC6S4XFL.js";
|
|
69
69
|
import {
|
|
70
70
|
LiveChangeContext,
|
|
71
71
|
LiveChangeContextProvider,
|
|
@@ -76,7 +76,7 @@ import {
|
|
|
76
76
|
useUserMetadataState,
|
|
77
77
|
useUserMetadataValue,
|
|
78
78
|
userMetadataContext
|
|
79
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-7YGDT46S.js";
|
|
80
80
|
import {
|
|
81
81
|
PostgrestFilter,
|
|
82
82
|
binarySearch,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
removeAliasFromDeclaration,
|
|
105
105
|
removeFirstPathElement,
|
|
106
106
|
setFilterValue
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-FI6JAD5G.js";
|
|
108
108
|
import {
|
|
109
109
|
useAdvanceQuery,
|
|
110
110
|
useDbCount,
|
|
@@ -116,12 +116,12 @@ import {
|
|
|
116
116
|
useOnlineStatus,
|
|
117
117
|
useSyncControl,
|
|
118
118
|
useSyncStatus
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-AKCNWHXV.js";
|
|
120
120
|
import {
|
|
121
121
|
Constants,
|
|
122
122
|
createCombinedStatus,
|
|
123
123
|
useDbAdvanceFilterQuery
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-Z456IHCB.js";
|
|
125
125
|
import {
|
|
126
126
|
Accessory,
|
|
127
127
|
Address,
|
|
@@ -310,12 +310,12 @@ import {
|
|
|
310
310
|
UserMetadata
|
|
311
311
|
} from "./chunk-SM73S2DY.js";
|
|
312
312
|
import "./chunk-NSIAAYW3.js";
|
|
313
|
-
import "./chunk-
|
|
313
|
+
import "./chunk-BRFFTGVJ.js";
|
|
314
314
|
import {
|
|
315
315
|
DEFAULT_QUERY_TIMEOUT,
|
|
316
316
|
TIMEOUT_ERROR_MESSAGE,
|
|
317
317
|
isTimeoutError
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-WILXD5X3.js";
|
|
319
319
|
import {
|
|
320
320
|
DataLayerContext,
|
|
321
321
|
DataLayerCoreContext,
|
|
@@ -326,7 +326,7 @@ import {
|
|
|
326
326
|
useDataLayerStatus,
|
|
327
327
|
useDbQuery,
|
|
328
328
|
useDbQueryById
|
|
329
|
-
} from "./chunk-
|
|
329
|
+
} from "./chunk-WSKBZIEI.js";
|
|
330
330
|
import "./chunk-RT4O5H2E.js";
|
|
331
331
|
import "./chunk-HZIVE5AZ.js";
|
|
332
332
|
import {
|
|
@@ -336,7 +336,7 @@ import {
|
|
|
336
336
|
import {
|
|
337
337
|
useBatchDelete,
|
|
338
338
|
useBatchUpsert
|
|
339
|
-
} from "./chunk-
|
|
339
|
+
} from "./chunk-WM25QE7E.js";
|
|
340
340
|
import {
|
|
341
341
|
OPERATOR_MAP,
|
|
342
342
|
PostgrestParser,
|
|
@@ -350,10 +350,10 @@ import {
|
|
|
350
350
|
parseSelectParam,
|
|
351
351
|
parseValue,
|
|
352
352
|
sortSearchParams
|
|
353
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-JOULSXOI.js";
|
|
354
354
|
import "./chunk-J4ZVCXZ4.js";
|
|
355
|
-
import "./chunk-
|
|
356
|
-
import "./chunk-
|
|
355
|
+
import "./chunk-YUX6RGLZ.js";
|
|
356
|
+
import "./chunk-AKIRHA4Q.js";
|
|
357
357
|
import {
|
|
358
358
|
ClientInstanceId,
|
|
359
359
|
SupabaseProvider,
|
package/dist/index.web.js
CHANGED
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
useUpsertChangelog,
|
|
57
57
|
useUpsertChangelogEntry,
|
|
58
58
|
useUpsertChangelogMedia
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-OC6S4XFL.js";
|
|
60
60
|
import {
|
|
61
61
|
LiveChangeContext,
|
|
62
62
|
LiveChangeContextProvider,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
useUserMetadataState,
|
|
68
68
|
useUserMetadataValue,
|
|
69
69
|
userMetadataContext
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-7YGDT46S.js";
|
|
71
71
|
import {
|
|
72
72
|
PostgrestFilter,
|
|
73
73
|
binarySearch,
|
|
@@ -95,7 +95,7 @@ import {
|
|
|
95
95
|
removeAliasFromDeclaration,
|
|
96
96
|
removeFirstPathElement,
|
|
97
97
|
setFilterValue
|
|
98
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FI6JAD5G.js";
|
|
99
99
|
import {
|
|
100
100
|
useAdvanceQuery,
|
|
101
101
|
useDbCount,
|
|
@@ -104,13 +104,13 @@ import {
|
|
|
104
104
|
useDbInsert,
|
|
105
105
|
useDbUpdate,
|
|
106
106
|
useDbUpsert
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-AKCNWHXV.js";
|
|
108
108
|
import {
|
|
109
109
|
Constants,
|
|
110
110
|
createCombinedStatus,
|
|
111
111
|
normalizeFilter,
|
|
112
112
|
useDbAdvanceFilterQuery
|
|
113
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-Z456IHCB.js";
|
|
114
114
|
import {
|
|
115
115
|
Accessory,
|
|
116
116
|
Address,
|
|
@@ -299,20 +299,20 @@ import {
|
|
|
299
299
|
UserMetadata
|
|
300
300
|
} from "./chunk-SM73S2DY.js";
|
|
301
301
|
import "./chunk-NSIAAYW3.js";
|
|
302
|
-
import "./chunk-
|
|
302
|
+
import "./chunk-BRFFTGVJ.js";
|
|
303
303
|
import {
|
|
304
304
|
DEFAULT_QUERY_TIMEOUT,
|
|
305
305
|
TIMEOUT_ERROR_MESSAGE,
|
|
306
306
|
isTimeoutError,
|
|
307
307
|
useDbQuery as useDbQuery2
|
|
308
|
-
} from "./chunk-
|
|
308
|
+
} from "./chunk-WILXD5X3.js";
|
|
309
309
|
import {
|
|
310
310
|
DataLayerContext,
|
|
311
311
|
useDataLayer,
|
|
312
312
|
useDataLayerOptional,
|
|
313
313
|
useDbQuery,
|
|
314
314
|
useDbQueryById
|
|
315
|
-
} from "./chunk-
|
|
315
|
+
} from "./chunk-WSKBZIEI.js";
|
|
316
316
|
import "./chunk-RT4O5H2E.js";
|
|
317
317
|
import {
|
|
318
318
|
useAdvancedFilterQuery,
|
|
@@ -321,7 +321,7 @@ import {
|
|
|
321
321
|
usePartialAdvancedQuery,
|
|
322
322
|
usePartialQuery,
|
|
323
323
|
useQuery
|
|
324
|
-
} from "./chunk-
|
|
324
|
+
} from "./chunk-LF3V3ERS.js";
|
|
325
325
|
import {
|
|
326
326
|
QueryExecutor,
|
|
327
327
|
RelationshipResolver,
|
|
@@ -346,7 +346,7 @@ import {
|
|
|
346
346
|
import {
|
|
347
347
|
useBatchDelete,
|
|
348
348
|
useBatchUpsert
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-WM25QE7E.js";
|
|
350
350
|
import {
|
|
351
351
|
OPERATOR_MAP,
|
|
352
352
|
PostgrestParser,
|
|
@@ -360,14 +360,14 @@ import {
|
|
|
360
360
|
parseSelectParam,
|
|
361
361
|
parseValue,
|
|
362
362
|
sortSearchParams
|
|
363
|
-
} from "./chunk-
|
|
363
|
+
} from "./chunk-JOULSXOI.js";
|
|
364
364
|
import "./chunk-J4ZVCXZ4.js";
|
|
365
365
|
import {
|
|
366
366
|
encode,
|
|
367
367
|
useInsertMutation,
|
|
368
368
|
useUpsertItem
|
|
369
|
-
} from "./chunk-
|
|
370
|
-
import "./chunk-
|
|
369
|
+
} from "./chunk-YUX6RGLZ.js";
|
|
370
|
+
import "./chunk-AKIRHA4Q.js";
|
|
371
371
|
import {
|
|
372
372
|
ClientInstanceId,
|
|
373
373
|
SupabaseProvider,
|
package/dist/mutation/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useBatchDelete,
|
|
3
3
|
useBatchUpsert
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-WM25QE7E.js";
|
|
5
5
|
import {
|
|
6
6
|
buildNormalizedQuery,
|
|
7
7
|
useDeleteItem,
|
|
8
8
|
useInsertMutation,
|
|
9
9
|
useQueriesForTableLoader,
|
|
10
10
|
useUpsertItem
|
|
11
|
-
} from "../chunk-
|
|
12
|
-
import "../chunk-
|
|
11
|
+
} from "../chunk-YUX6RGLZ.js";
|
|
12
|
+
import "../chunk-AKIRHA4Q.js";
|
|
13
13
|
import {
|
|
14
14
|
useSupabase
|
|
15
15
|
} from "../chunk-DMVUEJG2.js";
|
package/dist/parser/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
removeAliasFromDeclaration,
|
|
26
26
|
removeFirstPathElement,
|
|
27
27
|
setFilterValue
|
|
28
|
-
} from "../chunk-
|
|
28
|
+
} from "../chunk-FI6JAD5G.js";
|
|
29
29
|
import {
|
|
30
30
|
OPERATOR_MAP,
|
|
31
31
|
PostgrestParser,
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
parseSelectParam,
|
|
40
40
|
parseValue,
|
|
41
41
|
sortSearchParams
|
|
42
|
-
} from "../chunk-
|
|
43
|
-
import "../chunk-
|
|
42
|
+
} from "../chunk-JOULSXOI.js";
|
|
43
|
+
import "../chunk-AKIRHA4Q.js";
|
|
44
44
|
import "../chunk-7D4SUZUM.js";
|
|
45
45
|
export {
|
|
46
46
|
OPERATOR_MAP,
|
package/dist/query/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
usePartialAdvancedQuery,
|
|
6
6
|
usePartialQuery,
|
|
7
7
|
useQuery
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-LF3V3ERS.js";
|
|
9
9
|
import {
|
|
10
10
|
QueryExecutor,
|
|
11
11
|
RelationshipResolver,
|
|
@@ -24,10 +24,10 @@ import {
|
|
|
24
24
|
tokenizeTopLevel
|
|
25
25
|
} from "../chunk-HZIVE5AZ.js";
|
|
26
26
|
import "../chunk-GC3TBUWE.js";
|
|
27
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-JOULSXOI.js";
|
|
28
28
|
import "../chunk-J4ZVCXZ4.js";
|
|
29
|
-
import "../chunk-
|
|
30
|
-
import "../chunk-
|
|
29
|
+
import "../chunk-YUX6RGLZ.js";
|
|
30
|
+
import "../chunk-AKIRHA4Q.js";
|
|
31
31
|
import "../chunk-DMVUEJG2.js";
|
|
32
32
|
import "../chunk-7D4SUZUM.js";
|
|
33
33
|
export {
|
package/dist/realtime/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PostgrestParser
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-JOULSXOI.js";
|
|
4
4
|
import "../chunk-J4ZVCXZ4.js";
|
|
5
5
|
import {
|
|
6
6
|
buildNormalizedQuery,
|
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
useQueriesForTableLoader,
|
|
11
11
|
useQuery,
|
|
12
12
|
useUpsertItem
|
|
13
|
-
} from "../chunk-
|
|
14
|
-
import "../chunk-
|
|
13
|
+
} from "../chunk-YUX6RGLZ.js";
|
|
14
|
+
import "../chunk-AKIRHA4Q.js";
|
|
15
15
|
import {
|
|
16
16
|
UserSessionId,
|
|
17
17
|
useSupabase
|
package/dist/types/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCombinedStatus
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-Z456IHCB.js";
|
|
4
4
|
import "../chunk-GC3TBUWE.js";
|
|
5
|
-
import "../chunk-
|
|
5
|
+
import "../chunk-JOULSXOI.js";
|
|
6
6
|
import "../chunk-J4ZVCXZ4.js";
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-YUX6RGLZ.js";
|
|
8
|
+
import "../chunk-AKIRHA4Q.js";
|
|
9
9
|
import "../chunk-DMVUEJG2.js";
|
|
10
10
|
import "../chunk-7D4SUZUM.js";
|
|
11
11
|
export {
|
package/dist/with-auth/index.js
CHANGED
|
@@ -5,27 +5,27 @@ import {
|
|
|
5
5
|
useUserMetadataState,
|
|
6
6
|
useUserMetadataValue,
|
|
7
7
|
userMetadataContext
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-7YGDT46S.js";
|
|
9
9
|
import {
|
|
10
10
|
useDbUpsert
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-AKCNWHXV.js";
|
|
12
12
|
import "../chunk-SM73S2DY.js";
|
|
13
13
|
import "../chunk-NSIAAYW3.js";
|
|
14
14
|
import {
|
|
15
15
|
useAuth,
|
|
16
16
|
useSetupAuth
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-BRFFTGVJ.js";
|
|
18
18
|
import {
|
|
19
19
|
useDbQuery
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-WILXD5X3.js";
|
|
21
|
+
import "../chunk-WSKBZIEI.js";
|
|
22
22
|
import "../chunk-RT4O5H2E.js";
|
|
23
23
|
import {
|
|
24
24
|
getSupabaseUrl
|
|
25
25
|
} from "../chunk-GC3TBUWE.js";
|
|
26
26
|
import "../chunk-J4ZVCXZ4.js";
|
|
27
|
-
import "../chunk-
|
|
28
|
-
import "../chunk-
|
|
27
|
+
import "../chunk-YUX6RGLZ.js";
|
|
28
|
+
import "../chunk-AKIRHA4Q.js";
|
|
29
29
|
import {
|
|
30
30
|
useSupabase
|
|
31
31
|
} from "../chunk-DMVUEJG2.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pol-studios/db",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.55",
|
|
4
4
|
"description": "Database layer for React applications with Supabase and PowerSync support",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -189,14 +189,16 @@
|
|
|
189
189
|
},
|
|
190
190
|
"dependencies": {
|
|
191
191
|
"@supabase/postgrest-js": "^2.87.1",
|
|
192
|
-
"
|
|
193
|
-
"@pol-studios/hooks": "1.0.14"
|
|
192
|
+
"fast-json-stable-stringify": "^2.1.0",
|
|
193
|
+
"@pol-studios/hooks": "1.0.14",
|
|
194
|
+
"@pol-studios/utils": "1.0.13"
|
|
194
195
|
},
|
|
195
196
|
"devDependencies": {
|
|
196
197
|
"@babel/core": "^7.28.0",
|
|
197
198
|
"@supabase-cache-helpers/postgrest-core": "^0.12.3",
|
|
198
199
|
"@supabase-cache-helpers/postgrest-react-query": "^1.0.0",
|
|
199
200
|
"@types/flat": "^5.0.5",
|
|
201
|
+
"@types/fast-json-stable-stringify": "^2.1.0",
|
|
200
202
|
"babel-plugin-react-compiler": "^1.0.0",
|
|
201
203
|
"tsup": "^8.0.0",
|
|
202
204
|
"typescript": "^5.0.0"
|