millas 0.2.10 → 0.2.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "millas",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "A modern batteries-included backend framework for Node.js — built on Express, inspired by Laravel, Django, and FastAPI",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -226,29 +226,21 @@ class MillasApp {
226
226
  /** The raw Express application instance. */
227
227
  get express() { return this._expressApp; }
228
228
 
229
- /** The underlying Application kernel. */
229
+ /** The underlying Application kernel (also accessible as .app for back-compat). */
230
230
  get kernel() { return this._kernel; }
231
+ get app() { return this._kernel; }
231
232
 
232
233
  /** The DI container. */
233
234
  get container() { return this._kernel?._container; }
234
235
 
235
- /** The Route instance (for programmatic route registration). */
236
+ /** The Route instance used by route:list command. */
236
237
  get route() { return this._kernel?._route; }
237
238
 
238
- // ─── module.exports helper ────────────────────────────────────────────────
239
-
240
239
  /**
241
- * Returns a plain object suitable for module.exports.
242
- * Matches the shape existing code expects.
240
+ * The raw Express app backward-compatible alias.
241
+ * Allows: const { expressApp } = require('./bootstrap/app')
243
242
  */
244
- toModule() {
245
- const self = this;
246
- return {
247
- app: this._kernel,
248
- expressApp: this._expressApp,
249
- get route() { return self._kernel?._route; },
250
- };
251
- }
243
+ get expressApp() { return this._expressApp; }
252
244
 
253
245
  // ─── Internal ─────────────────────────────────────────────────────────────
254
246