@lunora/solid 1.0.0-alpha.153 → 1.0.0-alpha.155
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/index.d.mts
CHANGED
|
@@ -1136,11 +1136,12 @@ declare const createVoiceAgent: (options: CreateVoiceAgentOptions) => CreateVoic
|
|
|
1136
1136
|
* After a sign-out or user switch retires that identity
|
|
1137
1137
|
* (`client.identityEpoch() > 0`), every `hydratePreloaded` on the client (mounted
|
|
1138
1138
|
* then or later) stops using it and returns `undefined` until the live value
|
|
1139
|
-
* arrives — matching `@lunora/react`'s `usePreloadedQuery
|
|
1139
|
+
* arrives — matching `@lunora/react`'s `usePreloadedQuery`, hence the
|
|
1140
|
+
* `Accessor<T | undefined>` type.
|
|
1140
1141
|
*/
|
|
1141
1142
|
declare const hydratePreloaded: <T>(preloaded: Preloaded<T>, options?: {
|
|
1142
1143
|
onError?: SubscriptionErrorCallback;
|
|
1143
|
-
}) => Accessor<T>;
|
|
1144
|
+
}) => Accessor<T | undefined>;
|
|
1144
1145
|
interface LunoraProviderProps {
|
|
1145
1146
|
children: SolidChildren;
|
|
1146
1147
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1136,11 +1136,12 @@ declare const createVoiceAgent: (options: CreateVoiceAgentOptions) => CreateVoic
|
|
|
1136
1136
|
* After a sign-out or user switch retires that identity
|
|
1137
1137
|
* (`client.identityEpoch() > 0`), every `hydratePreloaded` on the client (mounted
|
|
1138
1138
|
* then or later) stops using it and returns `undefined` until the live value
|
|
1139
|
-
* arrives — matching `@lunora/react`'s `usePreloadedQuery
|
|
1139
|
+
* arrives — matching `@lunora/react`'s `usePreloadedQuery`, hence the
|
|
1140
|
+
* `Accessor<T | undefined>` type.
|
|
1140
1141
|
*/
|
|
1141
1142
|
declare const hydratePreloaded: <T>(preloaded: Preloaded<T>, options?: {
|
|
1142
1143
|
onError?: SubscriptionErrorCallback;
|
|
1143
|
-
}) => Accessor<T>;
|
|
1144
|
+
}) => Accessor<T | undefined>;
|
|
1144
1145
|
interface LunoraProviderProps {
|
|
1145
1146
|
children: SolidChildren;
|
|
1146
1147
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{LunoraContext as r,useLunora as o}from"./packem_shared/LunoraContext-dPcjtn6R.mjs";import{createAction as c,createActionForClient as n}from"./packem_shared/createAction-M4s8XBXV.mjs";import{createAgent as m}from"./packem_shared/createAgent-4wFKlDvV.mjs";import{createAgentChat as x}from"./packem_shared/createAgentChat-BcOUF-3C.mjs";import{createAgentState as u}from"./packem_shared/createAgentState-KojjkWsi.mjs";import{createAgentToolEvents as A}from"./packem_shared/createAgentToolEvents-DUAkn3eP.mjs";import{AuthLoading as l,Authenticated as s,Unauthenticated as h,createAuth as C}from"./packem_shared/AuthLoading-DKoQs-9J.mjs";import{default as y}from"./packem_shared/createConnectionStatus-BnlXYWeE.mjs";import{createFlag as P,createFlags as S}from"./packem_shared/createFlag-JN9dYhDQ.mjs";import{createMutation as Q,createMutationForClient as v}from"./packem_shared/createMutation-DcSsIbGF.mjs";import{createMutator as E}from"./packem_shared/createMutator-q9cMjGKv.mjs";import{createInfiniteQuery as R,createPaginatedQuery as T}from"./packem_shared/createInfiniteQuery-BuxNVHct.mjs";import{createPresence as V}from"./packem_shared/createPresence-Bu4loG39.mjs";import{createQuery as k}from"./packem_shared/createQuery-aadhebsp.mjs";import{createRateLimit as w}from"./packem_shared/createRateLimit-CIVWrD5H.mjs";import{createStream as B}from"./packem_shared/createStream-Dx7SnivS.mjs";import{createSubscription as G}from"./packem_shared/createSubscription-DK6JFpEA.mjs";import{createVoiceAgent as J}from"./packem_shared/createVoiceAgent-C4uRX2Ca.mjs";import{default as N}from"./packem_shared/hydratePreloaded-
|
|
1
|
+
import{LunoraContext as r,useLunora as o}from"./packem_shared/LunoraContext-dPcjtn6R.mjs";import{createAction as c,createActionForClient as n}from"./packem_shared/createAction-M4s8XBXV.mjs";import{createAgent as m}from"./packem_shared/createAgent-4wFKlDvV.mjs";import{createAgentChat as x}from"./packem_shared/createAgentChat-BcOUF-3C.mjs";import{createAgentState as u}from"./packem_shared/createAgentState-KojjkWsi.mjs";import{createAgentToolEvents as A}from"./packem_shared/createAgentToolEvents-DUAkn3eP.mjs";import{AuthLoading as l,Authenticated as s,Unauthenticated as h,createAuth as C}from"./packem_shared/AuthLoading-DKoQs-9J.mjs";import{default as y}from"./packem_shared/createConnectionStatus-BnlXYWeE.mjs";import{createFlag as P,createFlags as S}from"./packem_shared/createFlag-JN9dYhDQ.mjs";import{createMutation as Q,createMutationForClient as v}from"./packem_shared/createMutation-DcSsIbGF.mjs";import{createMutator as E}from"./packem_shared/createMutator-q9cMjGKv.mjs";import{createInfiniteQuery as R,createPaginatedQuery as T}from"./packem_shared/createInfiniteQuery-BuxNVHct.mjs";import{createPresence as V}from"./packem_shared/createPresence-Bu4loG39.mjs";import{createQuery as k}from"./packem_shared/createQuery-aadhebsp.mjs";import{createRateLimit as w}from"./packem_shared/createRateLimit-CIVWrD5H.mjs";import{createStream as B}from"./packem_shared/createStream-Dx7SnivS.mjs";import{createSubscription as G}from"./packem_shared/createSubscription-DK6JFpEA.mjs";import{createVoiceAgent as J}from"./packem_shared/createVoiceAgent-C4uRX2Ca.mjs";import{default as N}from"./packem_shared/hydratePreloaded-Dkt8F6wg.mjs";import{LunoraProvider as W}from"./packem_shared/LunoraProvider-BKWckcDR.mjs";export{l as AuthLoading,s as Authenticated,r as LunoraContext,W as LunoraProvider,h as Unauthenticated,c as createAction,n as createActionForClient,m as createAgent,x as createAgentChat,u as createAgentState,A as createAgentToolEvents,C as createAuth,y as createConnectionStatus,P as createFlag,S as createFlags,R as createInfiniteQuery,Q as createMutation,v as createMutationForClient,E as createMutator,T as createPaginatedQuery,V as createPresence,k as createQuery,w as createRateLimit,B as createStream,G as createSubscription,J as createVoiceAgent,N as hydratePreloaded,o as useLunora};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createSignal as l}from"solid-js";import{useLunora as m}from"./LunoraContext-dPcjtn6R.mjs";import{o as p}from"./solid-compat-ByG5HD_F.mjs";const E=(n,r={})=>{const o=m(),{args:e,functionPath:i,shardKey:a,value:s}=n,[c,t]=l(o.identityEpoch()===0?s:void 0),d={__lunoraRef:i};return p(()=>{const u=o.onIdentityChange(()=>t(()=>{}));o.identityEpoch()!==0&&t(()=>{});const f=o.subscribe(d,e,h=>t(()=>h),{onError:r.onError,shardKey:a});return()=>{u(),f()}}),c};export{E as default};
|
|
1
|
+
import{createSignal as l}from"solid-js";import{useLunora as m}from"./LunoraContext-dPcjtn6R.mjs";import{o as p}from"./solid-compat-ByG5HD_F.mjs";const E=(n,r={})=>{const o=m(),{args:e,functionPath:i,shardKey:a,value:s}=n,[c,t]=l(o.identityEpoch()===0?s:void 0),d={__lunoraRef:i};return p(()=>{const u=o.onIdentityChange(()=>{t(()=>{})});o.identityEpoch()!==0&&t(()=>{});const f=o.subscribe(d,e,h=>t(()=>h),{onError:r.onError,shardKey:a});return()=>{u(),f()}}),c};export{E as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/solid",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.155",
|
|
4
4
|
"description": "SolidJS adapter for Lunora — live queries, optimistic mutations, and reactive loaders",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@lunora/client": "1.0.0-alpha.
|
|
57
|
+
"@lunora/client": "1.0.0-alpha.151",
|
|
58
58
|
"@lunora/errors": "1.0.0-alpha.45",
|
|
59
59
|
"@lunora/ratelimit": "1.0.0-alpha.87",
|
|
60
60
|
"@visulima/storage-client": "1.0.3"
|