@lunora/vue 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 +11 -11
- package/dist/packem_shared/{AuthLoading-_6-uOycE.mjs → AuthLoading-DKra8yfG.mjs} +1 -1
- package/dist/packem_shared/{LUNORA_INJECTION_KEY-DtFXLDQ_.mjs → LUNORA_INJECTION_KEY-DQM5MgsC.mjs} +5 -1
- package/dist/packem_shared/{hydratePreloaded-rVY68iFv.mjs → hydratePreloaded-Cnd2GmG1.mjs} +2 -2
- package/dist/packem_shared/{subscribeToQuery-Cv5YL-SI.mjs → subscribeToQuery-hVYyvgOD.mjs} +1 -1
- package/dist/packem_shared/{useAuth-C2aEzXXH.mjs → useAuth-yXaaF-ro.mjs} +1 -1
- package/dist/packem_shared/{useConnectionStatus-CDgduQYe.mjs → useConnectionStatus-DM_TOaW5.mjs} +1 -1
- package/dist/packem_shared/{useFlag-DRtODeBp.mjs → useFlag-Diuk30zd.mjs} +1 -1
- package/dist/packem_shared/{useInfiniteQuery-CEfbw7Nw.mjs → useInfiniteQuery-DZMfVEuL.mjs} +1 -1
- package/dist/packem_shared/{useMutation-DWubV5pv.mjs → useMutation-BKIwT8Jk.mjs} +1 -1
- package/dist/packem_shared/{usePresence-BeN5xaZM.mjs → usePresence-VXq5yGzE.mjs} +1 -1
- package/dist/packem_shared/{useSubscription-Ol0AZFUv.mjs → useSubscription-DHoCEXNh.mjs} +1 -1
- package/package.json +5 -4
package/dist/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { AuthLoading, Authenticated, Unauthenticated } from './packem_shared/AuthLoading-
|
|
2
|
-
export { hydratePreloaded } from './packem_shared/hydratePreloaded-
|
|
3
|
-
export { LUNORA_INJECTION_KEY, createLunora, provideLunora, useLunora } from './packem_shared/LUNORA_INJECTION_KEY-
|
|
4
|
-
export { useAuth } from './packem_shared/useAuth-
|
|
5
|
-
export { default as useConnectionStatus } from './packem_shared/useConnectionStatus-
|
|
6
|
-
export { useFlag, useFlags } from './packem_shared/useFlag-
|
|
7
|
-
export { useMutation } from './packem_shared/useMutation-
|
|
1
|
+
export { AuthLoading, Authenticated, Unauthenticated } from './packem_shared/AuthLoading-DKra8yfG.mjs';
|
|
2
|
+
export { hydratePreloaded } from './packem_shared/hydratePreloaded-Cnd2GmG1.mjs';
|
|
3
|
+
export { LUNORA_INJECTION_KEY, createLunora, provideLunora, useLunora } from './packem_shared/LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
|
+
export { useAuth } from './packem_shared/useAuth-yXaaF-ro.mjs';
|
|
5
|
+
export { default as useConnectionStatus } from './packem_shared/useConnectionStatus-DM_TOaW5.mjs';
|
|
6
|
+
export { useFlag, useFlags } from './packem_shared/useFlag-Diuk30zd.mjs';
|
|
7
|
+
export { useMutation } from './packem_shared/useMutation-BKIwT8Jk.mjs';
|
|
8
8
|
export { useMutator } from './packem_shared/useMutator-B_Ahs_ZN.mjs';
|
|
9
|
-
export { useInfiniteQuery, usePaginatedQuery } from './packem_shared/useInfiniteQuery-
|
|
10
|
-
export { usePresence } from './packem_shared/usePresence-
|
|
11
|
-
export { subscribeToQuery, useQuery } from './packem_shared/subscribeToQuery-
|
|
9
|
+
export { useInfiniteQuery, usePaginatedQuery } from './packem_shared/useInfiniteQuery-DZMfVEuL.mjs';
|
|
10
|
+
export { usePresence } from './packem_shared/usePresence-VXq5yGzE.mjs';
|
|
11
|
+
export { subscribeToQuery, useQuery } from './packem_shared/subscribeToQuery-hVYyvgOD.mjs';
|
|
12
12
|
export { useRateLimit } from './packem_shared/useRateLimit-DlPWjcX1.mjs';
|
|
13
|
-
export { useSubscription } from './packem_shared/useSubscription-
|
|
13
|
+
export { useSubscription } from './packem_shared/useSubscription-DHoCEXNh.mjs';
|
package/dist/packem_shared/{LUNORA_INJECTION_KEY-DtFXLDQ_.mjs → LUNORA_INJECTION_KEY-DQM5MgsC.mjs}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LunoraError } from '@lunora/errors';
|
|
1
2
|
import { inject, provide } from 'vue';
|
|
2
3
|
|
|
3
4
|
const LUNORA_INJECTION_KEY = /* @__PURE__ */ Symbol("lunora.client");
|
|
@@ -14,7 +15,10 @@ const provideLunora = (client) => {
|
|
|
14
15
|
const useLunora = () => {
|
|
15
16
|
const client = inject(LUNORA_INJECTION_KEY, void 0);
|
|
16
17
|
if (!client) {
|
|
17
|
-
throw new
|
|
18
|
+
throw new LunoraError(
|
|
19
|
+
"INTERNAL",
|
|
20
|
+
"useLunora(): no LunoraClient provided — call app.use(createLunora(client)) or provideLunora(client) in a parent setup()."
|
|
21
|
+
);
|
|
18
22
|
}
|
|
19
23
|
return client;
|
|
20
24
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
2
|
-
import { subscribeToQuery } from './subscribeToQuery-
|
|
1
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
2
|
+
import { subscribeToQuery } from './subscribeToQuery-hVYyvgOD.mjs';
|
|
3
3
|
|
|
4
4
|
const hydratePreloaded = (preloaded) => {
|
|
5
5
|
const client = useLunora();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createQuerySubscription } from '@lunora/client/query';
|
|
2
2
|
import { shallowRef, getCurrentScope, onScopeDispose, watch, toValue } from 'vue';
|
|
3
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
3
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
4
|
|
|
5
5
|
const subscribeToQuery = (client, function_, args, options = {}) => {
|
|
6
6
|
const data = shallowRef(options.seed);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getIdentityStore } from '@lunora/client/auth';
|
|
2
2
|
import { ref, onScopeDispose, readonly } from 'vue';
|
|
3
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
3
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
4
|
|
|
5
5
|
const useAuth = () => {
|
|
6
6
|
const client = useLunora();
|
package/dist/packem_shared/{useConnectionStatus-CDgduQYe.mjs → useConnectionStatus-DM_TOaW5.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowRef, getCurrentScope, onScopeDispose } from 'vue';
|
|
2
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
2
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
3
3
|
|
|
4
4
|
const useConnectionStatus = () => {
|
|
5
5
|
const client = useLunora();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { shallowRef, watch, toValue, onScopeDispose, computed } from 'vue';
|
|
2
2
|
import { initialPages, derivePaginationStatus, rebalance, applyLoadMore } from '@lunora/client/pagination';
|
|
3
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
3
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
4
|
|
|
5
5
|
const buildPageKey = (functionPath, pageArgs) => `${functionPath}::${JSON.stringify(pageArgs)}`;
|
|
6
6
|
const buildPageArgs = (page, baseArgs) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createMutationRunner } from '@lunora/client';
|
|
2
2
|
import { shallowRef, ref } from 'vue';
|
|
3
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
3
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
4
|
|
|
5
5
|
const useMutation = (function_) => {
|
|
6
6
|
const client = useLunora();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shallowRef, onScopeDispose } from 'vue';
|
|
2
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
2
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.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 { ref, watch, toValue, onScopeDispose } from 'vue';
|
|
3
|
-
import { useLunora } from './LUNORA_INJECTION_KEY-
|
|
3
|
+
import { useLunora } from './LUNORA_INJECTION_KEY-DQM5MgsC.mjs';
|
|
4
4
|
|
|
5
5
|
const useSubscription = (function_, args, options = {}) => {
|
|
6
6
|
const client = useLunora();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/vue",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.28",
|
|
4
4
|
"description": "Vue adapter for Lunora — live composables, 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.
|
|
58
|
-
"@lunora/
|
|
59
|
-
"@lunora/
|
|
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
|
"vue": "^3.5.0"
|