@lunora/client 1.0.0-alpha.10 → 1.0.0-alpha.12
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/index.d.mts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/index.d.mts +30 -3
- package/dist/index.d.ts +30 -3
- package/dist/index.mjs +4 -4
- package/dist/packem_shared/{LunoraClient-CgZ6FhKP.mjs → LunoraClient-wh6w9Ivn.mjs} +548 -40
- package/dist/packem_shared/SubscriptionRegistry-Cxr70og-.mjs +1 -0
- package/dist/packem_shared/{createInMemoryPersistence-CW82inU5.mjs → createInMemoryPersistence-DlFjWtOm.mjs} +13 -1
- package/dist/packem_shared/{createInMemoryQueryCache-B1PQ9Twl.mjs → createInMemoryQueryCache-4AkTV38-.mjs} +13 -1
- package/dist/packem_shared/{createServerClient-BxkNcRlR.mjs → createServerClient-C5GMCGSQ.mjs} +1 -1
- package/dist/packem_shared/{lunora-client.d-B5vWSgvD.d.mts → lunora-client.d-DTwbfUWF.d.mts} +121 -6
- package/dist/packem_shared/{lunora-client.d-B5vWSgvD.d.ts → lunora-client.d-DTwbfUWF.d.ts} +121 -6
- package/dist/packem_shared/{preload.d-3XJD-2hM.d.mts → preload.d-BEp0JJeu.d.mts} +1 -1
- package/dist/packem_shared/{preload.d-CKZR675M.d.ts → preload.d-CK2IYf5B.d.ts} +1 -1
- package/dist/packem_shared/{subscription-C1Jy7HiF.mjs → subscription-DoyO04-2.mjs} +10 -0
- package/dist/query/index.d.mts +2 -2
- package/dist/query/index.d.ts +2 -2
- package/dist/ssr/index.d.mts +3 -3
- package/dist/ssr/index.d.ts +3 -3
- package/dist/ssr/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/packem_shared/SubscriptionRegistry-Dn-7k7eo.mjs +0 -1
package/dist/auth/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-DTwbfUWF.mjs";
|
|
2
2
|
import '@lunora/runtime';
|
|
3
3
|
interface IdentityStore {
|
|
4
4
|
/** Read the current resolved user, or `null` when signed out / not yet resolved. */
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-
|
|
1
|
+
import { U as User, L as LunoraClient } from "../packem_shared/lunora-client.d-DTwbfUWF.js";
|
|
2
2
|
import '@lunora/runtime';
|
|
3
3
|
interface IdentityStore {
|
|
4
4
|
/** Read the current resolved user, or `null` when signed out / not yet resolved. */
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-
|
|
2
|
-
export { type C as CachedQuery, type
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-
|
|
1
|
+
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-DTwbfUWF.mjs";
|
|
2
|
+
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-DTwbfUWF.mjs";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-BEp0JJeu.mjs";
|
|
4
4
|
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* The slice of React Native's `AsyncStorage` (or any async key/value store —
|
|
@@ -329,6 +329,24 @@ interface IndexedDbPersistenceOptions {
|
|
|
329
329
|
*/
|
|
330
330
|
declare const createIndexedDbPersistence: (options?: IndexedDbPersistenceOptions) => PersistenceAdapter;
|
|
331
331
|
/**
|
|
332
|
+
* Resolve the effective offline-queue persistence from the user option,
|
|
333
|
+
* defaulting to a durable IndexedDB store when the environment supports one.
|
|
334
|
+
*
|
|
335
|
+
* An explicit adapter is used as-is; `false` opts out (the caller keeps an
|
|
336
|
+
* in-memory queue, lost on reload); `undefined` (the default) auto-probes
|
|
337
|
+
* IndexedDB when the global is present (browsers) and `autoProbe` is set,
|
|
338
|
+
* otherwise `undefined` — so SSR/Node/React-Native keep today's in-memory
|
|
339
|
+
* behaviour and only environments that can persist do.
|
|
340
|
+
*
|
|
341
|
+
* `autoProbe` is `false` when the `@lunora/db` outbox is wired: that sink is the
|
|
342
|
+
* single durable write path, so the built-in queue must stay in memory rather
|
|
343
|
+
* than persist a second, never-flushed copy. An explicit adapter is still
|
|
344
|
+
* honoured (the caller asked for it); only the implicit default is suppressed.
|
|
345
|
+
*
|
|
346
|
+
* The IndexedDB adapter opens its connection lazily, so constructing it here is
|
|
347
|
+
* cheap and never throws (the `indexedDB` global is verified present first).
|
|
348
|
+
*/
|
|
349
|
+
/**
|
|
332
350
|
* Compose the read-cache key for a subscription. Mirrors how
|
|
333
351
|
* `SubscriptionRegistry` keys live subscriptions so a hydrated value lines up
|
|
334
352
|
* with the subscription that will consume it. `shardKey` defaults to `""` (the
|
|
@@ -369,6 +387,15 @@ interface IndexedDbQueryCacheOptions {
|
|
|
369
387
|
*/
|
|
370
388
|
declare const createIndexedDbQueryCache: (options?: IndexedDbQueryCacheOptions) => QueryCacheAdapter;
|
|
371
389
|
/**
|
|
390
|
+
* Resolve the effective read-cache from the user option, defaulting to a durable
|
|
391
|
+
* IndexedDB store when the environment supports one. Same tri-state semantics as
|
|
392
|
+
* `resolvePersistenceAdapter` in `./persistence`:
|
|
393
|
+
*
|
|
394
|
+
* - an explicit adapter is used as-is;
|
|
395
|
+
* - `false` opts out — reads stay in memory only;
|
|
396
|
+
* - `undefined` (the default) auto-probes IndexedDB (browsers), else `undefined`.
|
|
397
|
+
*/
|
|
398
|
+
/**
|
|
372
399
|
* Exponential backoff calculator with optional jitter.
|
|
373
400
|
*
|
|
374
401
|
* `next()` doubles the delay each call up to `maxDelayMs`. When `jitter` is
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-
|
|
2
|
-
export { type C as CachedQuery, type
|
|
3
|
-
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-
|
|
1
|
+
import { c as PersistenceAdapter, B as BookmarkStorage, F as FunctionReference, A as ArgsOf, M as MutationCallOptions, R as ReturnOf, O as OfflineQueueOptions, Q as QueryCacheAdapter, d as ReconnectOptions } from "./packem_shared/lunora-client.d-DTwbfUWF.js";
|
|
2
|
+
export { type e as BatchSlot, type C as CachedQuery, type f as ClientMessage, type g as ClientShapeSubscribeMessage, type h as ClientShapeUnsubscribeMessage, type i as ConnectionStatus, D as DEFAULT_MAX_BUFFER, type j as FunctionArgumentDescriptor, type k as FunctionDescriptor, type G as GlobalFacetResult, type l as GlobalFacetValue, type m as GlobalFilterClause, type n as GlobalTableInfo, type o as GlobalTablePage, L as LunoraClient, type p as LunoraClientError, type q as LunoraClientOptions, type r as MutationSettledEvent, type s as OptimisticLocalStore, type t as OptimisticUpdate, type u as OutboxMutation, type v as OutboxSink, type w as PersistedMutation, type P as Preloaded, type x as RowOp, type y as RpcEnvelope, type z as RpcResponseBody, type E as ScheduleRecord, type H as SchedulerPoolStatus, type I as SchedulerStatus, type J as ServerMessage, type K as ServerPokeEndMessage, type N as ServerPokePartMessage, type T as ServerPokeStartMessage, type V as ShardTrafficEntry, type W as ShardTrafficResult, type X as StorageListPage, type Y as StorageObject, type Z as StreamHandle, type _ as StreamIterable, type $ as SubscriptionCallback, type S as SubscriptionError, type b as SubscriptionErrorCallback, a0 as SubscriptionRegistry, type a1 as SubscriptionState, type a2 as SyncWatermark, type a as Unsubscribe, type U as User, type a3 as WorkflowInstanceAction, type a4 as WorkflowInstanceDetail, type a5 as WorkflowInstancePage, type a6 as WorkflowInstanceStatus, type a7 as WorkflowInstanceSummary, type a8 as WorkflowStepDetail, a9 as createLocalStore, aa as createStream } from "./packem_shared/lunora-client.d-DTwbfUWF.js";
|
|
3
|
+
export { p as preloadQuery, a as preloadedQueryResult } from "./packem_shared/preload.d-CK2IYf5B.js";
|
|
4
4
|
export type { AuthCapabilities, AuthImpersonation, AuthPage, AuthSession, AuthUser, CronJobInfo, VectorIndexSummary, VectorQueryMatch } from '@lunora/runtime';
|
|
5
5
|
/**
|
|
6
6
|
* The slice of React Native's `AsyncStorage` (or any async key/value store —
|
|
@@ -329,6 +329,24 @@ interface IndexedDbPersistenceOptions {
|
|
|
329
329
|
*/
|
|
330
330
|
declare const createIndexedDbPersistence: (options?: IndexedDbPersistenceOptions) => PersistenceAdapter;
|
|
331
331
|
/**
|
|
332
|
+
* Resolve the effective offline-queue persistence from the user option,
|
|
333
|
+
* defaulting to a durable IndexedDB store when the environment supports one.
|
|
334
|
+
*
|
|
335
|
+
* An explicit adapter is used as-is; `false` opts out (the caller keeps an
|
|
336
|
+
* in-memory queue, lost on reload); `undefined` (the default) auto-probes
|
|
337
|
+
* IndexedDB when the global is present (browsers) and `autoProbe` is set,
|
|
338
|
+
* otherwise `undefined` — so SSR/Node/React-Native keep today's in-memory
|
|
339
|
+
* behaviour and only environments that can persist do.
|
|
340
|
+
*
|
|
341
|
+
* `autoProbe` is `false` when the `@lunora/db` outbox is wired: that sink is the
|
|
342
|
+
* single durable write path, so the built-in queue must stay in memory rather
|
|
343
|
+
* than persist a second, never-flushed copy. An explicit adapter is still
|
|
344
|
+
* honoured (the caller asked for it); only the implicit default is suppressed.
|
|
345
|
+
*
|
|
346
|
+
* The IndexedDB adapter opens its connection lazily, so constructing it here is
|
|
347
|
+
* cheap and never throws (the `indexedDB` global is verified present first).
|
|
348
|
+
*/
|
|
349
|
+
/**
|
|
332
350
|
* Compose the read-cache key for a subscription. Mirrors how
|
|
333
351
|
* `SubscriptionRegistry` keys live subscriptions so a hydrated value lines up
|
|
334
352
|
* with the subscription that will consume it. `shardKey` defaults to `""` (the
|
|
@@ -369,6 +387,15 @@ interface IndexedDbQueryCacheOptions {
|
|
|
369
387
|
*/
|
|
370
388
|
declare const createIndexedDbQueryCache: (options?: IndexedDbQueryCacheOptions) => QueryCacheAdapter;
|
|
371
389
|
/**
|
|
390
|
+
* Resolve the effective read-cache from the user option, defaulting to a durable
|
|
391
|
+
* IndexedDB store when the environment supports one. Same tri-state semantics as
|
|
392
|
+
* `resolvePersistenceAdapter` in `./persistence`:
|
|
393
|
+
*
|
|
394
|
+
* - an explicit adapter is used as-is;
|
|
395
|
+
* - `false` opts out — reads stay in memory only;
|
|
396
|
+
* - `undefined` (the default) auto-probes IndexedDB (browsers), else `undefined`.
|
|
397
|
+
*/
|
|
398
|
+
/**
|
|
372
399
|
* Exponential backoff calculator with optional jitter.
|
|
373
400
|
*
|
|
374
401
|
* `next()` doubles the delay each call up to `maxDelayMs`. When `jitter` is
|
package/dist/index.mjs
CHANGED
|
@@ -3,13 +3,13 @@ export { default as createInMemoryBookmarkStorage } from './packem_shared/create
|
|
|
3
3
|
export { applyDelta, isMutationDelta } from './packem_shared/applyDelta-4jFGTPA3.mjs';
|
|
4
4
|
export { CONFLICT_ERROR_CODE, isConflictError } from './packem_shared/CONFLICT_ERROR_CODE-aUdVbEDw.mjs';
|
|
5
5
|
export { c as createLocalStore } from './packem_shared/local-store-BNgN3Dw3.mjs';
|
|
6
|
-
export { LunoraClient } from './packem_shared/LunoraClient-
|
|
6
|
+
export { LunoraClient } from './packem_shared/LunoraClient-wh6w9Ivn.mjs';
|
|
7
7
|
export { createMutationRunner } from './packem_shared/createMutationRunner-BqsavzvG.mjs';
|
|
8
8
|
export { createMutatorRunner } from './packem_shared/createMutatorRunner-BETvCd0p.mjs';
|
|
9
9
|
export { O as OfflineQueue } from './packem_shared/offline-queue-7Wc4onA0.mjs';
|
|
10
|
-
export { createInMemoryPersistence, createIndexedDbPersistence } from './packem_shared/createInMemoryPersistence-
|
|
10
|
+
export { createInMemoryPersistence, createIndexedDbPersistence } from './packem_shared/createInMemoryPersistence-DlFjWtOm.mjs';
|
|
11
11
|
export { preloadQuery, preloadedQueryResult } from './packem_shared/preloadQuery-lobFkD2Z.mjs';
|
|
12
|
-
export { createInMemoryQueryCache, createIndexedDbQueryCache, queryCacheKey } from './packem_shared/createInMemoryQueryCache-
|
|
12
|
+
export { createInMemoryQueryCache, createIndexedDbQueryCache, queryCacheKey } from './packem_shared/createInMemoryQueryCache-4AkTV38-.mjs';
|
|
13
13
|
export { createReconnect } from './packem_shared/createReconnect-Di_-oHH7.mjs';
|
|
14
14
|
export { DEFAULT_MAX_BUFFER, createStream } from './packem_shared/DEFAULT_MAX_BUFFER-BDkqO5PW.mjs';
|
|
15
|
-
export { S as SubscriptionRegistry } from './packem_shared/subscription-
|
|
15
|
+
export { S as SubscriptionRegistry } from './packem_shared/subscription-DoyO04-2.mjs';
|