Skip to content

fix(deps): clear both image-size highs with Metro 0.84.5 (#923) - #3389

Merged
pdcarlson merged 4 commits into
mainfrom
claude/project-thread-ealjkh
Nov 4, 2026
Merged

pdcarlson merged 4 commits into
mainfrom
claude/project-thread-ealjkh

Conversation

@pdcarlson

Copy link
Copy Markdown
Collaborator

Requested by Paul · project thread

Summary

Fixes #923

Changes

  • package-lock.json: the Metro family moves 0.84.4 → 0.84.5 and @expo/metro moves 56.0.0 → 56.0.2, as one hoisted copy. That one copy also serves @react-native/community-cli-plugin (^0.84.3) and Sentry's optional metro peer. The only other drift is Metro's own dependencies: its nested negotiator goes 1.0.0 → 1.1.0, a nested content-type 2.1.0 is added, and image-size 1.2.1 and its queue dependency are gone. Nothing outside Metro moved (20 lockfile entries in all).
  • scripts/npm-audit-allowlist.json: the two image-size entries are deleted. The two SDK 58 entries ([suggestion] No open tracker for the Expo SDK 58 upgrade — 21 client packages are frozen with no owner #2329) stay.
  • docs/security/security-fixes.md: a dated 2026-11-04 note under the gate's Prevention notes, with the re-resolve recipe. The SDK 57 section's "no upstream fix at any version" line now has a dated correction.

How the lockfile was re-resolved. npm update @expo/metro --package-lock-only alone isn't enough. The Metro packages pin one another exactly, so it nests a second Metro 0.84.5 under @expo/metro beside the hoisted 0.84.4, and npm dedupe stops on the TypeScript 6/7 peer split. With the pinned npm 11.19.0, what worked was to delete the hoisted metro*, ob1 and image-size lockfile entries (keeping @expo/metro), then run npm update @expo/metro --package-lock-only. The recipe is recorded in the doc note.

Docs / Spec impact

  • Docs impact: Updated. docs/security/security-fixes.md owns the audit posture and the allowlist history.
  • Spec impact: None.
  • Links:
    • Doc path(s): docs/security/security-fixes.md (§ npm audit sweep + CI gate, § Expo SDK 57 upgrade)
    • Spec section(s): none

Test plan

  • npm run check:npm-audit passes with the entries deleted: 64 → 63 findings, high 6 → 5, and the only allowlisted highs left are the two [suggestion] No open tracker for the Expo SDK 58 upgrade — 21 client packages are frozen with no owner #2329 ones.
  • npm ls metro metro-config image-size @expo/metro: one Metro 0.84.5 for every consumer, and no image-size.
  • npm run check:expo-sdk-line passes.
  • expo export for Android and iOS on Metro 0.84.4 (main) and 0.84.5 (this branch), with --dump-assetmap. Both give the same module count (3,748 Android, 3,667 iOS) and the same chunk hash, which Expo derives from the serialized JS. The asset maps are identical too, including the width, height and file hash of all 31 Android and 28 iOS assets, so the vendored parsers size the app's images exactly as image-size did. The .hbc bytes differ, but they differ by the same amount between two exports on one Metro version, so that's Hermes run-to-run variation, not this change.
  • node --test scripts/ci/__tests__/check-npm-audit.test.mjs and npm run check:links pass.
  • /diff-review: 3 finders (code, docs and invariants, acceptance and tests). None found anything. The repo's diff-finder agent type isn't available in this session, so they ran as general-purpose agents with that agent file as their instructions.
  • CI checks pass. mobile-validate runs the iOS export and expo prebuild on the new Metro.
  • Next EAS build: the Android build should bundle as before. The export above is the same bundling step, but no device build has run on 0.84.5 yet.

Checklist

Release label

  • release:patch


Generated by Claude Code

Metro 0.84.5 replaced image-size with vendored parsers, and @expo/metro
56.0.1+ ships it inside expo@57.0.13's ~56.0.0 range, so no Expo upgrade
or override is needed. Re-resolve the Metro family 0.84.4 -> 0.84.5 and
@expo/metro 56.0.0 -> 56.0.2 as one hoisted copy, and delete the two
image-size allowlist entries that would have expired on 2026-11-15.

expo export for Android and iOS gives the same module count, chunk hash
and asset map on both Metro versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q51MkSSrCkMQKRZQwA5Mrj
@pdcarlson pdcarlson added release:patch Bump patch version on merge to main (default) area:deps Dependencies labels Nov 4, 2026 — with Claude
@pdcarlson pdcarlson self-assigned this Nov 4, 2026
@pdcarlson
pdcarlson enabled auto-merge (squash) November 4, 2026 19:08
@pdcarlson
pdcarlson merged commit 49e109e into main Nov 4, 2026
27 checks passed
@pdcarlson
pdcarlson deleted the claude/project-thread-ealjkh branch November 4, 2026 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:deps Dependencies release:patch Bump patch version on merge to main (default)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The two image-size HIGH advisories have no upstream fix at any version — decide the policy before the 2026-11-15 allowlist expiry

2 participants