@weapp-vite/eslint 0.2.6 → 0.2.7
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.mjs +18 -13
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -82,10 +82,9 @@ const wevuCompatibilityCatalog = [
|
|
|
82
82
|
upstream: "pinia",
|
|
83
83
|
api: "createPinia",
|
|
84
84
|
wevuEntry: "wevu/store",
|
|
85
|
-
compatibility: "
|
|
86
|
-
diagnostic: "
|
|
87
|
-
|
|
88
|
-
summary: "Wevu Store 不创建 Pinia 根实例。",
|
|
85
|
+
compatibility: "supported",
|
|
86
|
+
diagnostic: "off",
|
|
87
|
+
summary: "创建独立管理器,通过 app.use 或 use(pinia) 安装。",
|
|
89
88
|
docs: "/wevu/api/store#createpinia",
|
|
90
89
|
surfaces: ["runtime"]
|
|
91
90
|
}),
|
|
@@ -133,19 +132,25 @@ const wevuCompatibilityCatalog = [
|
|
|
133
132
|
surfaces: ["runtime"]
|
|
134
133
|
})),
|
|
135
134
|
...[
|
|
136
|
-
["defineStore", "
|
|
137
|
-
["storeToRefs", "
|
|
138
|
-
["$
|
|
139
|
-
["$
|
|
140
|
-
["$
|
|
141
|
-
["
|
|
142
|
-
["
|
|
135
|
+
["defineStore", "Setup/Options Store 的日常用法对齐 Pinia 4.0.3;不包含 Web SSR、HMR 与 devtools。"],
|
|
136
|
+
["storeToRefs", "提取响应式 state/getters,过滤方法和非响应式属性。"],
|
|
137
|
+
["$state", "访问两种 Store 的响应式状态,赋值通过 patch function 合并。"],
|
|
138
|
+
["$patch", "支持深层对象补丁或状态修改回调。"],
|
|
139
|
+
["$reset", "Options Store 重新执行 state 工厂;Setup Store 自行实现。"],
|
|
140
|
+
["$subscribe", "默认按 watch 调度,并在注册作用域销毁时解绑;支持 detached。"],
|
|
141
|
+
["$onAction", "支持 detached 和 after/onError,已开始调用的结果回调不随退订取消。"],
|
|
142
|
+
["$dispose", "释放实例与副作用,保留管理器状态。"],
|
|
143
|
+
["getActivePinia", "读取当前注入或活动管理器。"],
|
|
144
|
+
["setActivePinia", "显式设置组件外的活动管理器。"],
|
|
145
|
+
["disposePinia", "释放管理器以及全部状态。"],
|
|
146
|
+
["install", "安装管理器并提供应用级注入。"],
|
|
147
|
+
["use", "注册 Pinia 风格的 Store 插件。"]
|
|
143
148
|
].map(([api, summary]) => entry$1({
|
|
144
149
|
upstream: "pinia",
|
|
145
150
|
api,
|
|
146
151
|
wevuEntry: "wevu/store",
|
|
147
|
-
compatibility: "supported
|
|
148
|
-
diagnostic: "
|
|
152
|
+
compatibility: "supported",
|
|
153
|
+
diagnostic: "off",
|
|
149
154
|
summary,
|
|
150
155
|
docs: `/wevu/api/store#${api.replace(/^\$/, "store-").toLowerCase()}`,
|
|
151
156
|
surfaces: ["runtime"]
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/eslint",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.7",
|
|
5
5
|
"description": "Wevu compatibility ESLint plugin and recommended configuration",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@typescript-eslint/parser": "^8.70.
|
|
60
|
+
"@typescript-eslint/parser": "^8.70.1",
|
|
61
61
|
"eslint": "^10.11.0",
|
|
62
62
|
"typescript": "^6.0.3",
|
|
63
63
|
"vitest": "^5.0.1",
|