@lunora/solid 1.0.0-alpha.17 → 1.0.0-alpha.19

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.mjs CHANGED
@@ -1,13 +1,13 @@
1
- export { LunoraContext, useLunora } from './packem_shared/LunoraContext-C9SpKj54.mjs';
2
- export { AuthLoading, Authenticated, Unauthenticated, createAuth } from './packem_shared/AuthLoading-RMT5Q_eE.mjs';
3
- export { default as createConnectionStatus } from './packem_shared/createConnectionStatus-D8GPatZX.mjs';
4
- export { createFlag, createFlags } from './packem_shared/createFlag-CKgsjSsW.mjs';
5
- export { createMutation, createMutationForClient } from './packem_shared/createMutation-C7BxzO0y.mjs';
1
+ export { LunoraContext, useLunora } from './packem_shared/LunoraContext-C59PzHhN.mjs';
2
+ export { AuthLoading, Authenticated, Unauthenticated, createAuth } from './packem_shared/AuthLoading-u5QJoV-J.mjs';
3
+ export { default as createConnectionStatus } from './packem_shared/createConnectionStatus-1poqwqR9.mjs';
4
+ export { createFlag, createFlags } from './packem_shared/createFlag-DTGaIdMo.mjs';
5
+ export { createMutation, createMutationForClient } from './packem_shared/createMutation-LkrbhItI.mjs';
6
6
  export { createMutator } from './packem_shared/createMutator-foSnPJPt.mjs';
7
- export { createInfiniteQuery, createPaginatedQuery } from './packem_shared/createInfiniteQuery-DyMvQ2Qy.mjs';
8
- export { createPresence } from './packem_shared/createPresence-DiAak1Jw.mjs';
9
- export { createQuery } from './packem_shared/createQuery-D8mdHfyQ.mjs';
7
+ export { createInfiniteQuery, createPaginatedQuery } from './packem_shared/createInfiniteQuery-q2r4PSqD.mjs';
8
+ export { createPresence } from './packem_shared/createPresence-DMiDP353.mjs';
9
+ export { createQuery } from './packem_shared/createQuery-BUldvZXj.mjs';
10
10
  export { createRateLimit } from './packem_shared/createRateLimit-BA2f8XyF.mjs';
11
- export { createSubscription } from './packem_shared/createSubscription-BM2fw8hw.mjs';
12
- export { default as hydratePreloaded } from './packem_shared/hydratePreloaded-CaT1kDBH.mjs';
13
- export { LunoraProvider } from './packem_shared/LunoraProvider-B5BJFk3K.mjs';
11
+ export { createSubscription } from './packem_shared/createSubscription-C_ed4Rov.mjs';
12
+ export { default as hydratePreloaded } from './packem_shared/hydratePreloaded-CWny5-2J.mjs';
13
+ export { LunoraProvider } from './packem_shared/LunoraProvider-CzB3zGhy.mjs';
@@ -1,7 +1,7 @@
1
1
  import { createComponent, memo } from 'solid-js/web';
2
2
  import { getIdentityStore } from '@lunora/client/auth';
3
3
  import { Show, createSignal, onCleanup } from 'solid-js';
4
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
4
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
5
5
 
6
6
  const createAuth = () => {
7
7
  const client = useLunora();
@@ -1,10 +1,11 @@
1
+ import { LunoraError } from '@lunora/errors';
1
2
  import { createContext, useContext } from 'solid-js';
2
3
 
3
4
  const LunoraContext = createContext();
4
5
  const useLunora = () => {
5
6
  const client = useContext(LunoraContext);
6
7
  if (!client) {
7
- throw new Error("useLunora must be used inside <LunoraProvider />");
8
+ throw new LunoraError("INTERNAL", "useLunora must be used inside <LunoraProvider />");
8
9
  }
9
10
  return client;
10
11
  };
@@ -1,5 +1,5 @@
1
1
  import { createComponent } from 'solid-js/web';
2
- import { LunoraContext } from './LunoraContext-C9SpKj54.mjs';
2
+ import { LunoraContext } from './LunoraContext-C59PzHhN.mjs';
3
3
 
4
4
  const LunoraProvider = (props) => (
5
5
  // `props.client` is read lazily inside the JSX so Solid tracks it: swapping
@@ -1,5 +1,5 @@
1
1
  import { createSignal, onCleanup } from 'solid-js';
2
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
2
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
3
3
 
4
4
  const createConnectionStatus = () => {
5
5
  const client = useLunora();
@@ -1,5 +1,5 @@
1
1
  import { createSignal, createEffect, on, onCleanup } from 'solid-js';
2
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
2
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
3
3
 
4
4
  const compareKeys = (a, b) => {
5
5
  if (a < b) {
@@ -1,6 +1,6 @@
1
1
  import { initialPages, derivePaginationStatus, rebalance, applyLoadMore } from '@lunora/client/pagination';
2
2
  import { createMemo, createSignal, createEffect, on, onCleanup } from 'solid-js';
3
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
3
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
4
4
 
5
5
  const buildPageArgs = (page, baseArgs) => {
6
6
  return {
@@ -1,6 +1,6 @@
1
1
  import { createMutationRunner } from '@lunora/client';
2
2
  import { createSignal } from 'solid-js';
3
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
3
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
4
4
 
5
5
  const createMutationForClient = (client, function_) => {
6
6
  const [data, setData] = createSignal(void 0);
@@ -1,5 +1,5 @@
1
1
  import { createSignal, onMount, onCleanup } from 'solid-js';
2
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
2
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
3
3
 
4
4
  const makeSessionId = () => {
5
5
  if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
@@ -1,6 +1,6 @@
1
1
  import { createQuerySubscription } from '@lunora/client/query';
2
2
  import { createSignal, createEffect, on, onCleanup } from 'solid-js';
3
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
3
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
4
4
 
5
5
  const createQuery = (function_, args, options = {}) => {
6
6
  const client = useLunora();
@@ -1,6 +1,6 @@
1
1
  import { createQuerySubscription } from '@lunora/client/query';
2
2
  import { createSignal, createEffect, on, onCleanup } from 'solid-js';
3
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
3
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
4
4
 
5
5
  const createSubscription = (function_, args, options = {}) => {
6
6
  const client = useLunora();
@@ -1,5 +1,5 @@
1
1
  import { createSignal, createEffect, onCleanup } from 'solid-js';
2
- import { useLunora } from './LunoraContext-C9SpKj54.mjs';
2
+ import { useLunora } from './LunoraContext-C59PzHhN.mjs';
3
3
 
4
4
  const hydratePreloaded = (preloaded) => {
5
5
  const client = useLunora();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/solid",
3
- "version": "1.0.0-alpha.17",
3
+ "version": "1.0.0-alpha.19",
4
4
  "description": "SolidJS adapter for Lunora — live queries, optimistic mutations, and reactive loaders",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -50,8 +50,9 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/client": "1.0.0-alpha.15",
54
- "@lunora/ratelimit": "1.0.0-alpha.3"
53
+ "@lunora/client": "1.0.0-alpha.17",
54
+ "@lunora/errors": "1.0.0-alpha.1",
55
+ "@lunora/ratelimit": "1.0.0-alpha.4"
55
56
  },
56
57
  "peerDependencies": {
57
58
  "solid-js": "^1.9.0"