@ubean/app 0.1.12 → 0.1.13

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.d.ts CHANGED
@@ -135,6 +135,8 @@ interface PageAssetTags {
135
135
  head?: string;
136
136
  bodyAttrs?: string;
137
137
  htmlAttrs?: string;
138
+ /** Favicon HREF (如 `/favicon.ico`),自动注入 `<link rel="icon">` 到 `<head>` */
139
+ favicon?: string;
138
140
  }
139
141
  interface UbeanAppOptions {
140
142
  rootDir?: string;
@@ -170,6 +172,8 @@ interface UbeanAppOptions {
170
172
  defaultLocale?: string;
171
173
  locales?: string[];
172
174
  };
175
+ /** `pages/404.vue` 自动检测的 404 页面,注册为 Hono 兜底处理器 */
176
+ notFoundPage?: ScannedPageRoute$1;
173
177
  }
174
178
  interface UbeanAppPlugin {
175
179
  name: string;
package/dist/index.js CHANGED
@@ -159,7 +159,8 @@ var UbeanApp = class {
159
159
  pageRenderer: this.options.pageRenderer ?? null,
160
160
  pageAssetTags: this.options.pageAssetTags ?? {},
161
161
  ssrExclude: this.options.ssrExclude,
162
- i18nConfig: this.options.i18nConfig
162
+ i18nConfig: this.options.i18nConfig,
163
+ notFoundPage: this.options.notFoundPage
163
164
  };
164
165
  await registerRoutes(this, registerOpts);
165
166
  if (this.options.openAPI) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubean/app",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "Hono app factory and server config for ubean (createUbeanApp, defineServer)",
5
5
  "files": [
6
6
  "dist"
@@ -19,21 +19,21 @@
19
19
  "hono": "4.12.32",
20
20
  "hookable": "^6.1.1",
21
21
  "pathe": "^2.0.3",
22
- "@ubean/api-routes": "0.1.12",
23
- "@ubean/error": "0.1.12",
24
- "@ubean/server": "0.1.12",
25
- "@ubean/types": "0.1.12"
22
+ "@ubean/error": "0.1.13",
23
+ "@ubean/api-routes": "0.1.13",
24
+ "@ubean/types": "0.1.13",
25
+ "@ubean/server": "0.1.13"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/node": "^26.1.2",
29
29
  "typescript": "7.0.2",
30
30
  "vite-plus": "0.2.6",
31
- "@ubean/pages": "0.1.12",
32
- "@ubean/routing": "0.1.12"
31
+ "@ubean/routing": "0.1.13",
32
+ "@ubean/pages": "0.1.13"
33
33
  },
34
34
  "peerDependencies": {
35
- "@ubean/pages": "0.1.12",
36
- "@ubean/routing": "0.1.12"
35
+ "@ubean/pages": "0.1.13",
36
+ "@ubean/routing": "0.1.13"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@ubean/routing": {