@lunora/vite 1.0.0-alpha.40 → 1.0.0-alpha.400

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.
Files changed (34) hide show
  1. package/LICENSE.md +6 -0
  2. package/README.md +11 -2
  3. package/dist/index.d.mts +447 -332
  4. package/dist/index.d.ts +447 -332
  5. package/dist/index.mjs +4 -164
  6. package/dist/packem_shared/CLASS_A_WIRING-j8JLPFDs.mjs +28 -0
  7. package/dist/packem_shared/LUNORA_API_UPDATED_EVENT-CO2Rv2re.mjs +1 -0
  8. package/dist/packem_shared/WORKER_STARTUP_HINT-COlRTY32.mjs +5 -0
  9. package/dist/packem_shared/build-session-D75JzvIT.mjs +1 -0
  10. package/dist/packem_shared/buildStudioUrl-B9K0wAjC.mjs +1 -0
  11. package/dist/packem_shared/checkLunoraProxy-BNPgNWtV.mjs +1 -0
  12. package/dist/packem_shared/codegenPlugin-D-Exl6Lf.mjs +3 -0
  13. package/dist/packem_shared/containerLogsPlugin-CWF3LHN3.mjs +1 -0
  14. package/dist/packem_shared/devStatePlugin-CF4GDvBn.mjs +1 -0
  15. package/dist/packem_shared/devVariablesPlugin-Bm5X49VR.mjs +1 -0
  16. package/dist/packem_shared/logStreamPlugin-EMXiy6pI.mjs +3 -0
  17. package/dist/packem_shared/lunoraSolutionFinder--J0x2mAM.mjs +1 -0
  18. package/dist/packem_shared/planViteRemoteBindings-DYUUW67d.mjs +1 -0
  19. package/dist/packem_shared/server-close-DWiO4Vxb.mjs +1 -0
  20. package/dist/packem_shared/wranglerValidatorPlugin-CPPKubFC.mjs +1 -0
  21. package/package.json +8 -9
  22. package/dist/packem_shared/CLASS_A_WIRING-DWYL4g1x.mjs +0 -118
  23. package/dist/packem_shared/DEV_WORKER_ENV_VALUE-Coo6bgVz.mjs +0 -36
  24. package/dist/packem_shared/STUDIO_PATH-yREc3Bbm.mjs +0 -221
  25. package/dist/packem_shared/WORKER_STARTUP_HINT-DhsXUW8k.mjs +0 -81
  26. package/dist/packem_shared/codegenPlugin-B_ayaObq.mjs +0 -207
  27. package/dist/packem_shared/containerLogsPlugin-DMssU3wb.mjs +0 -50
  28. package/dist/packem_shared/devVariablesPlugin-CDNSnvOP.mjs +0 -19
  29. package/dist/packem_shared/log-BjO9EWah.mjs +0 -8
  30. package/dist/packem_shared/logStreamPlugin-CqvZ17kd.mjs +0 -61
  31. package/dist/packem_shared/lunoraSolutionFinder-BKEAiUJP.mjs +0 -17
  32. package/dist/packem_shared/planViteRemoteBindings-QN5ncUS1.mjs +0 -50
  33. package/dist/packem_shared/reconcileWranglerCrons-PxGwfCp_.mjs +0 -29
  34. package/dist/packem_shared/wranglerValidatorPlugin-CEoJEghS.mjs +0 -66
package/LICENSE.md CHANGED
@@ -103,3 +103,9 @@ Unless required by applicable law or agreed to in writing, software distributed
103
103
  under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
104
  CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
105
  specific language governing permissions and limitations under the License.
106
+
107
+ <!-- DEPENDENCIES -->
108
+ <!-- /DEPENDENCIES -->
109
+
110
+ <!-- TYPE_DEPENDENCIES -->
111
+ <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -68,9 +68,12 @@ With no options, `lunora()` runs codegen on save, validates `wrangler.jsonc`, in
68
68
 
69
69
  ```ts
70
70
  lunora({
71
- schemaDir: "lunora", // dir with schema.ts + function files
72
- generatedDir: "lunora/_generated", // where api.ts/server.ts/dataModel.ts land
71
+ schemaDir: "lunora", // dir with schema.ts + function files (generated output lands in <schemaDir>/_generated)
73
72
  apiSpec: "openapi", // "openapi" | "openrpc" | "both" | "none"
73
+ lazyFunctions: true, // optional per-module lazy function imports; lunora prepare/build/deploy regenerate with their own --lazy-functions flag
74
+ target: "cloudflare", // deploy target the emitted ctx.* surface is tailored to
75
+ allowUnauthenticatedShardAccess: false, // composed class-A worker: allow a client-named shard / fan-out with no authorizeShard
76
+ shard: { cdc: true, reactiveCache: true }, // class-A only: shard DO config for the composed entry (class B/C set this in their own worker entry)
74
77
  studio: false, // disable the /__lunora studio
75
78
  overlay: false, // disable the runtime error overlay
76
79
  validateWrangler: false, // skip the wrangler.jsonc binding check
@@ -78,6 +81,12 @@ lunora({
78
81
  });
79
82
  ```
80
83
 
84
+ `target` must match the target the CLI resolved for the run. `lunora build` and `lunora deploy` set `LUNORA_BUILD_TARGET`, and a plugin whose target differs fails the build rather than emit an artifact for another host. Set the same target in the plugin options and `lunora.config.*`, or leave it unset to use the project's.
85
+
86
+ `LUNORA_LAZY_FUNCTIONS=1` or `true` enables lazy imports even when
87
+ `lazyFunctions` is `false`, for both dev and production builds.
88
+ `lunora dev --lazy-functions` sets this variable for its bundler child process.
89
+
81
90
  `lunora()` returns a flat `Plugin[]`; Vite flattens nested plugin arrays, so `plugins: [lunora()]` works without spreading.
82
91
 
83
92
  ### Error overlay