@lunora/react 1.0.0-alpha.104 → 1.0.0-alpha.106

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
@@ -73,6 +73,14 @@ interface UseQueryOptions {
73
73
  shardKey?: string;
74
74
  }
75
75
  interface UseMutationCallOptions<TCurrent = unknown, TValue = unknown, TArgs = unknown> {
76
+ /**
77
+ * Single-query shortcut forwarded to `client.mutation`: the transform is
78
+ * layered onto the subscription registered under **this write's own**
79
+ * `(reference, args, shardKey)` and nothing else. A `messages:send` mutation
80
+ * and a `messages:list` query share neither, so for that shape — nearly every
81
+ * shape — reach for {@link UseMutationCallOptions.optimisticUpdate}, whose
82
+ * store names the query it patches.
83
+ */
76
84
  optimistic?: (current: TCurrent | undefined) => TValue;
77
85
  /**
78
86
  * Convex-parity multi-query optimistic update forwarded to
package/dist/index.d.ts CHANGED
@@ -73,6 +73,14 @@ interface UseQueryOptions {
73
73
  shardKey?: string;
74
74
  }
75
75
  interface UseMutationCallOptions<TCurrent = unknown, TValue = unknown, TArgs = unknown> {
76
+ /**
77
+ * Single-query shortcut forwarded to `client.mutation`: the transform is
78
+ * layered onto the subscription registered under **this write's own**
79
+ * `(reference, args, shardKey)` and nothing else. A `messages:send` mutation
80
+ * and a `messages:list` query share neither, so for that shape — nearly every
81
+ * shape — reach for {@link UseMutationCallOptions.optimisticUpdate}, whose
82
+ * store names the query it patches.
83
+ */
76
84
  optimistic?: (current: TCurrent | undefined) => TValue;
77
85
  /**
78
86
  * Convex-parity multi-query optimistic update forwarded to
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "1.0.0-alpha.104",
3
+ "version": "1.0.0-alpha.106",
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.99",
61
- "@lunora/errors": "1.0.0-alpha.35",
62
- "@lunora/ratelimit": "1.0.0-alpha.55",
60
+ "@lunora/client": "1.0.0-alpha.101",
61
+ "@lunora/errors": "1.0.0-alpha.36",
62
+ "@lunora/ratelimit": "1.0.0-alpha.57",
63
63
  "@visulima/storage-client": "1.0.3"
64
64
  },
65
65
  "peerDependencies": {