@voyantjs/hono 0.6.9 → 0.8.0

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/app.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAoBlF,wBAAgB,SAAS,CAAC,SAAS,SAAS,cAAc,EACxD,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,GACjC,IAAI,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,CAkI3D"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAA;AAS3B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAoBlF,wBAAgB,SAAS,CAAC,SAAS,SAAS,cAAc,EACxD,MAAM,EAAE,eAAe,CAAC,SAAS,CAAC,GACjC,IAAI,CAAC;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,SAAS,EAAE,eAAe,CAAA;CAAE,CAAC,CAiJ3D"}
package/dist/app.js CHANGED
@@ -45,14 +45,27 @@ export function createApp(config) {
45
45
  if (!bootstrapPromise) {
46
46
  bootstrapPromise = (async () => {
47
47
  const ctx = { bindings, container, eventBus };
48
+ // Run each bootstrap in isolation — a single failing plugin/module/extension
49
+ // must not poison the cached promise and kill the whole app's request pipeline.
50
+ const runIsolated = async (label, fn) => {
51
+ if (!fn)
52
+ return;
53
+ try {
54
+ await fn(ctx);
55
+ }
56
+ catch (error) {
57
+ const message = error instanceof Error ? error.message : String(error);
58
+ console.error(`[voyant] bootstrap failed for ${label}: ${message}`);
59
+ }
60
+ };
48
61
  for (const plugin of config.plugins ?? []) {
49
- await plugin.bootstrap?.(ctx);
62
+ await runIsolated(`plugin:${plugin.name}`, plugin.bootstrap);
50
63
  }
51
64
  for (const mod of allModules) {
52
- await mod.module.bootstrap?.(ctx);
65
+ await runIsolated(`module:${mod.module.name}`, mod.module.bootstrap);
53
66
  }
54
67
  for (const ext of allExtensions) {
55
- await ext.extension.bootstrap?.(ctx);
68
+ await runIsolated(`extension:${ext.extension.module}/${ext.extension.name}`, ext.extension.bootstrap);
56
69
  }
57
70
  })();
58
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voyantjs/hono",
3
- "version": "0.6.9",
3
+ "version": "0.8.0",
4
4
  "license": "FSL-1.1-Apache-2.0",
5
5
  "type": "module",
6
6
  "exports": {
@@ -77,10 +77,10 @@
77
77
  "drizzle-orm": "^0.45.2",
78
78
  "hono": "^4.12.10",
79
79
  "zod": "^4.3.6",
80
- "@voyantjs/core": "0.6.9",
81
- "@voyantjs/db": "0.6.9",
82
- "@voyantjs/types": "0.6.9",
83
- "@voyantjs/utils": "0.6.9"
80
+ "@voyantjs/core": "0.8.0",
81
+ "@voyantjs/db": "0.8.0",
82
+ "@voyantjs/types": "0.8.0",
83
+ "@voyantjs/utils": "0.8.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@cloudflare/workers-types": "^4.20260403.1",