Skip to content

chore(core): Bump react-native and metro devDependencies to 0.86.0#6316

Open
antonis wants to merge 5 commits into
mainfrom
antonis/bump-core-rn-devdep-0.86.0
Open

chore(core): Bump react-native and metro devDependencies to 0.86.0#6316
antonis wants to merge 5 commits into
mainfrom
antonis/bump-core-rn-devdep-0.86.0

Conversation

@antonis

@antonis antonis commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Bumps devDependencies in packages/core:

  • react-native 0.80.1 → 0.86.0
  • metro 0.83.1 → 0.84.4
  • @react-native/babel-preset 0.80.0 → 0.86.0
  • Adds @react-native/jest-preset 0.86.0 (jest preset moved out of react-native in RN 0.86)

Type fixes required by Metro 0.84:

  • metroconfig.ts: Accept null in MetroCustomizeFrame callback (metro 0.84 widened the return type)
  • metroMiddleware.ts: enhanceMiddleware is now readonly — use @ts-expect-error; add explicit parameter types
  • sentryMetroSerializer.ts / vendor/metro/utils.ts: transformOptions.hot removed in metro 0.84 — replaced with a runtime feature check ('hot' in graph.transformOptions) that preserves original behavior on older Metro and falls back to dev on 0.84+
  • sentryOptionsSerializer.ts: customSerializer is now readonly — use @ts-expect-error
  • jest.config.js: Preset changed from react-native to @react-native/jest-preset
  • RNTestEnvironment.js: Test environment path updated accordingly
  • Test files: countLines and CountingSet imports changed from namespace to default imports (metro 0.84 ships .d.ts with export default)

These are all devDependency changes — nothing user-facing is affected. The SDK's peerDependency on react-native (>=0.65.0) remains unchanged.

💡 Motivation and Context

Related: #6267

💚 How did you test it?

CI, Locally

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(core): Bump react-native and metro devDependencies to 0.86.0 by antonis in #6316

🤖 This preview updates automatically when you update the PR.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit a24aee3. Configure here.

Comment thread packages/core/src/js/tools/sentryMetroSerializer.ts

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit fafbd4e. Configure here.

@antonis antonis force-pushed the antonis/bump-core-rn-devdep-0.86.0 branch from fafbd4e to 58ad66b Compare June 18, 2026 11:40
@antonis antonis force-pushed the antonis/bump-core-rn-devdep-0.86.0 branch from 58ad66b to 31d3e33 Compare June 18, 2026 12:53
@antonis antonis added the ready-to-merge Triggers the full CI test suite label Jun 18, 2026
@sentry

sentry Bot commented Jun 18, 2026

Copy link
Copy Markdown

📲 Install Builds

Android

🔗 App Name App ID Version Configuration
Sentry RN io.sentry.reactnative.sample 8.15.1 (93) Release

⚙️ sentry-react-native Build Distribution Settings

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 522.49 ms 535.98 ms 13.49 ms
Size 49.74 MiB 54.81 MiB 5.07 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
a50b33d+dirty 500.81 ms 532.11 ms 31.30 ms
09a902f+dirty 427.38 ms 473.80 ms 46.42 ms
ef27341+dirty 412.94 ms 443.98 ms 31.04 ms
7d6fd3a+dirty 403.02 ms 422.56 ms 19.54 ms
c004dae+dirty 412.86 ms 481.50 ms 68.64 ms
a3265b6+dirty 406.86 ms 449.84 ms 42.98 ms
4e0ba9c+dirty 452.84 ms 473.36 ms 20.52 ms
a5d243c+dirty 424.52 ms 485.18 ms 60.66 ms
b0d3373+dirty 557.66 ms 579.42 ms 21.76 ms
f3215d3+dirty 411.11 ms 454.38 ms 43.27 ms

App size

Revision Plain With Sentry Diff
a50b33d+dirty 43.75 MiB 48.08 MiB 4.33 MiB
09a902f+dirty 49.74 MiB 54.81 MiB 5.07 MiB
ef27341+dirty 48.30 MiB 53.54 MiB 5.24 MiB
7d6fd3a+dirty 43.75 MiB 48.14 MiB 4.39 MiB
c004dae+dirty 48.30 MiB 53.49 MiB 5.19 MiB
a3265b6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
4e0ba9c+dirty 48.30 MiB 53.49 MiB 5.19 MiB
a5d243c+dirty 48.30 MiB 53.54 MiB 5.23 MiB
b0d3373+dirty 48.30 MiB 53.58 MiB 5.28 MiB
f3215d3+dirty 48.30 MiB 53.49 MiB 5.19 MiB

