@lunora/svelte 1.0.0-alpha.26 → 1.0.0-alpha.28

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,12 +1,12 @@
1
- export { auth } from './packem_shared/auth-DLPf_bK9.mjs';
2
- export { connectionStatus } from './packem_shared/connectionStatus-CRsOMeYl.mjs';
3
- export { getLunoraClient, setLunoraClient } from './packem_shared/getLunoraClient--bwSz7F6.mjs';
4
- export { flag, flags } from './packem_shared/flag-19nEeKPT.mjs';
5
- export { hydratePreloaded } from './packem_shared/hydratePreloaded-D5rUJdXy.mjs';
6
- export { mutation } from './packem_shared/mutation-CnDkAaLH.mjs';
1
+ export { auth } from './packem_shared/auth-BeYqYP9S.mjs';
2
+ export { connectionStatus } from './packem_shared/connectionStatus-BrICpw9d.mjs';
3
+ export { getLunoraClient, setLunoraClient } from './packem_shared/getLunoraClient-Prczj1gU.mjs';
4
+ export { flag, flags } from './packem_shared/flag-CqMU07WH.mjs';
5
+ export { hydratePreloaded } from './packem_shared/hydratePreloaded-Djsf_C8Q.mjs';
6
+ export { mutation } from './packem_shared/mutation-BmkCZnTd.mjs';
7
7
  export { mutator } from './packem_shared/mutator-B5LchgMS.mjs';
8
- export { infiniteQuery, paginatedQuery } from './packem_shared/infiniteQuery-jPMQw8Vz.mjs';
9
- export { presence } from './packem_shared/presence-BQWixJ2T.mjs';
10
- export { query } from './packem_shared/query-D8Pct9Qe.mjs';
8
+ export { infiniteQuery, paginatedQuery } from './packem_shared/infiniteQuery-BFsBpXnS.mjs';
9
+ export { presence } from './packem_shared/presence-UJKjdcKg.mjs';
10
+ export { query } from './packem_shared/query-BsJHHnAK.mjs';
11
11
  export { rateLimit } from './packem_shared/rateLimit-Cdw1kp8t.mjs';
12
- export { subscription } from './packem_shared/subscription-twuBT_Wb.mjs';
12
+ export { subscription } from './packem_shared/subscription-C121AbM_.mjs';
@@ -1,6 +1,6 @@
1
1
  import { getIdentityStore } from '@lunora/client/auth';
2
2
  import { readable } from 'svelte/store';
3
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
3
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
4
4
 
5
5
  const auth = (explicitClient) => {
6
6
  const client = explicitClient ?? getLunoraClient();
@@ -1,5 +1,5 @@
1
1
  import { readable } from 'svelte/store';
2
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
2
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
3
3
 
4
4
  const connectionStatus = (client) => {
5
5
  const resolved = client ?? getLunoraClient();
@@ -1,5 +1,5 @@
1
1
  import { readable } from 'svelte/store';
2
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
2
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
3
3
 
4
4
  const FLAGS_EVAL_PATH = "__lunora_flags__:eval";
5
5
  const flagKind = (value) => {
@@ -1,3 +1,4 @@
1
+ import { LunoraError } from '@lunora/errors';
1
2
  import { setContext, getContext } from 'svelte';
2
3
 
3
4
  const LUNORA_CONTEXT_KEY = /* @__PURE__ */ Symbol("lunora.client");
@@ -8,7 +9,7 @@ const setLunoraClient = (client) => {
8
9
  const getLunoraClient = () => {
9
10
  const client = getContext(LUNORA_CONTEXT_KEY);
10
11
  if (!client) {
11
- throw new Error("getLunoraClient(): no LunoraClient in context — call setLunoraClient(client) in an ancestor component first.");
12
+ throw new LunoraError("INTERNAL", "getLunoraClient(): no LunoraClient in context — call setLunoraClient(client) in an ancestor component first.");
12
13
  }
13
14
  return client;
14
15
  };
@@ -1,5 +1,5 @@
1
1
  import { readable } from 'svelte/store';
2
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
2
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
3
3
 
4
4
  const hydratePreloaded = (preloaded, client) => {
5
5
  const resolvedClient = client ?? getLunoraClient();
@@ -1,6 +1,6 @@
1
1
  import { initialPages, derivePaginationStatus, rebalance, applyLoadMore } from '@lunora/client/pagination';
2
2
  import { derived, writable, readable } from 'svelte/store';
3
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
3
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
4
4
  import { i as isFunctionReference } from './is-function-reference-ycLAcI79.mjs';
5
5
 
6
6
  const buildPageArgs = (page, baseArgs) => {
@@ -1,6 +1,6 @@
1
1
  import { createMutationRunner } from '@lunora/client';
2
2
  import { writable } from 'svelte/store';
3
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
3
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
4
4
 
5
5
  function mutation(clientOrFunction, maybeFunction) {
6
6
  const hasExplicitClient = maybeFunction !== void 0;
@@ -1,5 +1,5 @@
1
1
  import { readable } from 'svelte/store';
2
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
2
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.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 { readable } from 'svelte/store';
3
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
3
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
4
4
  import { i as isFunctionReference } from './is-function-reference-ycLAcI79.mjs';
5
5
 
6
6
  function query(clientOrFunction, functionOrArguments, argumentsOrOptions, maybeOptions) {
@@ -1,6 +1,6 @@
1
1
  import { createQuerySubscription } from '@lunora/client/query';
2
2
  import { writable, readable } from 'svelte/store';
3
- import { getLunoraClient } from './getLunoraClient--bwSz7F6.mjs';
3
+ import { getLunoraClient } from './getLunoraClient-Prczj1gU.mjs';
4
4
  import { i as isFunctionReference } from './is-function-reference-ycLAcI79.mjs';
5
5
 
6
6
  function subscription(clientOrFunction, functionOrArgs, argsOrOptions, maybeOptions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/svelte",
3
- "version": "1.0.0-alpha.26",
3
+ "version": "1.0.0-alpha.28",
4
4
  "description": "Svelte adapter for Lunora — live stores, optimistic mutations, and reactive loaders",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -54,9 +54,10 @@
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@lunora/client": "1.0.0-alpha.16",
58
- "@lunora/ratelimit": "1.0.0-alpha.3",
59
- "@lunora/runtime": "1.0.0-alpha.16"
57
+ "@lunora/client": "1.0.0-alpha.17",
58
+ "@lunora/errors": "1.0.0-alpha.1",
59
+ "@lunora/ratelimit": "1.0.0-alpha.4",
60
+ "@lunora/runtime": "1.0.0-alpha.18"
60
61
  },
61
62
  "peerDependencies": {
62
63
  "svelte": "^5.0.0"