@weifuwujs/auth 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.
- package/README.md +3 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -77,6 +77,9 @@ import { authStoreContract } from '@weifuwujs/auth/testing'
|
|
|
77
77
|
authStoreContract('my-store', () => myAuthStore())
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
工厂**会被套件多次调用**:每次须返回独立的 store(sqlite 驱动用 `':memory:'` 或唯一路径)——
|
|
81
|
+
复用同一文件会状态泄漏并假红。
|
|
82
|
+
|
|
80
83
|
`AuthStore` 可拆(`UserStore` / `SessionStore` / `ResetTokenStore`),`listUsers?()` 为可选管理能力。
|
|
81
84
|
|
|
82
85
|
## 换 hasher(存量 bcrypt 惰性迁移)
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weifuwujs/auth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "weifuwu 用户系统:scrypt、会话轮换、防枚举、限流、无 JS 表单页(memory/sqlite/postgres store + 契约套件)",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=24.0.0"
|
|
8
|
+
},
|
|
6
9
|
"exports": {
|
|
7
10
|
".": {
|
|
8
11
|
"types": "./dist/index.d.ts",
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
"prepublishOnly": "npm run typecheck && npm run build && npm test"
|
|
37
40
|
},
|
|
38
41
|
"peerDependencies": {
|
|
39
|
-
"@weifuwujs/weifuwu": ">=
|
|
42
|
+
"@weifuwujs/weifuwu": ">=1 <2",
|
|
40
43
|
"postgres": ">=3.4.0"
|
|
41
44
|
},
|
|
42
45
|
"peerDependenciesMeta": {
|