Previous results on branch: antonis/bump-core-rn-devdep-0.86.0

Startup times

Revision Plain With Sentry Diff
d85681f+dirty 423.14 ms 483.68 ms 60.54 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 49.74 MiB 54.81 MiB 5.07 MiB

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3830.88 ms 1222.02 ms -2608.86 ms
Size 4.98 MiB 6.46 MiB 1.49 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5ee78d6+dirty 3847.52 ms 1224.27 ms -2623.25 ms
a0d8cf8+dirty 3842.33 ms 1212.40 ms -2629.93 ms
8929511+dirty 1216.42 ms 1219.02 ms 2.60 ms
5748023+dirty 3840.49 ms 1227.43 ms -2613.05 ms
7a89652+dirty 3861.46 ms 1229.61 ms -2631.85 ms
3a829f0+dirty 3839.76 ms 1214.69 ms -2625.06 ms
3b6e9f9+dirty 3851.90 ms 1233.33 ms -2618.57 ms
44c8b3f+dirty 3823.85 ms 1207.66 ms -2616.19 ms
eb93136+dirty 3843.09 ms 1220.11 ms -2622.98 ms
2c735cc+dirty 1229.67 ms 1221.50 ms -8.17 ms

App size

Revision Plain With Sentry Diff
5ee78d6+dirty 5.15 MiB 6.69 MiB 1.53 MiB
a0d8cf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
8929511+dirty 3.38 MiB 4.80 MiB 1.42 MiB
5748023+dirty 5.15 MiB 6.68 MiB 1.53 MiB
7a89652+dirty 5.15 MiB 6.70 MiB 1.55 MiB
3a829f0+dirty 5.15 MiB 6.70 MiB 1.54 MiB
3b6e9f9+dirty 5.15 MiB 6.68 MiB 1.53 MiB
44c8b3f+dirty 5.15 MiB 6.66 MiB 1.51 MiB
eb93136+dirty 5.15 MiB 6.69 MiB 1.53 MiB
2c735cc+dirty 3.38 MiB 4.74 MiB 1.35 MiB

Previous results on branch: antonis/bump-core-rn-devdep-0.86.0

Startup times

Revision Plain With Sentry Diff
d85681f+dirty 3852.74 ms 1238.25 ms -2614.49 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 4.98 MiB 6.46 MiB 1.49 MiB

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 433.85 ms 464.68 ms 30.83 ms
Size 49.74 MiB 54.81 MiB 5.07 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
09a902f+dirty 423.02 ms 472.18 ms 49.16 ms
ef27341+dirty 519.02 ms 553.42 ms 34.40 ms
a50b33d+dirty 353.21 ms 398.48 ms 45.27 ms
c004dae+dirty 404.60 ms 430.67 ms 26.07 ms
100ce80+dirty 463.28 ms 532.10 ms 68.82 ms
44c8b3f+dirty 492.13 ms 563.47 ms 71.34 ms
04207c4+dirty 395.40 ms 456.55 ms 61.15 ms
a3265b6+dirty 410.96 ms 444.76 ms 33.80 ms
7ac3378+dirty 410.67 ms 442.60 ms 31.92 ms
4e0ba9c+dirty 421.39 ms 455.80 ms 34.41 ms

App size

Revision Plain With Sentry Diff
09a902f+dirty 49.74 MiB 54.81 MiB 5.07 MiB
ef27341+dirty 48.30 MiB 53.54 MiB 5.24 MiB
a50b33d+dirty 43.94 MiB 48.94 MiB 5.00 MiB
c004dae+dirty 48.30 MiB 53.49 MiB 5.19 MiB
100ce80+dirty 48.30 MiB 53.46 MiB 5.15 MiB
44c8b3f+dirty 48.30 MiB 53.46 MiB 5.15 MiB
04207c4+dirty 43.94 MiB 48.98 MiB 5.04 MiB
a3265b6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
7ac3378+dirty 43.94 MiB 48.99 MiB 5.05 MiB
4e0ba9c+dirty 48.30 MiB 53.49 MiB 5.19 MiB

