@lunora/client 1.0.0-alpha.3 → 1.0.0-alpha.30

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 (76) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +2 -0
  3. package/dist/auth/index.d.mts +10 -10
  4. package/dist/auth/index.d.ts +10 -10
  5. package/dist/auth/index.mjs +1 -60
  6. package/dist/index.d.mts +521 -169
  7. package/dist/index.d.ts +521 -169
  8. package/dist/index.mjs +1 -14
  9. package/dist/packem_shared/CONFLICT_ERROR_CODE-B2SU0CaJ.mjs +1 -0
  10. package/dist/packem_shared/ClientServiceWorker-CRQ5yl7-.mjs +1 -0
  11. package/dist/packem_shared/DEFAULT_MAX_BUFFER-TBn2s7Rz.mjs +1 -0
  12. package/dist/packem_shared/LunoraClient-DDEoZdgP.mjs +1 -0
  13. package/dist/packem_shared/OfflineQueue-B603_q8m.mjs +1 -0
  14. package/dist/packem_shared/SKIP-CArzT3Vl.mjs +1 -0
  15. package/dist/packem_shared/SubscriptionRegistry-CdrOD7sZ.mjs +1 -0
  16. package/dist/packem_shared/TabCoordinator-ijLic02x.mjs +1 -0
  17. package/dist/packem_shared/applyDelta-DXqQORbM.mjs +1 -0
  18. package/dist/packem_shared/createAsyncStoragePersistence-BRLqeXsC.mjs +1 -0
  19. package/dist/packem_shared/createClientQuery-CrdRoicO.mjs +1 -0
  20. package/dist/packem_shared/createInMemoryBookmarkStorage-DCd5Ej-t.mjs +1 -0
  21. package/dist/packem_shared/createInMemoryPersistence-CQYXy8UP.mjs +1 -0
  22. package/dist/packem_shared/createInMemoryQueryCache-DjCKrLjk.mjs +1 -0
  23. package/dist/packem_shared/createLocalStore-B3Tw_Tw1.mjs +1 -0
  24. package/dist/packem_shared/createMutationRunner-lQXH8Amk.mjs +1 -0
  25. package/dist/packem_shared/createMutatorRunner-BVzo0FBZ.mjs +1 -0
  26. package/dist/packem_shared/createReconnect-CFT7YRSR.mjs +1 -0
  27. package/dist/packem_shared/createReply-DF0jRsv-.mjs +1 -0
  28. package/dist/packem_shared/createServerClient-B7KqO8tv.mjs +1 -0
  29. package/dist/packem_shared/createSnapshotPrecondition-DOKRAJ4b.mjs +1 -0
  30. package/dist/packem_shared/deserializePreloaded-CHfOFpka.mjs +1 -0
  31. package/dist/packem_shared/getServerSession-CGjgRBAE.mjs +1 -0
  32. package/dist/packem_shared/httpStream-Cz4_QyjV.mjs +11 -0
  33. package/dist/packem_shared/idb-utility-C-DR8nG1.mjs +1 -0
  34. package/dist/packem_shared/local-store-C53xDvEr.mjs +1 -0
  35. package/dist/packem_shared/lunora-client.d-Bt65hm_E.d.mts +2979 -0
  36. package/dist/packem_shared/lunora-client.d-Bt65hm_E.d.ts +2979 -0
  37. package/dist/packem_shared/offline-queue-D73Dq95V.mjs +1 -0
  38. package/dist/packem_shared/preload.d-BmztUzzG.d.mts +20 -0
  39. package/dist/packem_shared/preload.d-DGGRMWB5.d.ts +20 -0
  40. package/dist/packem_shared/preloadQuery-DjwSjFwt.mjs +1 -0
  41. package/dist/packem_shared/wire-key-D_zOxXK4.mjs +1 -0
  42. package/dist/pagination/index.d.mts +42 -42
  43. package/dist/pagination/index.d.ts +42 -42
  44. package/dist/pagination/index.mjs +1 -61
  45. package/dist/query/index.d.mts +42 -42
  46. package/dist/query/index.d.ts +42 -42
  47. package/dist/query/index.mjs +1 -1
  48. package/dist/ssr/index.d.mts +79 -79
  49. package/dist/ssr/index.d.ts +79 -79
  50. package/dist/ssr/index.mjs +1 -4
  51. package/dist/upload.d.mts +35 -0
  52. package/dist/upload.d.ts +35 -0
  53. package/dist/upload.mjs +1 -0
  54. package/package.json +9 -1
  55. package/dist/packem_shared/CONFLICT_ERROR_CODE-aUdVbEDw.mjs +0 -4
  56. package/dist/packem_shared/DEFAULT_MAX_BUFFER-BDkqO5PW.mjs +0 -107
  57. package/dist/packem_shared/LunoraClient-UiULzH_1.mjs +0 -2165
  58. package/dist/packem_shared/OfflineQueue-D5p_QgF_.mjs +0 -127
  59. package/dist/packem_shared/SKIP-vItZChkw.mjs +0 -50
  60. package/dist/packem_shared/SubscriptionRegistry-B-Qx_Gux.mjs +0 -26
  61. package/dist/packem_shared/applyDelta-4jFGTPA3.mjs +0 -61
  62. package/dist/packem_shared/createAsyncStoragePersistence-1Z5BZ8RC.mjs +0 -45
  63. package/dist/packem_shared/createInMemoryBookmarkStorage-BoN7a7TH.mjs +0 -11
  64. package/dist/packem_shared/createInMemoryPersistence-CW82inU5.mjs +0 -105
  65. package/dist/packem_shared/createInMemoryQueryCache-B1PQ9Twl.mjs +0 -138
  66. package/dist/packem_shared/createLocalStore-DSUfoLqY.mjs +0 -36
  67. package/dist/packem_shared/createMutationRunner-BqsavzvG.mjs +0 -21
  68. package/dist/packem_shared/createReconnect-Di_-oHH7.mjs +0 -22
  69. package/dist/packem_shared/createServerClient-BjZc3gD8.mjs +0 -11
  70. package/dist/packem_shared/deserializePreloaded-C0eJTY_W.mjs +0 -4
  71. package/dist/packem_shared/getServerSession-8jXewqxd.mjs +0 -13
  72. package/dist/packem_shared/lunora-client.d-DGvyuJ_p.d.mts +0 -1597
  73. package/dist/packem_shared/lunora-client.d-DGvyuJ_p.d.ts +0 -1597
  74. package/dist/packem_shared/preload.d-BoDmFqSG.d.ts +0 -20
  75. package/dist/packem_shared/preload.d-dSaRMuhL.d.mts +0 -20
  76. package/dist/packem_shared/preloadQuery-lobFkD2Z.mjs +0 -13
