@lunora/codegen 1.0.0-alpha.40 → 1.0.0-alpha.42
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.mjs +5 -5
- package/dist/packem_shared/{GENERATED_HEADER-cUyu5VOU.mjs → GENERATED_HEADER-D6RK1WF1.mjs} +1 -1
- package/dist/packem_shared/{OPENRPC_VERSION-DxbqafcJ.mjs → OPENRPC_VERSION-CzhfvCIQ.mjs} +1 -1
- package/dist/packem_shared/{SCHEMA_SNAPSHOT_FILENAME-C1yHg38Z.mjs → SCHEMA_SNAPSHOT_FILENAME-Cl1EBMdR.mjs} +4 -4
- package/dist/packem_shared/{buildOpenApiDocument-_mwWOc2N.mjs → buildOpenApiDocument-bg-NnLka.mjs} +1 -1
- package/dist/packem_shared/{emit-CFz-9dcD.mjs → emit-31Yg1Ee5.mjs} +4 -3
- package/dist/packem_shared/{emitApp-D8rVuM__.mjs → emitApp-DCP7Pr6M.mjs} +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -19,11 +19,11 @@ export { default as discoverSchema } from './packem_shared/discoverSchema-DFWVgU
|
|
|
19
19
|
export { SHAPES_FILENAME, discoverShapes } from './packem_shared/SHAPES_FILENAME-DOhPGi-6.mjs';
|
|
20
20
|
export { default as discoverStorageRulesMetadata } from './packem_shared/discoverStorageRulesMetadata-nosjYcvN.mjs';
|
|
21
21
|
export { WORKFLOWS_FILENAME, discoverWorkflows } from './packem_shared/WORKFLOWS_FILENAME-B2By8S4s.mjs';
|
|
22
|
-
export { G as GENERATED_HEADER, e as emitApi, a as emitCollections, b as emitContainers, c as emitCrons, d as emitDataModel, f as emitDrizzleSchema, g as emitFunctions, h as emitServer, i as emitShard, j as emitVectors, k as emitWorkflows, l as emitWranglerCronTriggers } from './packem_shared/emit-
|
|
23
|
-
export { emitApp } from './packem_shared/emitApp-
|
|
24
|
-
export { buildOpenApiDocument, emitOpenApi, emitOpenApiModule } from './packem_shared/buildOpenApiDocument-
|
|
25
|
-
export { OPENRPC_VERSION, buildOpenRpcDocument, emitOpenRpc, emitOpenRpcModule } from './packem_shared/OPENRPC_VERSION-
|
|
26
|
-
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME-
|
|
22
|
+
export { G as GENERATED_HEADER, e as emitApi, a as emitCollections, b as emitContainers, c as emitCrons, d as emitDataModel, f as emitDrizzleSchema, g as emitFunctions, h as emitServer, i as emitShard, j as emitVectors, k as emitWorkflows, l as emitWranglerCronTriggers } from './packem_shared/emit-31Yg1Ee5.mjs';
|
|
23
|
+
export { emitApp } from './packem_shared/emitApp-DCP7Pr6M.mjs';
|
|
24
|
+
export { buildOpenApiDocument, emitOpenApi, emitOpenApiModule } from './packem_shared/buildOpenApiDocument-bg-NnLka.mjs';
|
|
25
|
+
export { OPENRPC_VERSION, buildOpenRpcDocument, emitOpenRpc, emitOpenRpcModule } from './packem_shared/OPENRPC_VERSION-CzhfvCIQ.mjs';
|
|
26
|
+
export { SCHEMA_SNAPSHOT_FILENAME, createCodegenProject, refreshCodegenProject, runCodegen } from './packem_shared/SCHEMA_SNAPSHOT_FILENAME-Cl1EBMdR.mjs';
|
|
27
27
|
export { SCHEMA_SNAPSHOT_VERSION, SchemaSnapshotParseError, buildSchemaSnapshot, diffSchemaSnapshots, evaluateSchemaDrift, parseSchemaSnapshot, serializeSchemaSnapshot } from './packem_shared/SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
28
28
|
export { schemaFromIr } from './packem_shared/schemaFromIr-DTYsLBaA.mjs';
|
|
29
29
|
export { LUNORA_ERROR_CODES, validatorIrToJsonSchema } from './packem_shared/LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '@lunora/errors';
|
|
2
|
-
export { G as GENERATED_HEADER, m as buildStorageColumns, e as emitApi, a as emitCollections, b as emitContainers, c as emitCrons, d as emitDataModel, f as emitDrizzleSchema, g as emitFunctions, n as emitQueues, o as emitSeed, h as emitServer, i as emitShard, j as emitVectors, k as emitWorkflows, l as emitWranglerCronTriggers } from './emit-
|
|
2
|
+
export { G as GENERATED_HEADER, m as buildStorageColumns, e as emitApi, a as emitCollections, b as emitContainers, c as emitCrons, d as emitDataModel, f as emitDrizzleSchema, g as emitFunctions, n as emitQueues, o as emitSeed, h as emitServer, i as emitShard, j as emitVectors, k as emitWorkflows, l as emitWranglerCronTriggers } from './emit-31Yg1Ee5.mjs';
|
|
3
3
|
import './paths-BRd6JHuF.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { G as GENERATED_HEADER } from './emit-31Yg1Ee5.mjs';
|
|
2
2
|
import { s as sanitizeNamespace } from './paths-BRd6JHuF.mjs';
|
|
3
3
|
import { argsObjectSchema, LUNORA_ERROR_CODES } from './LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ import discoverAuthApiCalls from './discoverAuthApiCalls-WMx8L2FG.mjs';
|
|
|
9
9
|
import { discoverContainers } from './CONTAINERS_FILENAME-DjpXMqhp.mjs';
|
|
10
10
|
import discoverCrons from './discoverCrons-D-jrpm97.mjs';
|
|
11
11
|
import { diagnosticAt } from './CodegenDiagnosticError-DyQ5FwkM.mjs';
|
|
12
|
-
import { C as CAPABILITIES, m as buildStorageColumns, d as emitDataModel, e as emitApi, h as emitServer, g as emitFunctions, i as emitShard, a as emitCollections, b as emitContainers, k as emitWorkflows, n as emitQueues, c as emitCrons, j as emitVectors, f as emitDrizzleSchema, o as emitSeed, l as emitWranglerCronTriggers } from './emit-
|
|
12
|
+
import { C as CAPABILITIES, m as buildStorageColumns, d as emitDataModel, e as emitApi, h as emitServer, g as emitFunctions, i as emitShard, a as emitCollections, b as emitContainers, k as emitWorkflows, n as emitQueues, c as emitCrons, j as emitVectors, f as emitDrizzleSchema, o as emitSeed, l as emitWranglerCronTriggers } from './emit-31Yg1Ee5.mjs';
|
|
13
13
|
import { discoverFlagKeys } from './FLAGS_FILENAME-fEZtzWXi.mjs';
|
|
14
14
|
import discoverHttpRoutes from './discoverHttpRoutes-DNZLDCmm.mjs';
|
|
15
15
|
import discoverInserts from './discoverInserts-DFRJhmCv.mjs';
|
|
@@ -27,9 +27,9 @@ import { discoverShapes } from './SHAPES_FILENAME-DOhPGi-6.mjs';
|
|
|
27
27
|
import discoverStorageRulesMetadata from './discoverStorageRulesMetadata-nosjYcvN.mjs';
|
|
28
28
|
import { e as enclosingExportName$2 } from './discover-ast-CT6BgBr4.mjs';
|
|
29
29
|
import { discoverWorkflows } from './WORKFLOWS_FILENAME-B2By8S4s.mjs';
|
|
30
|
-
import { emitApp } from './emitApp-
|
|
31
|
-
import { buildOpenApiDocument, emitOpenApiModule } from './buildOpenApiDocument-
|
|
32
|
-
import { buildOpenRpcDocument, emitOpenRpcModule } from './OPENRPC_VERSION-
|
|
30
|
+
import { emitApp } from './emitApp-DCP7Pr6M.mjs';
|
|
31
|
+
import { buildOpenApiDocument, emitOpenApiModule } from './buildOpenApiDocument-bg-NnLka.mjs';
|
|
32
|
+
import { buildOpenRpcDocument, emitOpenRpcModule } from './OPENRPC_VERSION-CzhfvCIQ.mjs';
|
|
33
33
|
import { buildSchemaSnapshot, serializeSchemaSnapshot } from './SCHEMA_SNAPSHOT_VERSION-D0ARY6rL.mjs';
|
|
34
34
|
|
|
35
35
|
const HTTP_VERBS$1 = /* @__PURE__ */ new Set(["delete", "get", "head", "options", "patch", "post", "put"]);
|
package/dist/packem_shared/{buildOpenApiDocument-_mwWOc2N.mjs → buildOpenApiDocument-bg-NnLka.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { G as GENERATED_HEADER } from './emit-31Yg1Ee5.mjs';
|
|
2
2
|
import { s as sanitizeNamespace } from './paths-BRd6JHuF.mjs';
|
|
3
3
|
import { LUNORA_ERROR_CODES, objectSchema, argsObjectSchema, validatorIrToJsonSchema } from './LUNORA_ERROR_CODES-DvTLozCu.mjs';
|
|
4
4
|
|
|
@@ -1912,10 +1912,11 @@ const emitContainerFragments = (containers, jurisdiction) => {
|
|
|
1912
1912
|
}).join("\n");
|
|
1913
1913
|
return {
|
|
1914
1914
|
// Schema `.jurisdiction("…")` pins every container DO this shard reaches
|
|
1915
|
-
// to the data-residency region
|
|
1916
|
-
//
|
|
1915
|
+
// to the data-residency region (`undefined` when undeclared). The trailing
|
|
1916
|
+
// `this.getCurrentTraceparent()` forwards the inbound RPC's W3C trace
|
|
1917
|
+
// context onto outbound container fetches so their spans join the trace.
|
|
1917
1918
|
build: `
|
|
1918
|
-
const containers = createContainerContext(env, LUNORA_CONTAINERS${jurisdiction ?
|
|
1919
|
+
const containers = createContainerContext(env, LUNORA_CONTAINERS, ${jurisdiction ? JSON.stringify(jurisdiction) : "undefined"}, this.getCurrentTraceparent());
|
|
1919
1920
|
`,
|
|
1920
1921
|
contextField: `
|
|
1921
1922
|
containers,`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as APP_METHOD_CAPABILITIES, G as GENERATED_HEADER } from './emit-
|
|
1
|
+
import { A as APP_METHOD_CAPABILITIES, G as GENERATED_HEADER } from './emit-31Yg1Ee5.mjs';
|
|
2
2
|
|
|
3
3
|
const hasFlagKey = (key) => `has${key.charAt(0).toUpperCase()}${key.slice(1)}`;
|
|
4
4
|
const LONG_TAIL = APP_METHOD_CAPABILITIES.map(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/codegen",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.42",
|
|
4
4
|
"description": "Code generator for Lunora: emits _generated/{api,server,dataModel}.ts from your schema",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@lunora/advisor": "1.0.0-alpha.26",
|
|
50
|
-
"@lunora/container": "1.0.0-alpha.
|
|
50
|
+
"@lunora/container": "1.0.0-alpha.11",
|
|
51
51
|
"@lunora/errors": "1.0.0-alpha.4",
|
|
52
52
|
"@lunora/queue": "1.0.0-alpha.7",
|
|
53
53
|
"@lunora/scheduler": "1.0.0-alpha.8",
|