weapp-vite 7.0.2 → 7.0.3
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/cli.mjs +1 -1
- package/dist/docs/ai-workflows.md +6 -0
- package/dist/docs/wevu-authoring.md +1 -1
- package/dist/eslint.d.mts +2 -2
- package/dist/eslint.mjs +2 -2
- package/package.json +9 -9
package/dist/cli.mjs
CHANGED
|
@@ -5044,7 +5044,7 @@ function resolveRunnableHotkeyDefinition(input) {
|
|
|
5044
5044
|
}
|
|
5045
5045
|
//#endregion
|
|
5046
5046
|
//#region package.json
|
|
5047
|
-
var version = "7.0.
|
|
5047
|
+
var version = "7.0.3";
|
|
5048
5048
|
//#endregion
|
|
5049
5049
|
//#region src/cli/devHotkeys/format.ts
|
|
5050
5050
|
const FULLWIDTH_ASCII_START = 65281;
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
2. `node_modules/weapp-vite/dist/docs/*.md`
|
|
23
23
|
3. 当前仓库实际代码与 `vite.config.ts`
|
|
24
24
|
|
|
25
|
+
## 小程序宿主能力验证
|
|
26
|
+
|
|
27
|
+
不要根据浏览器、Node.js、类型声明或 headless simulator 推断 AppService 能力。新增 `queueMicrotask`、Web API、DOM/Node 全局或现代内建前,先在目标平台真实 IDE、目标基础库和 renderer 中验证存在性及最小调用语义。
|
|
28
|
+
|
|
29
|
+
微信不同运行时版本不能统一假定存在 `queueMicrotask`。业务代码应通过共享 ESLint 配置统一接入 `@weapp-vite/eslint` 的 `miniProgramRuntimeRecommended`,模板不要单独增加 workspace 依赖;框架代码应使用显式兼容层,需要 request globals 时明确配置 `weapp.appPrelude.webRuntime`。
|
|
30
|
+
|
|
25
31
|
## Rust / Native 加速约束
|
|
26
32
|
|
|
27
33
|
当任务涉及 `@weapp-vite/ast-native`、Rust 插件或 native AST 加速时,先把 JS 与 Rust 的通信次数当作主要性能约束之一。
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
## 静态兼容检查
|
|
42
42
|
|
|
43
|
-
Wevu
|
|
43
|
+
Wevu 项目应通过共享 ESLint 配置统一接入 `@weapp-vite/eslint` 的 `wevuCompatibilityRecommended` 与 `miniProgramRuntimeRecommended`,模板不要单独增加 workspace 依赖。前者检查 Vue 生态兼容性,后者禁止不可移植的 DOM/Node 全局和现代内建,并警告必须通过 `weapp.appPrelude.webRuntime` 或显式兼容层提供的 API。不要假定微信运行时存在 `queueMicrotask`;新增宿主 API 前要在目标真实 IDE AppService、基础库和 renderer 中探测。旧项目可继续使用 `weapp-vite/eslint` 兼容入口。
|
|
44
44
|
|
|
45
45
|
## 什么时候看这篇
|
|
46
46
|
|
package/dist/eslint.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { wevuCompatibilityPlugin, wevuCompatibilityRecommended } from "@weapp-vite/eslint";
|
|
2
|
-
export { wevuCompatibilityPlugin, wevuCompatibilityRecommended };
|
|
1
|
+
import { MiniProgramRuntimeApiDiagnostic, MiniProgramRuntimeApiEntry, MiniProgramRuntimeApiKind, MiniProgramRuntimeApiSupport, MiniProgramRuntimeConfigOptions, createMiniProgramRuntimeConfig, miniProgramRuntimeApiCatalog, miniProgramRuntimePlugin, miniProgramRuntimeRecommended, wevuCompatibilityPlugin, wevuCompatibilityRecommended } from "@weapp-vite/eslint";
|
|
2
|
+
export { type MiniProgramRuntimeApiDiagnostic, type MiniProgramRuntimeApiEntry, type MiniProgramRuntimeApiKind, type MiniProgramRuntimeApiSupport, type MiniProgramRuntimeConfigOptions, createMiniProgramRuntimeConfig, miniProgramRuntimeApiCatalog, miniProgramRuntimePlugin, miniProgramRuntimeRecommended, wevuCompatibilityPlugin, wevuCompatibilityRecommended };
|
package/dist/eslint.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { wevuCompatibilityPlugin, wevuCompatibilityRecommended } from "@weapp-vite/eslint";
|
|
2
|
-
export { wevuCompatibilityPlugin, wevuCompatibilityRecommended };
|
|
1
|
+
import { createMiniProgramRuntimeConfig, miniProgramRuntimeApiCatalog, miniProgramRuntimePlugin, miniProgramRuntimeRecommended, wevuCompatibilityPlugin, wevuCompatibilityRecommended } from "@weapp-vite/eslint";
|
|
2
|
+
export { createMiniProgramRuntimeConfig, miniProgramRuntimeApiCatalog, miniProgramRuntimePlugin, miniProgramRuntimeRecommended, wevuCompatibilityPlugin, wevuCompatibilityRecommended };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "weapp-vite",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.3",
|
|
5
5
|
"description": "weapp-vite 一个现代化的小程序打包工具",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -121,19 +121,19 @@
|
|
|
121
121
|
"@volar/typescript": "^2.4.28",
|
|
122
122
|
"@vue/language-core": "^3.3.11",
|
|
123
123
|
"@weapp-core/constants": "0.2.1",
|
|
124
|
-
"@weapp-core/init": "6.0.
|
|
124
|
+
"@weapp-core/init": "6.0.17",
|
|
125
125
|
"@weapp-core/logger": "3.1.1",
|
|
126
126
|
"@weapp-core/schematics": "6.2.2",
|
|
127
|
-
"@weapp-core/shared": "3.2.
|
|
128
|
-
"@weapp-vite/ast": "7.0.
|
|
129
|
-
"@weapp-vite/eslint": "0.2.
|
|
127
|
+
"@weapp-core/shared": "3.2.1",
|
|
128
|
+
"@weapp-vite/ast": "7.0.3",
|
|
129
|
+
"@weapp-vite/eslint": "0.2.3",
|
|
130
130
|
"@weapp-vite/i18n": "0.2.1",
|
|
131
131
|
"@weapp-vite/mcp": "1.5.1",
|
|
132
132
|
"@weapp-vite/miniprogram-automator": "1.2.16",
|
|
133
133
|
"@weapp-vite/volar": "2.1.6",
|
|
134
|
-
"@weapp-vite/web": "1.4.
|
|
134
|
+
"@weapp-vite/web": "1.4.20",
|
|
135
135
|
"@wevu/api": "0.3.0",
|
|
136
|
-
"@wevu/web-apis": "1.2.
|
|
136
|
+
"@wevu/web-apis": "1.2.40",
|
|
137
137
|
"cac": "^7.0.0",
|
|
138
138
|
"chokidar": "^5.0.0",
|
|
139
139
|
"comment-json": "^5.0.0",
|
|
@@ -159,9 +159,9 @@
|
|
|
159
159
|
"vite-tsconfig-paths": "^6.1.1",
|
|
160
160
|
"vue": "^3.5.42",
|
|
161
161
|
"vue-tsc": "^3.3.11",
|
|
162
|
-
"weapp-ide-cli": "6.1.
|
|
162
|
+
"weapp-ide-cli": "6.1.2",
|
|
163
163
|
"weapp-tailwindcss": "^5.5.0",
|
|
164
|
-
"wevu": "7.0.
|
|
164
|
+
"wevu": "7.0.3"
|
|
165
165
|
},
|
|
166
166
|
"optionalDependencies": {
|
|
167
167
|
"@swc/core": "^1.16.1"
|