@lunora/react 1.0.0-alpha.195 → 1.0.0-alpha.197

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
@@ -868,7 +868,6 @@ declare const useFlags: <T extends Record<string, FlagValue>>(flags: T) => T;
868
868
  type UseStreamStatus = "complete" | "error" | "idle" | "streaming";
869
869
  /**
870
870
  * Result shape returned by {@link useHttpStream}.
871
- * @experimental Part of the HTTP-SSE stream surface.
872
871
  */
873
872
  interface UseHttpStreamResult<T> {
874
873
  /** Force-cancel the stream (aborts the fetch) and resolve the iterator. Safe to call multiple times. */
@@ -880,7 +879,6 @@ interface UseHttpStreamResult<T> {
880
879
  }
881
880
  /**
882
881
  * Options accepted by {@link useHttpStream}.
883
- * @experimental Part of the HTTP-SSE stream surface.
884
882
  */
885
883
  interface UseHttpStreamOptions {
886
884
  /** Forwarded to `client.httpStream()` — caps the in-flight chunk buffer. */
@@ -897,7 +895,6 @@ interface UseHttpStreamOptions {
897
895
  *
898
896
  * Pass `"skip"` for `args` to keep the hook mounted without opening a stream
899
897
  * (mirrors `useQuery` / `useStream`).
900
- * @experimental Reconnect/POST-body/wire-fidelity design questions are still open, so the shape may change.
901
898
  */
902
899
  declare const useHttpStream: <Ref extends HttpStreamRef>(route: Ref, args: "skip" | HttpStreamArgsOf<Ref>, options?: UseHttpStreamOptions) => UseHttpStreamResult<HttpStreamChunkOf<Ref>>;
903
900
  /** The args a paginated query exposes minus the framework-supplied page cursor. */
package/dist/index.d.ts CHANGED
@@ -868,7 +868,6 @@ declare const useFlags: <T extends Record<string, FlagValue>>(flags: T) => T;
868
868
  type UseStreamStatus = "complete" | "error" | "idle" | "streaming";
869
869
  /**
870
870
  * Result shape returned by {@link useHttpStream}.
871
- * @experimental Part of the HTTP-SSE stream surface.
872
871
  */
873
872
  interface UseHttpStreamResult<T> {
874
873
  /** Force-cancel the stream (aborts the fetch) and resolve the iterator. Safe to call multiple times. */
@@ -880,7 +879,6 @@ interface UseHttpStreamResult<T> {
880
879
  }
881
880
  /**
882
881
  * Options accepted by {@link useHttpStream}.
883
- * @experimental Part of the HTTP-SSE stream surface.
884
882
  */
885
883
  interface UseHttpStreamOptions {
886
884
  /** Forwarded to `client.httpStream()` — caps the in-flight chunk buffer. */
@@ -897,7 +895,6 @@ interface UseHttpStreamOptions {
897
895
  *
898
896
  * Pass `"skip"` for `args` to keep the hook mounted without opening a stream
899
897
  * (mirrors `useQuery` / `useStream`).
900
- * @experimental Reconnect/POST-body/wire-fidelity design questions are still open, so the shape may change.
901
898
  */
902
899
  declare const useHttpStream: <Ref extends HttpStreamRef>(route: Ref, args: "skip" | HttpStreamArgsOf<Ref>, options?: UseHttpStreamOptions) => UseHttpStreamResult<HttpStreamChunkOf<Ref>>;
903
900
  /** The args a paginated query exposes minus the framework-supplied page cursor. */
@@ -19,6 +19,8 @@ interface Subscription {
19
19
  /** Start of the current billing period — the window metered usage is summed over. */
20
20
  readonly currentPeriodStart?: number;
21
21
  readonly id: string;
22
+ /** When the provider says the last applied event happened (epoch ms); older redeliveries are ignored. */
23
+ readonly lastEventAt?: number;
22
24
  readonly priceId: string;
23
25
  /**
24
26
  * EVERY price/product id the subscription bills, not just the primary one. A Stripe
package/dist/payment.d.ts CHANGED
@@ -19,6 +19,8 @@ interface Subscription {
19
19
  /** Start of the current billing period — the window metered usage is summed over. */
20
20
  readonly currentPeriodStart?: number;
21
21
  readonly id: string;
22
+ /** When the provider says the last applied event happened (epoch ms); older redeliveries are ignored. */
23
+ readonly lastEventAt?: number;
22
24
  readonly priceId: string;
23
25
  /**
24
26
  * EVERY price/product id the subscription bills, not just the primary one. A Stripe
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/react",
3
- "version": "1.0.0-alpha.195",
3
+ "version": "1.0.0-alpha.197",
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.183",
60
+ "@lunora/client": "1.0.0-alpha.185",
61
61
  "@lunora/errors": "1.0.0-alpha.50",
62
- "@lunora/ratelimit": "1.0.0-alpha.112",
62
+ "@lunora/ratelimit": "1.0.0-alpha.114",
63
63
  "@visulima/storage-client": "1.0.8"
64
64
  },
65
65
  "peerDependencies": {