@radhya/mach 2.0.42 → 2.0.43

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/docs/ota.md CHANGED
@@ -22,7 +22,7 @@ mach ota setup
22
22
  mach ota verify
23
23
  ```
24
24
 
25
- Setup reads project ID, framework, channel, runtime policy, and existing URL from `mach.config.json`. Command flags have higher precedence. Interactive setup asks before installing dependencies; use `mach --yes ota setup` in automation. Use `--skip-install` only when dependencies are managed separately.
25
+ Setup reads project ID, framework, channel, runtime policy, and existing URL from `mach.config.json`. Command flags have higher precedence. It also refreshes an older project-local `@radhya/mach` package so Expo prebuild uses a plugin compatible with the running CLI. Interactive setup asks before installing dependencies; use `mach --yes ota setup` in automation. Use `--skip-install` only when dependencies are managed separately.
26
26
 
27
27
  For a bare React Native project, setup may make these intentional changes:
28
28
 
@@ -54,7 +54,9 @@ The default `ON_LOAD` behavior downloads a compatible release on one cold launch
54
54
 
55
55
  ## Runtime compatibility
56
56
 
57
- The native binary and OTA manifest must contain the same runtime version. Mach injects the resolved runtime into Expo config during builds and publishes, and synchronizes it into committed bare native projects before a Mach build.
57
+ The native binary and OTA manifest must contain the same runtime version. Mach injects the resolved runtime into Expo config during builds and publishes, and synchronizes it into committed bare native projects before a Mach build. Runtime precedence is command `--runtime-version`, `ota.runtimeVersion`, `ota.runtimeVersionPolicy`, Expo config, then package version fallback. When Mach has a policy, old hardcoded Expo runtime values do not override it.
58
+
59
+ `mach ota verify`, `mach ota publish`, and OTA-enabled Expo builds validate the final resolved Expo URL, channel, and runtime. They stop with a repair instruction if the project-local plugin would embed different values.
58
60
 
59
61
  The default `appVersion` policy uses the app/package version as the compatibility boundary. Use an explicit `ota.runtimeVersion` or `--runtime-version` only when deliberately managing compatibility yourself.
60
62
 
@@ -123,7 +123,7 @@ module.exports = function withMachDeepLinks(config) {
123
123
  }
124
124
  if (ota.runtimeVersion) {
125
125
  config.runtimeVersion = ota.runtimeVersion
126
- } else if (!config.runtimeVersion && ota.runtimeVersionPolicy) {
126
+ } else if (ota.runtimeVersionPolicy) {
127
127
  config.runtimeVersion = { policy: ota.runtimeVersionPolicy }
128
128
  }
129
129
  config.extra.mach = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radhya/mach",
3
- "version": "2.0.42",
3
+ "version": "2.0.43",
4
4
  "description": "Mach CLI: Cloud Build Orchestrator for React Native & Expo",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -16,6 +16,7 @@
16
16
  ],
17
17
  "scripts": {
18
18
  "build": "tsup src/index.ts src/commands/isolated-upload.ts --format esm --clean --minify --dts",
19
+ "test": "tsx --test src/**/*.test.ts && node --test tests/*.test.cjs",
19
20
  "start": "node dist/index.js",
20
21
  "dev": "tsx src/index.ts",
21
22
  "release": "semantic-release"