@aponiajs/platform-elysia 0.6.0-alpha.12 → 0.6.0-alpha.14

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/README.md CHANGED
@@ -255,6 +255,14 @@ costs nothing at runtime — the values are still there, only untyped.
255
255
  `configureNative` remains available as an application-level escape hatch. It
256
256
  preserves Elysia's accumulated plugin types on `getNativeApplication()`.
257
257
 
258
+ ## Bootstrap diagnostics
259
+
260
+ A controller descriptor with a platform kind other than
261
+ `aponia.elysia.controller` fails with `UNSUPPORTED_CONTROLLER`. A recognized
262
+ Elysia controller whose `buildPlugin` factory returns something other than an
263
+ Elysia instance fails with `INVALID_CONTROLLER`. Both are reported during
264
+ `AponiaFactory.create`, before the application can listen.
265
+
258
266
  [npm package](https://www.npmjs.com/package/@aponiajs/platform-elysia) ·
259
267
  [native plugin guide](../../docs/native-plugins.md) ·
260
268
  [complete package catalog](../../docs/packages.md)
package/dist/index.mjs CHANGED
@@ -292,7 +292,7 @@ var AponiaFactory = class {
292
292
  }
293
293
  const instance = container.instantiateController(module, controller);
294
294
  const plugin = Reflect.apply(controller.buildPlugin, void 0, [instance]);
295
- if (!(plugin instanceof Elysia)) throw new AponiaError("UNSUPPORTED_CONTROLLER", `Controller "${tokenName(controller.token)}" did not build an Elysia plugin.`, {
295
+ if (!(plugin instanceof Elysia)) throw new AponiaError("INVALID_CONTROLLER", `Controller "${tokenName(controller.token)}" did not build an Elysia plugin.`, {
296
296
  module: module.id,
297
297
  controller: tokenName(controller.token)
298
298
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aponiajs/platform-elysia",
3
- "version": "0.6.0-alpha.12",
3
+ "version": "0.6.0-alpha.14",
4
4
  "description": "Minimal Elysia application platform for Aponia modules and controllers.",
5
5
  "homepage": "https://github.com/aponiajs/aponiajs#readme",
6
6
  "bugs": {
@@ -33,8 +33,8 @@
33
33
  "prepublishOnly": "bun run build"
34
34
  },
35
35
  "dependencies": {
36
- "@aponiajs/common": "0.6.0-alpha.12",
37
- "@aponiajs/core": "0.6.0-alpha.12"
36
+ "@aponiajs/common": "0.6.0-alpha.14",
37
+ "@aponiajs/core": "0.6.0-alpha.14"
38
38
  },
39
39
  "devDependencies": {
40
40
  "arktype": "^2.2.3",