@lunora/server 1.0.0-alpha.189 → 1.0.0-alpha.190
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/types.d.mts +9 -3
- package/dist/types.d.ts +9 -3
- package/package.json +2 -2
package/dist/types.d.mts
CHANGED
|
@@ -2573,7 +2573,6 @@ interface QueryCtx {
|
|
|
2573
2573
|
readonly ip?: string;
|
|
2574
2574
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2575
2575
|
readonly log: LunoraLogger;
|
|
2576
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2577
2576
|
/**
|
|
2578
2577
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2579
2578
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2582,7 +2581,10 @@ interface QueryCtx {
|
|
|
2582
2581
|
* `.meta()`.
|
|
2583
2582
|
*/
|
|
2584
2583
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2584
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2585
2585
|
readonly metrics: LunoraMetrics;
|
|
2586
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2587
|
+
readonly newId: () => string;
|
|
2586
2588
|
/**
|
|
2587
2589
|
* Wall-clock time (epoch ms) the function began, captured once so the whole
|
|
2588
2590
|
* handler sees a single stable value. Query/mutation handlers must be
|
|
@@ -2629,7 +2631,6 @@ interface MutationCtx {
|
|
|
2629
2631
|
readonly ip?: string;
|
|
2630
2632
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2631
2633
|
readonly log: LunoraLogger;
|
|
2632
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2633
2634
|
/**
|
|
2634
2635
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2635
2636
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2638,7 +2639,10 @@ interface MutationCtx {
|
|
|
2638
2639
|
* `.meta()`.
|
|
2639
2640
|
*/
|
|
2640
2641
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2642
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2641
2643
|
readonly metrics: LunoraMetrics;
|
|
2644
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2645
|
+
readonly newId: () => string;
|
|
2642
2646
|
/**
|
|
2643
2647
|
* Wall-clock time (epoch ms) the function began, captured once so the whole
|
|
2644
2648
|
* handler sees a single stable value. Mutation handlers must be deterministic
|
|
@@ -2722,7 +2726,6 @@ interface ActionCtx {
|
|
|
2722
2726
|
readonly ip?: string;
|
|
2723
2727
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2724
2728
|
readonly log: LunoraLogger;
|
|
2725
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2726
2729
|
/**
|
|
2727
2730
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2728
2731
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2731,7 +2734,10 @@ interface ActionCtx {
|
|
|
2731
2734
|
* `.meta()`.
|
|
2732
2735
|
*/
|
|
2733
2736
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2737
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2734
2738
|
readonly metrics: LunoraMetrics;
|
|
2739
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2740
|
+
readonly newId: () => string;
|
|
2735
2741
|
/**
|
|
2736
2742
|
* Wall-clock time (epoch ms) the action began, captured once for convenience
|
|
2737
2743
|
* and parity with query/mutation `ctx.now`. Actions run exactly once, so they
|
package/dist/types.d.ts
CHANGED
|
@@ -2573,7 +2573,6 @@ interface QueryCtx {
|
|
|
2573
2573
|
readonly ip?: string;
|
|
2574
2574
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2575
2575
|
readonly log: LunoraLogger;
|
|
2576
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2577
2576
|
/**
|
|
2578
2577
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2579
2578
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2582,7 +2581,10 @@ interface QueryCtx {
|
|
|
2582
2581
|
* `.meta()`.
|
|
2583
2582
|
*/
|
|
2584
2583
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2584
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2585
2585
|
readonly metrics: LunoraMetrics;
|
|
2586
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2587
|
+
readonly newId: () => string;
|
|
2586
2588
|
/**
|
|
2587
2589
|
* Wall-clock time (epoch ms) the function began, captured once so the whole
|
|
2588
2590
|
* handler sees a single stable value. Query/mutation handlers must be
|
|
@@ -2629,7 +2631,6 @@ interface MutationCtx {
|
|
|
2629
2631
|
readonly ip?: string;
|
|
2630
2632
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2631
2633
|
readonly log: LunoraLogger;
|
|
2632
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2633
2634
|
/**
|
|
2634
2635
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2635
2636
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2638,7 +2639,10 @@ interface MutationCtx {
|
|
|
2638
2639
|
* `.meta()`.
|
|
2639
2640
|
*/
|
|
2640
2641
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2642
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2641
2643
|
readonly metrics: LunoraMetrics;
|
|
2644
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2645
|
+
readonly newId: () => string;
|
|
2642
2646
|
/**
|
|
2643
2647
|
* Wall-clock time (epoch ms) the function began, captured once so the whole
|
|
2644
2648
|
* handler sees a single stable value. Mutation handlers must be deterministic
|
|
@@ -2722,7 +2726,6 @@ interface ActionCtx {
|
|
|
2722
2726
|
readonly ip?: string;
|
|
2723
2727
|
/** Structured, function-attributed logger; see {@link LunoraLogger}. */
|
|
2724
2728
|
readonly log: LunoraLogger;
|
|
2725
|
-
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2726
2729
|
/**
|
|
2727
2730
|
* Static metadata declared on this procedure with `.meta(...)`, merged
|
|
2728
2731
|
* across calls and deep-frozen. Present so middleware can read the policy it
|
|
@@ -2731,7 +2734,10 @@ interface ActionCtx {
|
|
|
2731
2734
|
* `.meta()`.
|
|
2732
2735
|
*/
|
|
2733
2736
|
readonly meta?: Readonly<Record<string, unknown>>;
|
|
2737
|
+
/** Application counters, gauges, and histograms; see {@link LunoraMetrics}. */
|
|
2734
2738
|
readonly metrics: LunoraMetrics;
|
|
2739
|
+
/** `ctx.newId()`: see `createStableIdFactory`. Derived, not random, when the call carries a replay key. */
|
|
2740
|
+
readonly newId: () => string;
|
|
2735
2741
|
/**
|
|
2736
2742
|
* Wall-clock time (epoch ms) the action began, captured once for convenience
|
|
2737
2743
|
* and parity with query/mutation `ctx.now`. Actions run exactly once, so they
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/server",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.190",
|
|
4
4
|
"description": "Server primitives for Lunora: defineSchema, defineTable, query, mutation, and action",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"backend",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@lunora/errors": ">=1.0.0-alpha.51 <2.0.0-0",
|
|
74
74
|
"@lunora/scheduler": "1.0.0-alpha.116",
|
|
75
75
|
"@lunora/shard-engine": "1.0.0-alpha.119",
|
|
76
|
-
"@lunora/values": "1.0.0-alpha.
|
|
76
|
+
"@lunora/values": "1.0.0-alpha.62",
|
|
77
77
|
"drizzle-orm": "^0.45.3",
|
|
78
78
|
"hono": "^4.13.13"
|
|
79
79
|
},
|