@@ -1,20 +0,0 @@
1
- import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-DGvyuJ_p.js";
2
- /**
3
- * Run a query once on the server (during SSR) and capture its result in a
4
- * serializable {@link Preloaded} token. Embed the token in the rendered HTML and
5
- * pass it to `usePreloadedQuery` on the client: the first client render shows
6
- * the server value with no loading flash, then a live subscription takes over.
7
- *
8
- * The query is executed through the supplied {@link LunoraClient} over the same
9
- * HTTP RPC path the browser uses, so the SSR client only needs a `fetch`
10
- * implementation that can reach the worker — no in-process Durable Object access.
11
- */
12
- declare const preloadQuery: <F extends FunctionReference>(client: LunoraClient, function_: F, args: ArgsOf<F>, options?: {
13
- shardKey?: string;
14
- }) => Promise<Preloaded<ReturnOf<F>>>;
15
- /**
16
- * Read the captured value out of a {@link Preloaded} token without subscribing.
17
- * Useful on the server (or in tests) when you only need the data, not a live feed.
18
- */
19
- declare const preloadedQueryResult: <T>(preloaded: Preloaded<T>) => T;
20
- export { preloadedQueryResult as a, preloadQuery as p };
@@ -1,20 +0,0 @@
1
- import { F as FunctionReference, L as LunoraClient, A as ArgsOf, R as ReturnOf, P as Preloaded } from "./lunora-client.d-DGvyuJ_p.mjs";
2
- /**
3
- * Run a query once on the server (during SSR) and capture its result in a
4
- * serializable {@link Preloaded} token. Embed the token in the rendered HTML and
5
- * pass it to `usePreloadedQuery` on the client: the first client render shows
6
- * the server value with no loading flash, then a live subscription takes over.
7
- *
8
- * The query is executed through the supplied {@link LunoraClient} over the same
9
- * HTTP RPC path the browser uses, so the SSR client only needs a `fetch`
10
- * implementation that can reach the worker — no in-process Durable Object access.
11
- */
12
- declare const preloadQuery: <F extends FunctionReference>(client: LunoraClient, function_: F, args: ArgsOf<F>, options?: {
13
- shardKey?: string;
14
- }) => Promise<Preloaded<ReturnOf<F>>>;
15
- /**
16
- * Read the captured value out of a {@link Preloaded} token without subscribing.
17
- * Useful on the server (or in tests) when you only need the data, not a live feed.
18
- */
19
- declare const preloadedQueryResult: <T>(preloaded: Preloaded<T>) => T;
20
- export { preloadedQueryResult as a, preloadQuery as p };
@@ -1,13 +0,0 @@
1
- const preloadQuery = async (client, function_, args, options = {}) => {
2
- const value = await client.query(function_, args, options);
3
- return {
4
- __lunoraPreloaded: true,
5
- args: args ?? {},
6
- functionPath: function_.__lunoraRef,
7
- shardKey: options.shardKey,
8
- value
9
- };
10
- };
11
- const preloadedQueryResult = (preloaded) => preloaded.value;
12
-
13
- export { preloadQuery, preloadedQueryResult };