@hile/core 1.0.21 → 1.0.22

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.
Files changed (2) hide show
  1. package/SKILL.md +2 -2
  2. package/package.json +2 -2
package/SKILL.md CHANGED
@@ -16,7 +16,7 @@ description: "@hile/core 的代码生成与使用规范。适用于定义/加载
16
16
  5. 禁止在模块顶层缓存 `await loadService(...)` 结果。
17
17
  6. 依赖服务必须在服务函数内部加载。
18
18
  7. 多个 teardown 默认按 LIFO 顺序执行。
19
- 8. `container.shutdown()` 必须执行所有已通过 `shutdown(fn)` 注册的回调;在 shutdown 进行中才完成启动并调用 `curDown` 的服务,也会在让出一次事件循环后被关掉(避免竞态漏关)。
19
+ 8. `container.shutdown()` 必须执行所有已通过 `shutdown(fn)` 注册的回调;在 shutdown 进行中才完成启动并调用 `shutdown` 的服务,也会在让出一次事件循环后被关掉(避免竞态漏关)。
20
20
 
21
21
  ## 2. 生命周期与超时约束
22
22
 
@@ -111,4 +111,4 @@ export const good = defineService(async (shutdown) => {
111
111
  - [ ] teardown 抛错是否不覆盖原始业务错误
112
112
  - [ ] 并发 resolve 同一服务是否只初始化一次
113
113
  - [ ] shutdown 重复调用是否幂等
114
- - [ ] shutdown 期间才注册的 teardown 是否在一次 setImmediate 让出后被正确执行
114
+ - [ ] shutdown 期间才注册的 teardown 是否在一次 setImmediate 让出后被正确执行(避免竞态漏关)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hile/core",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "Hile core - lightweight async service container",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,5 +24,5 @@
24
24
  "fix-esm-import-path": "^1.10.3",
25
25
  "vitest": "^4.0.18"
26
26
  },
27
- "gitHead": "f5d59f9f131456cf14e5ca62eeea6becde84ebef"
27
+ "gitHead": "ffc0bf9ab4d0e251244c174536bac79c1f2f77fe"
28
28
  }