@lunora/react 1.0.0-alpha.109 → 1.0.0-alpha.110

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.d.mts CHANGED
@@ -219,6 +219,9 @@ interface ActionHook<F extends FunctionReference> {
219
219
  *
220
220
  * await runCommand({ command: "lunora", args: ["verify"] });
221
221
  * ```
222
+ *
223
+ * Not callable: `const run = useAction(api.x.y); run({ … })` is a `TS2349`.
224
+ * Destructure the invoker — `const { call: run } = useAction(api.x.y)`.
222
225
  */
223
226
  declare const useAction: <F extends FunctionReference>(function_: F) => ActionHook<F>;
224
227
  /** The shape every list hook in this file returns. */
@@ -967,6 +970,9 @@ interface MutationHook<F extends FunctionReference> {
967
970
  * given mutation reference. Prefer destructuring at the call site so the React
968
971
  * linter can track dependencies on each field independently.
969
972
  *
973
+ * Not callable: `const send = useMutation(api.x.y); send({ … })` is a `TS2349`.
974
+ * Destructure the invoker — `const { mutate: send } = useMutation(api.x.y)`.
975
+ *
970
976
  * Built on TanStack Query's mutation cache (the same cache the query hooks use),
971
977
  * so it composes with Query Devtools and exposes the latest call's `data`/`error`
972
978
  * plus `reset()`. `mutate` maps to `mutateAsync`, so it stays an awaitable that
package/dist/index.d.ts CHANGED
@@ -219,6 +219,9 @@ interface ActionHook<F extends FunctionReference> {
219
219
  *
220
220
  * await runCommand({ command: "lunora", args: ["verify"] });
221
221
  * ```
222
+ *
223
+ * Not callable: `const run = useAction(api.x.y); run({ … })` is a `TS2349`.
224
+ * Destructure the invoker — `const { call: run } = useAction(api.x.y)`.
222
225
  */
223
226
  declare const useAction: <F extends FunctionReference>(function_: F) => ActionHook<F>;
224
227
  /** The shape every list hook in this file returns. */
@@ -967,6 +970,9 @@ interface MutationHook<F extends FunctionReference> {
967
970
  * given mutation reference. Prefer destructuring at the call site so the React
968
971
  * linter can track dependencies on each field independently.
969
972
  *
973
+ * Not callable: `const send = useMutation(api.x.y); send({ … })` is a `TS2349`.
974
+ * Destructure the invoker — `const { mutate: send } = useMutation(api.x.y)`.
975
+ *
970
976
  * Built on TanStack Query's mutation cache (the same cache the query hooks use),
971
977
  * so it composes with Query Devtools and exposes the latest call's `data`/`error`
972
978
  * plus `reset()`. `mutate` maps to `mutateAsync`, so it stays an awaitable that
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "1.0.0-alpha.109",
3
+ "version": "1.0.0-alpha.110",
4
4
  "description": "React hooks for Lunora: useQuery, useMutation, useSubscription, and useAuth",
5
5
  "keywords": [
6
6
  "cloudflare",
@@ -57,9 +57,9 @@
57
57
  "access": "public"
58
58
  },
59
59
  "dependencies": {
60
- "@lunora/client": "1.0.0-alpha.104",
60
+ "@lunora/client": "1.0.0-alpha.105",
61
61
  "@lunora/errors": "1.0.0-alpha.36",
62
- "@lunora/ratelimit": "1.0.0-alpha.58",
62
+ "@lunora/ratelimit": "1.0.0-alpha.59",
63
63
  "@visulima/storage-client": "1.0.3"
64
64
  },
65
65
  "peerDependencies": {