@lunora/server 1.0.0-alpha.157 → 1.0.0-alpha.158
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 +20 -0
- package/dist/types.d.ts +20 -0
- package/package.json +4 -4
package/dist/types.d.mts
CHANGED
|
@@ -2470,6 +2470,20 @@ interface MutationCtx {
|
|
|
2470
2470
|
* `nondeterministic_query_mutation` advisor). Actions may use `Date.now()`.
|
|
2471
2471
|
*/
|
|
2472
2472
|
readonly now: number;
|
|
2473
|
+
/**
|
|
2474
|
+
* The origin (`scheme://host[:port]`) the request behind this dispatch reached
|
|
2475
|
+
* the worker on: the base for an absolute URL back to this app, such as a
|
|
2476
|
+
* signed storage URL, with no per-environment value to configure.
|
|
2477
|
+
*
|
|
2478
|
+
* The runtime reads it off the request URL, never off a client header, and
|
|
2479
|
+
* forwards it to the shard with the dispatch. `undefined` wherever no request
|
|
2480
|
+
* is behind the call: a scheduled or workflow run, a queue consumer, a
|
|
2481
|
+
* server-initiated dispatch. A query has no `origin` at all: a live query
|
|
2482
|
+
* re-runs with no request behind it, and its cached result is shared across
|
|
2483
|
+
* callers on every host, so a query that builds such a URL needs a configured
|
|
2484
|
+
* base.
|
|
2485
|
+
*/
|
|
2486
|
+
readonly origin?: string;
|
|
2473
2487
|
/**
|
|
2474
2488
|
* Compose a submutation in-process, reusing this mutation's `db` writer.
|
|
2475
2489
|
* Executes the referenced mutation's handler directly — no fresh DO RPC —
|
|
@@ -2545,6 +2559,12 @@ interface ActionCtx {
|
|
|
2545
2559
|
* may also use ambient `Date.now()` freely.
|
|
2546
2560
|
*/
|
|
2547
2561
|
readonly now: number;
|
|
2562
|
+
/**
|
|
2563
|
+
* The origin the request behind this dispatch reached the worker on, or
|
|
2564
|
+
* `undefined` when no request is behind it. Identical to
|
|
2565
|
+
* {@link MutationCtx.origin}.
|
|
2566
|
+
*/
|
|
2567
|
+
readonly origin?: string;
|
|
2548
2568
|
readonly runAction: RunAction;
|
|
2549
2569
|
readonly runMutation: RunMutation;
|
|
2550
2570
|
readonly runQuery: RunQuery;
|
package/dist/types.d.ts
CHANGED
|
@@ -2470,6 +2470,20 @@ interface MutationCtx {
|
|
|
2470
2470
|
* `nondeterministic_query_mutation` advisor). Actions may use `Date.now()`.
|
|
2471
2471
|
*/
|
|
2472
2472
|
readonly now: number;
|
|
2473
|
+
/**
|
|
2474
|
+
* The origin (`scheme://host[:port]`) the request behind this dispatch reached
|
|
2475
|
+
* the worker on: the base for an absolute URL back to this app, such as a
|
|
2476
|
+
* signed storage URL, with no per-environment value to configure.
|
|
2477
|
+
*
|
|
2478
|
+
* The runtime reads it off the request URL, never off a client header, and
|
|
2479
|
+
* forwards it to the shard with the dispatch. `undefined` wherever no request
|
|
2480
|
+
* is behind the call: a scheduled or workflow run, a queue consumer, a
|
|
2481
|
+
* server-initiated dispatch. A query has no `origin` at all: a live query
|
|
2482
|
+
* re-runs with no request behind it, and its cached result is shared across
|
|
2483
|
+
* callers on every host, so a query that builds such a URL needs a configured
|
|
2484
|
+
* base.
|
|
2485
|
+
*/
|
|
2486
|
+
readonly origin?: string;
|
|
2473
2487
|
/**
|
|
2474
2488
|
* Compose a submutation in-process, reusing this mutation's `db` writer.
|
|
2475
2489
|
* Executes the referenced mutation's handler directly — no fresh DO RPC —
|
|
@@ -2545,6 +2559,12 @@ interface ActionCtx {
|
|
|
2545
2559
|
* may also use ambient `Date.now()` freely.
|
|
2546
2560
|
*/
|
|
2547
2561
|
readonly now: number;
|
|
2562
|
+
/**
|
|
2563
|
+
* The origin the request behind this dispatch reached the worker on, or
|
|
2564
|
+
* `undefined` when no request is behind it. Identical to
|
|
2565
|
+
* {@link MutationCtx.origin}.
|
|
2566
|
+
*/
|
|
2567
|
+
readonly origin?: string;
|
|
2548
2568
|
readonly runAction: RunAction;
|
|
2549
2569
|
readonly runMutation: RunMutation;
|
|
2550
2570
|
readonly runQuery: RunQuery;
|
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.158",
|
|
4
4
|
"description": "Server primitives for Lunora: defineSchema, defineTable, query, mutation, and action",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"backend",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@lunora/errors": "1.0.0-alpha.
|
|
70
|
-
"@lunora/scheduler": "1.0.0-alpha.
|
|
71
|
-
"@lunora/shard-engine": "1.0.0-alpha.
|
|
69
|
+
"@lunora/errors": "1.0.0-alpha.47",
|
|
70
|
+
"@lunora/scheduler": "1.0.0-alpha.96",
|
|
71
|
+
"@lunora/shard-engine": "1.0.0-alpha.97",
|
|
72
72
|
"@lunora/values": "1.0.0-alpha.57",
|
|
73
73
|
"drizzle-orm": "^0.45.2",
|
|
74
74
|
"hono": "^4.13.7"
|