Previous results on branch: antonis/bump-core-rn-devdep-0.86.0

Startup times

Revision Plain With Sentry Diff
d85681f+dirty 428.88 ms 459.61 ms 30.74 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 49.74 MiB 54.81 MiB 5.07 MiB

@github-actions

github-actions Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 3843.55 ms 1225.98 ms -2617.57 ms
Size 4.98 MiB 6.46 MiB 1.49 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
5ee78d6+dirty 3815.71 ms 1217.04 ms -2598.67 ms
a0d8cf8+dirty 3826.15 ms 1213.12 ms -2613.03 ms
8929511+dirty 1223.41 ms 1222.49 ms -0.92 ms
5748023+dirty 3844.74 ms 1225.49 ms -2619.26 ms
7a89652+dirty 3827.11 ms 1211.49 ms -2615.62 ms
3a829f0+dirty 3822.15 ms 1211.04 ms -2611.10 ms
3b6e9f9+dirty 3822.77 ms 1208.00 ms -2614.77 ms
44c8b3f+dirty 3849.24 ms 1209.94 ms -2639.31 ms
eb93136+dirty 3846.51 ms 1226.13 ms -2620.39 ms
2c735cc+dirty 1223.33 ms 1224.38 ms 1.04 ms

App size

Revision Plain With Sentry Diff
5ee78d6+dirty 5.15 MiB 6.69 MiB 1.53 MiB
a0d8cf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
8929511+dirty 3.38 MiB 4.80 MiB 1.42 MiB
5748023+dirty 5.15 MiB 6.68 MiB 1.53 MiB
7a89652+dirty 5.15 MiB 6.70 MiB 1.55 MiB
3a829f0+dirty 5.15 MiB 6.70 MiB 1.54 MiB
3b6e9f9+dirty 5.15 MiB 6.68 MiB 1.53 MiB
44c8b3f+dirty 5.15 MiB 6.66 MiB 1.51 MiB
eb93136+dirty 5.15 MiB 6.69 MiB 1.53 MiB
2c735cc+dirty 3.38 MiB 4.74 MiB 1.35 MiB

Previous results on branch: antonis/bump-core-rn-devdep-0.86.0

Startup times

Revision Plain With Sentry Diff
d85681f+dirty 3828.19 ms 1212.74 ms -2615.45 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 4.98 MiB 6.46 MiB 1.49 MiB

antonis and others added 5 commits June 19, 2026 11:41
Bumps react-native devDependency from 0.80.1 to 0.86.0 and metro from
0.83.1 to 0.84.4 to align type-checking with the latest RN release.

Type fixes:
- Accept null in MetroCustomizeFrame callback parameter
- Add ts-expect-error for readonly enhanceMiddleware and customSerializer
- Add explicit parameter types in enhanceMiddleware callback
- Replace removed `hot` field with `dev` in transform options checks
- Update jest preset from react-native to @react-native/jest-preset
- Update RNTestEnvironment to use new jest-preset path

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Metro 0.84 removed `transformOptions.hot` from JsTransformOptions.
Instead of blindly replacing with `dev` (which would skip debug ID
injection for `--dev` CLI builds), check at runtime whether `hot`
exists and fall back to `dev` only when it doesn't.

Also improve ts-expect-error comments to note metro version context.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace custom `set_react_native_path` with `react_native_post_install`
  to generate React-VFS.yaml needed by RN 0.86's prebuilt frameworks
- Bump IPHONEOS_DEPLOYMENT_TARGET from 15.0 to 15.1 to match RN 0.86 minimum

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Set RCT_USE_PREBUILT_RNCORE=0 to build React Native from source
instead of using prebuilt frameworks, fixing modulemap discovery
failures with Xcode 26's explicit modules.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Work around missing PrivacyInfo.xcprivacy in React-timing pod and
guard against nil NSClassFromString for classes removed by RCT_REMOVE_LEGACY_ARCH.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@antonis antonis force-pushed the antonis/bump-core-rn-devdep-0.86.0 branch from 7072f71 to abd864a Compare June 19, 2026 10:05
@antonis antonis marked this pull request as ready for review June 19, 2026 10:53
@antonis antonis removed the ready-to-merge Triggers the full CI test suite label Jun 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against abd864a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant