miaoda-expo-devkit 0.1.1-dev.development-build.3 → 0.1.1-dev.development-build.4

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 CHANGED
@@ -180,7 +180,9 @@ Web 注入内容包括:
180
180
  Bundle,避免使用失效的增量 revision。最终编译失败会返回 `422` 并继续保持暂停。
181
181
 
182
182
  普通恢复执行 Fast Refresh;`/_hmr/reload` 执行完整 Bundle 重载,若当前暂停则延迟到
183
- 恢复时执行。协议、返回值、版本要求和加载边界见 [Metro HMR 批量编辑控制](../../docs/metro-hmr-control.md)。
183
+ 恢复时执行。过渡期内旧路径 `/innerapi/v1/sourcecode/__hmr_*` 作为别名同样可用,
184
+ 供平台网关 sourcecode 透传通道不改路由接入。协议、返回值、版本要求和加载边界见
185
+ [Metro HMR 批量编辑控制](../../docs/metro-hmr-control.md)。
184
186
 
185
187
  ### Metro 编译错误采集
186
188
 
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",
3
+ "version": "0.1.1-dev.development-build.4",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
@@ -354,10 +354,10 @@ index bd1d604..02db474 100644
354
354
  hmrServer,
355
355
  diff --git a/build/src/start/server/metro/miaodaHmrControl.js b/build/src/start/server/metro/miaodaHmrControl.js
356
356
  new file mode 100644
357
- index 0000000..6466921
357
+ index 0000000..5d802e8
358
358
  --- /dev/null
359
359
  +++ b/build/src/start/server/metro/miaodaHmrControl.js
360
- @@ -0,0 +1,328 @@
360
+ @@ -0,0 +1,336 @@
361
361
  +"use strict";
362
362
  +
363
363
  +// Miaoda HMR 批量编辑控制,适配 SDK 55 / Metro 0.83.3。
@@ -393,6 +393,14 @@ index 0000000..6466921
393
393
  + ['/_hmr/on', 'resume'],
394
394
  + ['/_hmr/reload', 'reload'],
395
395
  + ['/_hmr/status', 'status'],
396
+ + // 旧路径 alias:平台网关的 sourcecode 透传通道固定把请求递到
397
+ + // /innerapi/v1/sourcecode/<单段路径>,过渡期让旧通道不改路由即可到达本模块,
398
+ + // 也让换装前编译的旧 Bundle 的 status 轮询不至于 404 停摆。
399
+ + // 所有调用方切到 /_hmr/* 之后删除这 4 条。
400
+ + ['/innerapi/v1/sourcecode/__hmr_off', 'pause'],
401
+ + ['/innerapi/v1/sourcecode/__hmr_on', 'resume'],
402
+ + ['/innerapi/v1/sourcecode/__hmr_reload', 'reload'],
403
+ + ['/innerapi/v1/sourcecode/__hmr_status', 'status'],
396
404
  +]);
397
405
  +
398
406
  +function attachMiaodaHmrControl({hmrServer: hmr, metro, middleware, stateFile, timeout = 5000}) {
package/pnpmfile.cjs CHANGED
@@ -18,6 +18,7 @@ const managedPatches = {
18
18
  [EXPO_CLI_PATCH_SELECTOR]: {
19
19
  filename: '@expo__cli@55.0.16-55.0.22.patch',
20
20
  legacyHashes: new Set([
21
+ '330834a0aa5ac457589a343c45f3c496c27381e03355cb6808864205a978d726',
21
22
  '29f03d7d2633dad8e8ff99815c38a4f4059e46a235a5e66c508125975d920385',
22
23
  '98c96a6bae56f47c0a47efe9a68e7a6751022d812b569b68d03b93753635c32c',
23
24
  '9a0d662675fba8088396c6cdbab7d36d81fbe9acb3727144a50826ff3500b093',