Patch downloads
Instead of the whole JavaScript bundle, a device can download a binary patch from the bundle it already runs. For a small fix that's often about 85% smaller.
How it works
expo-updates (SDK 55 and later) asks for a bsdiff patch when it downloads the launch bundle. If Patchbay has a patch from the device's current bundle to the new one, it sends that; otherwise the full file. The device checks the result against the bundle's hash and falls back to the full download if anything doesn't match, so a missing patch costs bandwidth, never a broken launch.
Making patches
patchbay-cli publish makes patches automatically when bsdiff is installed (brew install bsdiff on macOS, apt-get install bsdiff on Ubuntu). It patches from the last few releases on the stream and from store builds you registered.
Register your store builds
Most devices run the bundle inside their store build, not an earlier update. Register each store build once so patches can start from it:
npx patchbay-cli embed --app <app id> --channel production --binary build/MyApp.ipa --label "2.4.0 (120)"
It takes the build you upload to the store (.ipa, .app, .apk or .aab), reads its embedded bundle and makes a patch to the live update.
Patches larger than 30% of the full bundle are skipped; at that size the full download is just as good.