@aomex/common-service 3.30.8-alpha.7326d75.0 → 4.0.1-alpha.738bd27.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/CHANGELOG.md +24 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.0.0](https://github.com/aomex/aomex/compare/v3.30.7...v4.0.0) (2026-11-17)
|
|
7
|
+
|
|
8
|
+
* feat(cache)!: 引入BaseCacheService服务和remember装饰器 ([f48dba5](https://github.com/aomex/aomex/commit/f48dba555e6ddfaa4cc5b240b30cea6e4b39a0c1))
|
|
9
|
+
* feat(service)!: 服务改为懒加载代理 ([6e68e80](https://github.com/aomex/aomex/commit/6e68e80ffc33ff3cdc11216bbdb50badaf485566))
|
|
10
|
+
* chore!: 升级至 TypeScript 7 并将构建工具迁移到 tsdown ([a111409](https://github.com/aomex/aomex/commit/a111409021e2ee81ee5fb20ccc75480c9b5fa4c0))
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* **service:** 增加registerLifecycle管理第三方服务的生命周期 ([62ef5ac](https://github.com/aomex/aomex/commit/62ef5ac8497b466a5b76c3bc396ec34f84773a97))
|
|
15
|
+
* **service:** 添加 eager 选项以支持服务的预初始化 ([f60d847](https://github.com/aomex/aomex/commit/f60d847df05d0e8d83c1204e957c16f3ffc74cee))
|
|
16
|
+
* **web:** webApp 退出时支持超时强制断开 ([cba07c3](https://github.com/aomex/aomex/commit/cba07c3345a6e6604e3bfd898dfe147d89621857))
|
|
17
|
+
|
|
18
|
+
### BREAKING CHANGES
|
|
19
|
+
|
|
20
|
+
* `destroyServices` 改为内部 API
|
|
21
|
+
* combineServices 仅接受 `() => import(...)` 工厂,不再直接传 Class
|
|
22
|
+
* Node.js 最低版本提升至 `>=24.0.0`。
|
|
23
|
+
* 最低 TypeScript 版本为 7。
|
|
24
|
+
* 对外服务方法一律返回 Promise;字段不再对外暴露
|
|
25
|
+
* 服务生命周期 `init`/`destroy` 重命名为 `onInit`/`onDestroy`
|
|
26
|
+
* 移除 Service 构造注入的 `services`,类内互调改为直接 import
|
|
27
|
+
* 装饰器从 Caching.decorate 改为 remember
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## [3.30.7](https://github.com/aomex/aomex/compare/v3.30.6...v3.30.7) (2026-11-01)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @aomex/common-service
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aomex/common-service",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1-alpha.738bd27.0",
|
|
4
4
|
"description": "aomex服务层",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"homepage": "https://aomex.js.org",
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@aomex/internal-tools": "
|
|
31
|
+
"@aomex/internal-tools": "4.0.1-alpha.738bd27.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {}
|
|
34
34
|
}
|