@weifuwujs/messages 0.9.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +3 -0
  2. package/package.json +5 -2
package/README.md CHANGED
@@ -245,6 +245,9 @@ messageBusContract('my-bus', () => myMessageBus())
245
245
  // 第三个参数可选:{ skip: true } 或 { skip: '未实现清理' }
246
246
  ```
247
247
 
248
+ 工厂**会被套件多次调用**:每次须返回独立的 store(sqlite 驱动用 `':memory:'` 或唯一路径)——
249
+ 复用同一文件会状态泄漏并假红。
250
+
248
251
  契约覆盖:insert/get(IDOR 防线)、幂等键、游标分页不重不漏、unread 计数与已读隔离、
249
252
  listAfter 补投、watch/unwatch 订阅泄漏回归。
250
253
 
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@weifuwujs/messages",
3
- "version": "0.9.0",
3
+ "version": "1.0.0",
4
4
  "description": "weifuwu 站内信:幂等发送、REST 收件箱、WS 实时 + 断线 since 补投去重、memory/sqlite/postgres 契约套件、可插拔总线",
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=24.0.0"
8
+ },
6
9
  "exports": {
7
10
  ".": {
8
11
  "types": "./dist/index.d.ts",
@@ -41,7 +44,7 @@
41
44
  "prepublishOnly": "npm run typecheck && npm run build && npm test"
42
45
  },
43
46
  "peerDependencies": {
44
- "@weifuwujs/weifuwu": ">=0.8 <1",
47
+ "@weifuwujs/weifuwu": ">=1 <2",
45
48
  "postgres": ">=3.4.0",
46
49
  "ioredis": ">=5.0.0"
47
50
  },