@lunora/client 1.0.0-alpha.20 → 1.0.0-alpha.22

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.
Files changed (34) hide show
  1. package/dist/auth/index.d.mts +1 -1
  2. package/dist/auth/index.d.ts +1 -1
  3. package/dist/index.d.mts +212 -4
  4. package/dist/index.d.ts +212 -4
  5. package/dist/index.mjs +12 -7
  6. package/dist/packem_shared/ClientServiceWorker-C3PAFwy0.mjs +100 -0
  7. package/dist/packem_shared/{LunoraClient-hrmLXEHd.mjs → LunoraClient-Clb118SU.mjs} +339 -33
  8. package/dist/packem_shared/{OfflineQueue-GGYJRmhF.mjs → OfflineQueue-B4HUF7rt.mjs} +1 -1
  9. package/dist/packem_shared/SubscriptionRegistry-D4jfIzZu.mjs +31 -0
  10. package/dist/packem_shared/TabCoordinator-BwRR8H06.mjs +222 -0
  11. package/dist/packem_shared/{applyDelta-4jFGTPA3.mjs → applyDelta-CRKZ1PBt.mjs} +21 -1
  12. package/dist/packem_shared/createClientQuery-CQ51bWAE.mjs +71 -0
  13. package/dist/packem_shared/{createInMemoryPersistence-Ds7z8n8d.mjs → createInMemoryPersistence-DZ2VHWgm.mjs} +7 -47
  14. package/dist/packem_shared/{createInMemoryQueryCache-iWtKPrid.mjs → createInMemoryQueryCache-DiaGZkA2.mjs} +7 -47
  15. package/dist/packem_shared/createLocalStore-BDbbkoXw.mjs +2 -0
  16. package/dist/packem_shared/createReply-lI4tVS2w.mjs +36 -0
  17. package/dist/packem_shared/{createServerClient-CKKZrXLc.mjs → createServerClient-Dxemst5C.mjs} +1 -1
  18. package/dist/packem_shared/createSnapshotPrecondition-CBwnVz6r.mjs +18 -0
  19. package/dist/packem_shared/idb-utility-DrSVX43Q.mjs +48 -0
  20. package/dist/packem_shared/{local-store-BNgN3Dw3.mjs → local-store-DtcIW4c0.mjs} +7 -12
  21. package/dist/packem_shared/{lunora-client.d-DVdVtJV8.d.mts → lunora-client.d-pw-9sLl0.d.mts} +212 -2
  22. package/dist/packem_shared/{lunora-client.d-DVdVtJV8.d.ts → lunora-client.d-pw-9sLl0.d.ts} +212 -2
  23. package/dist/packem_shared/{offline-queue-B9vfdSqp.mjs → offline-queue-CF4_Co5k.mjs} +29 -0
  24. package/dist/packem_shared/{preload.d-BXFvxpiv.d.mts → preload.d-6ME5ubgq.d.mts} +1 -1
  25. package/dist/packem_shared/{preload.d-Bb69VRgE.d.ts → preload.d-BkQr-3Vh.d.ts} +1 -1
  26. package/dist/packem_shared/{subscription-DoyO04-2.mjs → stable-key-wv6eP48B.mjs} +1 -26
  27. package/dist/query/index.d.mts +2 -2
  28. package/dist/query/index.d.ts +2 -2
  29. package/dist/ssr/index.d.mts +3 -3
  30. package/dist/ssr/index.d.ts +3 -3
  31. package/dist/ssr/index.mjs +1 -1
  32. package/package.json +2 -2
  33. package/dist/packem_shared/SubscriptionRegistry-Cxr70og-.mjs +0 -1
  34. package/dist/packem_shared/createLocalStore-IOur0jHF.mjs +0 -1
@@ -1,5 +1,5 @@
1
- import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-DVdVtJV8.mjs";
2
- export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-DVdVtJV8.mjs";
1
+ import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-pw-9sLl0.mjs";
2
+ export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-pw-9sLl0.mjs";
3
3
  import '@lunora/runtime';
4
4
  /**
5
5
  * The sentinel a framework adapter resolves its reactive args to when it wants
@@ -1,5 +1,5 @@
1
- import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-DVdVtJV8.js";
2
- export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-DVdVtJV8.js";
1
+ import { S as SubscriptionError, F as FunctionReference, A as ArgsOf, R as ReturnOf, L as LunoraClient, a as Unsubscribe } from "../packem_shared/lunora-client.d-pw-9sLl0.js";
2
+ export type { b as SubscriptionErrorCallback } from "../packem_shared/lunora-client.d-pw-9sLl0.js";
3
3
  import '@lunora/runtime';
4
4
  /**
5
5
  * The sentinel a framework adapter resolves its reactive args to when it wants
@@ -1,6 +1,6 @@
1
- import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-DVdVtJV8.mjs";
2
- export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-DVdVtJV8.mjs";
3
- export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-BXFvxpiv.mjs";
1
+ import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-pw-9sLl0.mjs";
2
+ export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-pw-9sLl0.mjs";
3
+ export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-6ME5ubgq.mjs";
4
4
  import '@lunora/runtime';
5
5
  /**
6
6
  * Structural shape of a better-auth `getSession` call's resolved value.
@@ -1,6 +1,6 @@
1
- import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-DVdVtJV8.js";
2
- export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-DVdVtJV8.js";
3
- export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-Bb69VRgE.js";
1
+ import { P as Preloaded, L as LunoraClient } from "../packem_shared/lunora-client.d-pw-9sLl0.js";
2
+ export type { A as ArgsOf, F as FunctionReference, R as ReturnOf } from "../packem_shared/lunora-client.d-pw-9sLl0.js";
3
+ export { p as preloadQuery, a as preloadedQueryResult } from "../packem_shared/preload.d-BkQr-3Vh.js";
4
4
  import '@lunora/runtime';
5
5
  /**
6
6
  * Structural shape of a better-auth `getSession` call's resolved value.
@@ -1,4 +1,4 @@
1
1
  export { getServerSession } from '../packem_shared/getServerSession-8jXewqxd.mjs';
2
2
  export { deserializePreloaded, serializePreloaded } from '../packem_shared/deserializePreloaded-C0eJTY_W.mjs';
3
- export { createServerClient } from '../packem_shared/createServerClient-CKKZrXLc.mjs';
3
+ export { createServerClient } from '../packem_shared/createServerClient-Dxemst5C.mjs';
4
4
  export { preloadQuery, preloadedQueryResult } from '../packem_shared/preloadQuery-lobFkD2Z.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/client",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.22",
4
4
  "description": "Lunora browser SDK: WebSocket transport, optimistic updates, and an offline mutation queue",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -62,7 +62,7 @@
62
62
  "access": "public"
63
63
  },
64
64
  "dependencies": {
65
- "@lunora/errors": "1.0.0-alpha.3"
65
+ "@lunora/errors": "1.0.0-alpha.4"
66
66
  },
67
67
  "engines": {
68
68
  "node": "^22.15.0 || >=24.11.0"
@@ -1 +0,0 @@
1
- export { S as SubscriptionRegistry } from './subscription-DoyO04-2.mjs';
@@ -1 +0,0 @@
1
- export { c as createLocalStore } from './local-store-BNgN3Dw3.mjs';