miaoda-expo-devkit 0.1.1-dev.development-build.8 → 0.1.1-dev.development-build.9
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 +6 -4
- package/package.json +19 -19
- package/pnpm-patches/expo@55.0.6.patch +291 -51
- package/pnpm-patches/react-native@0.83.2.patch +291 -205
- package/pnpmfile.cjs +4 -0
package/README.md
CHANGED
|
@@ -180,10 +180,11 @@ Web 注入内容包括:
|
|
|
180
180
|
Bundle,避免使用失效的增量 revision。最终编译失败会返回 `422` 并继续保持暂停。
|
|
181
181
|
|
|
182
182
|
普通恢复执行 Fast Refresh;`/_hmr/reload` 执行完整 Bundle 重载,若当前暂停则延迟到
|
|
183
|
-
恢复时执行。暂停期间 iOS/Android
|
|
183
|
+
恢复时执行。暂停期间 iOS/Android 客户端展示全屏「应用正在修改中」遮罩,阻断用户
|
|
184
184
|
对旧界面的交互,恢复后自动消失(Web 端不展示)。开发服务器停止时已加载的 JS 继续
|
|
185
|
-
运行,`/_hmr/status` 轮询连续 3
|
|
186
|
-
|
|
185
|
+
运行,`/_hmr/status` 轮询连续 3 个周期失败后判定断线:新开发构建由原生渲染全屏
|
|
186
|
+
「已断开开发服务器」阻断页(重新尝试 / 退出,恢复自动返回),旧开发构建回退为
|
|
187
|
+
顶部非阻断横幅(Web 端不展示)。
|
|
187
188
|
过渡期内旧路径
|
|
188
189
|
`/innerapi/v1/sourcecode/__hmr_*` 作为别名同样可用,
|
|
189
190
|
供平台网关 sourcecode 透传通道不改路由接入。协议、返回值、版本要求和加载边界见
|
|
@@ -883,7 +884,8 @@ DevKit 当前管理以下补丁:
|
|
|
883
884
|
|
|
884
885
|
前四个补丁共同实现 [Metro HMR 批量编辑控制](../../docs/metro-hmr-control.md),须整体安装。
|
|
885
886
|
定制 Development Build 的非空增量及 HMR 发起的完整重载会先检查原生能力,兼容时自动应用;
|
|
886
|
-
|
|
887
|
+
不兼容或未知时进入阻断确认(新开发构建为原生吉祥物确认页「仍要使用 / 退出」,
|
|
888
|
+
旧开发构建回退为原生 Alert 三按钮,保留期间底部横幅可重试)。需要 Launcher 0.1.17 起的
|
|
887
889
|
只读检查接口,缺接口时提示升级;Web/Expo Go 保持原行为。原生开发菜单直接 reload
|
|
888
890
|
不属于该 HMR 门控范围,能力结果也尚未与 Metro revision 原子绑定。
|
|
889
891
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "miaoda-expo-devkit",
|
|
3
|
-
"version": "0.1.1-dev.development-build.
|
|
3
|
+
"version": "0.1.1-dev.development-build.9",
|
|
4
4
|
"description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -88,6 +88,18 @@
|
|
|
88
88
|
"tsconfig-base.json",
|
|
89
89
|
"!dist/**/*.map"
|
|
90
90
|
],
|
|
91
|
+
"scripts": {
|
|
92
|
+
"build": "tsup",
|
|
93
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.check.json --noEmit",
|
|
94
|
+
"test": "vitest run",
|
|
95
|
+
"test:patches": "node scripts/test-patches.mjs",
|
|
96
|
+
"patch:workspace": "node scripts/patch-workspace.mjs",
|
|
97
|
+
"release": "pnpm run test && pnpm run build && clean-publish",
|
|
98
|
+
"release:beta": "pnpm run test && pnpm run build && npm version prerelease --preid=beta && clean-publish --tag beta",
|
|
99
|
+
"release:patch": "pnpm run test && pnpm run build && npm version patch && clean-publish",
|
|
100
|
+
"release:minor": "pnpm run test && pnpm run build && npm version minor && clean-publish",
|
|
101
|
+
"release:major": "pnpm run test && pnpm run build && npm version major && clean-publish"
|
|
102
|
+
},
|
|
91
103
|
"nx": {
|
|
92
104
|
"tags": [
|
|
93
105
|
"type:package",
|
|
@@ -181,7 +193,7 @@
|
|
|
181
193
|
"devDependencies": {
|
|
182
194
|
"@babel/core": "^7.26.0",
|
|
183
195
|
"@babel/helper-module-imports": "^7.28.6",
|
|
184
|
-
"@biomejs/biome": "
|
|
196
|
+
"@biomejs/biome": "catalog:",
|
|
185
197
|
"@sentry/core": "10.49.0",
|
|
186
198
|
"@sentry/react-native": "8.9.2",
|
|
187
199
|
"@types/babel__core": "^7.20.5",
|
|
@@ -192,7 +204,7 @@
|
|
|
192
204
|
"@types/semver": "^7.7.1",
|
|
193
205
|
"@expo/schemer": "^2.1.4",
|
|
194
206
|
"clean-publish": "^6.0.5",
|
|
195
|
-
"expo-router": "
|
|
207
|
+
"expo-router": "catalog:",
|
|
196
208
|
"lucide-react-native": "^1.11.0",
|
|
197
209
|
"lucide-react-native-v1-8": "npm:lucide-react-native@~1.8.0",
|
|
198
210
|
"metro": "^0.83.0",
|
|
@@ -200,23 +212,11 @@
|
|
|
200
212
|
"metro-config": "^0.83.0",
|
|
201
213
|
"metro-core": "^0.83.0",
|
|
202
214
|
"metro-resolver": "^0.83.0",
|
|
203
|
-
"oxlint": "
|
|
204
|
-
"react-native": "
|
|
215
|
+
"oxlint": "catalog:",
|
|
216
|
+
"react-native": "catalog:",
|
|
205
217
|
"semver": "^7.7.4",
|
|
206
218
|
"tsup": "^8.5.1",
|
|
207
|
-
"typescript": "
|
|
219
|
+
"typescript": "catalog:",
|
|
208
220
|
"vitest": "^4.1.5"
|
|
209
|
-
},
|
|
210
|
-
"scripts": {
|
|
211
|
-
"build": "tsup",
|
|
212
|
-
"typecheck": "tsc --noEmit && tsc -p tsconfig.check.json --noEmit",
|
|
213
|
-
"test": "vitest run",
|
|
214
|
-
"test:patches": "node scripts/test-patches.mjs",
|
|
215
|
-
"patch:workspace": "node scripts/patch-workspace.mjs",
|
|
216
|
-
"release": "pnpm run test && pnpm run build && clean-publish",
|
|
217
|
-
"release:beta": "pnpm run test && pnpm run build && npm version prerelease --preid=beta && clean-publish --tag beta",
|
|
218
|
-
"release:patch": "pnpm run test && pnpm run build && npm version patch && clean-publish",
|
|
219
|
-
"release:minor": "pnpm run test && pnpm run build && npm version minor && clean-publish",
|
|
220
|
-
"release:major": "pnpm run test && pnpm run build && npm version major && clean-publish"
|
|
221
221
|
}
|
|
222
|
-
}
|
|
222
|
+
}
|