Repository navigation
[Payment due @daledah] Upgrade metro to 0.84.5 and image-size to 2.0.4 to fix Dependabot alerts - #103025
Conversation
|
The failing check is unrelated to this PR, so I didn't push a change. Analysis: Only Evidence: This PR only changes Details
Next step: Re-run the failed job once the shared failure on |
Reviewer Checklist
Screenshots/Videos
|
|
@MelvinBot please merge main |
|
I didn't merge To have me merge |
|
🎯 @daledah, thanks for reviewing and testing this PR! 🎉 A payment issue will be created for your review once this PR is deployed to production. If payment is not needed (e.g., regression PR review fix etc), react with 👎 to this comment to prevent the payment issue from being created. |
…lnerability Co-authored-by: Amy Evans <amyevans@users.noreply.github.com>
|
I merged The failing test was not caused by this PR. The merge applied cleanly. The PR diff is unchanged: the metro 0.84.5 bump, the Local test noteI couldn't confirm the fix with a local test run. In my sandbox, every Jest suite that imports |
|
@Eskalifer1 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Hi! Seems like i'm second C+ here and it's already approved. If so could you please unassign me here, thank you! |
|
Yep, sorry for the noise @Eskalifer1! |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 NikkiWines has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/NikkiWines in version: 9.5.4-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.5.4-3 🚀
Bundle Size Analysis (Sentry): |
|
🤖 Payment issue created: #103376 |


Explanation of Change
Fixes Dependabot alerts for
image-size(GHSA-w3rx-r6r6-pgpr, GHSA-m5qc-5hw7-8vg7). No 1.x release fixes the ICNS bug, so we move off 1.x:metro/metro-transform-plugins0.84.4→0.84.5. Metro 0.84.5 dropsimage-sizefor vendored parsers.@expo/metroresolves to56.0.2(pins metro 0.84.5, within the existing~56.0.0range).image-size→2.0.4for its last user,@callstack/repack. Re.Pack calls the namedimageSize(buffer)export, which v2 keeps.metroandmetro-runtimepatches to 0.84.5. The patched files are byte-identical between 0.84.4 and 0.84.5.AI tests: none run locally.
npm installwas unavailable, so I updated the lockfile by hand from registry metadata (integrity hashes and dependencies). CInpm civalidates it.How it's used: build-time only, never shipped to clients. Metro (opt-in with
BUNDLER=metro) and Re.Pack (the default native bundler) read local image assets to get their width and height forrequire('./img.png').Change Log
image-size 1.1.1 / 1.2.1 → 2.0.4
Uint8Arrayinput, zero dependencies, drops sync file-path APImetro 0.84.4 → 0.84.5 (release)
image-sizedependency with vendored parsers, fix CVE alerts (facebook/metro#1860)@expo/metro 56.0.0 → 56.0.2
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/688707
PROPOSAL:
Tests
npm ci. Verifypatch-packageappliesmetro+0.84.5.patchandmetro-runtime+0.84.5.patchwithout errors.npm ls image-size metro. Verify onlyimage-size@2.0.4andmetro@0.84.5are installed.npm run iosandnpm run android(Re.Pack). Verify local images (logos, illustrations, avatars) render with the correct size.BUNDLER=metro npm run ios. Verify the bundle loads and local images render.npm run android-build) and verify it succeeds.Offline tests
N/A, build tooling only.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari