Skip to content

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

Merged
antonis merged 7 commits into
mainfrom
antonis/bump-core-rn-devdep-0.86.0
Jun 23, 2026
Merged

chore(core): Bump react-native and metro devDependencies to 0.86.0#6316
antonis merged 7 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
  • chore: Bump macOS sample to react-native-macos 0.81.7 by antonis in #6315
  • chore(e2e): Bump react-native devDependency to 0.86.0 by antonis in #6313
  • fix(core): Forward user geo as an object so the native scope keeps it by antonis in #6309
  • fix(ios): Remove manual geo handling, use sentry-cocoa native support by antonis in #6289
  • fix(deps): bump js-yaml from ^4.1.1 to ^4.2.0 by antonis in #6298
  • fix: update React Native repo URL to new GitHub org by antonis in #6290
  • chore(deps): update JavaScript SDK to v10.59.0 by github-actions in #6321
  • chore(deps): bump concurrent-ruby from 1.3.6 to 1.3.7 in /samples/react-native-macos by dependabot in #6327
  • chore(deps): bump undici from 6.24.1 to 6.27.0 by dependabot in #6328
  • chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 by dependabot in #6324
  • fix(ios): [RN 0.87] remove unused React/RCTTextView.h import by cortinico in #6322
  • chore(deps): bump actions/setup-java from 5.2.0 to 5.3.0 by dependabot in #6326
  • chore(deps): bump ruby/setup-ruby from 1.313.0 to 1.314.0 by dependabot in #6325
  • chore(deps): update Android SDK to v8.44.1 by github-actions in #6323

🤖 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 439.76 ms 483.10 ms 43.35 ms
Size 49.74 MiB 54.82 MiB 5.07 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
4966363+dirty 400.04 ms 431.08 ms 31.04 ms
5ee78d6+dirty 551.80 ms 568.27 ms 16.47 ms
7d8c8bd+dirty 417.45 ms 462.10 ms 44.65 ms
ae37560+dirty 470.40 ms 564.12 ms 93.72 ms
68ae91b+dirty 416.44 ms 477.56 ms 61.12 ms
23598c3+dirty 414.12 ms 426.24 ms 12.12 ms
3817909+dirty 406.67 ms 416.58 ms 9.91 ms
038a6d7+dirty 524.82 ms 531.92 ms 7.10 ms
5fe1c6c+dirty 401.62 ms 445.28 ms 43.66 ms
b9bebee+dirty 438.86 ms 452.21 ms 13.35 ms

App size

Revision Plain With Sentry Diff
4966363+dirty 48.30 MiB 53.54 MiB 5.24 MiB
5ee78d6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
7d8c8bd+dirty 48.30 MiB 53.54 MiB 5.23 MiB
ae37560+dirty 48.30 MiB 53.60 MiB 5.29 MiB
68ae91b+dirty 49.74 MiB 54.79 MiB 5.05 MiB
23598c3+dirty 43.75 MiB 48.16 MiB 4.41 MiB
3817909+dirty 43.75 MiB 48.08 MiB 4.33 MiB
038a6d7+dirty 48.30 MiB 53.60 MiB 5.30 MiB
5fe1c6c+dirty 43.75 MiB 48.14 MiB 4.39 MiB
b9bebee+dirty 48.30 MiB 53.58 MiB 5.28 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
5742d6c+dirty 522.49 ms 535.98 ms 13.49 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 49.74 MiB 54.81 MiB 5.07 MiB
5742d6c+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 3829.49 ms 1218.49 ms -2611.00 ms
Size 4.98 MiB 6.46 MiB 1.49 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3817909+dirty 1183.90 ms 1187.50 ms 3.60 ms
5a23c47+dirty 3855.46 ms 1221.95 ms -2633.50 ms
d2eadf8+dirty 3842.42 ms 1228.91 ms -2613.50 ms
a3265b6+dirty 3826.31 ms 1207.87 ms -2618.44 ms
b04af96+dirty 3818.92 ms 1219.76 ms -2599.16 ms
a5d243c+dirty 3842.35 ms 1214.29 ms -2628.06 ms
9210ae6+dirty 3815.93 ms 1214.14 ms -2601.79 ms
a0d8cf8+dirty 3842.33 ms 1212.40 ms -2629.93 ms
5a21b51+dirty 3823.11 ms 1214.46 ms -2608.65 ms
acd838e+dirty 3849.78 ms 1230.00 ms -2619.78 ms

App size

Revision Plain With Sentry Diff
3817909+dirty 3.38 MiB 4.73 MiB 1.35 MiB
5a23c47+dirty 4.98 MiB 6.46 MiB 1.49 MiB
d2eadf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
a3265b6+dirty 5.15 MiB 6.68 MiB 1.53 MiB
b04af96+dirty 4.98 MiB 6.54 MiB 1.56 MiB
a5d243c+dirty 5.15 MiB 6.68 MiB 1.53 MiB
9210ae6+dirty 5.15 MiB 6.68 MiB 1.53 MiB
a0d8cf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
5a21b51+dirty 5.15 MiB 6.67 MiB 1.51 MiB
acd838e+dirty 5.15 MiB 6.70 MiB 1.55 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
5742d6c+dirty 3830.88 ms 1222.02 ms -2608.86 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 4.98 MiB 6.46 MiB 1.49 MiB
5742d6c+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 431.40 ms 511.36 ms 79.96 ms
Size 49.74 MiB 54.82 MiB 5.07 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
100ce80+dirty 463.28 ms 532.10 ms 68.82 ms
4966363+dirty 415.67 ms 448.60 ms 32.93 ms
5ee78d6+dirty 411.18 ms 437.83 ms 26.65 ms
7ac3378+dirty 410.67 ms 442.60 ms 31.92 ms
7d8c8bd+dirty 406.06 ms 460.88 ms 54.81 ms
ae37560+dirty 428.96 ms 456.86 ms 27.90 ms
68ae91b+dirty 515.04 ms 578.08 ms 63.04 ms
038a6d7+dirty 499.02 ms 527.68 ms 28.66 ms
b9bebee+dirty 500.50 ms 536.42 ms 35.92 ms
0b5120f+dirty 413.75 ms 468.86 ms 55.11 ms

App size

Revision Plain With Sentry Diff
100ce80+dirty 48.30 MiB 53.46 MiB 5.15 MiB
4966363+dirty 48.30 MiB 53.54 MiB 5.24 MiB
5ee78d6+dirty 48.30 MiB 53.58 MiB 5.28 MiB
7ac3378+dirty 43.94 MiB 48.99 MiB 5.05 MiB
7d8c8bd+dirty 48.30 MiB 53.54 MiB 5.23 MiB
ae37560+dirty 48.30 MiB 53.60 MiB 5.29 MiB
68ae91b+dirty 49.74 MiB 54.79 MiB 5.05 MiB
038a6d7+dirty 48.30 MiB 53.60 MiB 5.30 MiB
b9bebee+dirty 48.30 MiB 53.58 MiB 5.28 MiB
0b5120f+dirty 48.30 MiB 53.58 MiB 5.28 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
5742d6c+dirty 433.85 ms 464.68 ms 30.83 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 49.74 MiB 54.81 MiB 5.07 MiB
5742d6c+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 3858.14 ms 1225.18 ms -2632.96 ms
Size 4.98 MiB 6.46 MiB 1.49 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
3817909+dirty 1210.76 ms 1215.64 ms 4.89 ms
5a23c47+dirty 3843.54 ms 1226.05 ms -2617.50 ms
d2eadf8+dirty 3841.53 ms 1216.15 ms -2625.39 ms
a3265b6+dirty 3844.26 ms 1235.60 ms -2608.66 ms
b04af96+dirty 3830.54 ms 1206.11 ms -2624.44 ms
a5d243c+dirty 3827.92 ms 1220.10 ms -2607.81 ms
9210ae6+dirty 3834.11 ms 1216.64 ms -2617.47 ms
a0d8cf8+dirty 3826.15 ms 1213.12 ms -2613.03 ms
5a21b51+dirty 3837.87 ms 1223.47 ms -2614.40 ms
acd838e+dirty 3835.94 ms 1215.87 ms -2620.07 ms

App size

Revision Plain With Sentry Diff
3817909+dirty 3.38 MiB 4.73 MiB 1.35 MiB
5a23c47+dirty 4.98 MiB 6.46 MiB 1.49 MiB
d2eadf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
a3265b6+dirty 5.15 MiB 6.68 MiB 1.53 MiB
b04af96+dirty 4.98 MiB 6.54 MiB 1.56 MiB
a5d243c+dirty 5.15 MiB 6.68 MiB 1.53 MiB
9210ae6+dirty 5.15 MiB 6.68 MiB 1.53 MiB
a0d8cf8+dirty 5.15 MiB 6.67 MiB 1.51 MiB
5a21b51+dirty 5.15 MiB 6.67 MiB 1.51 MiB
acd838e+dirty 5.15 MiB 6.70 MiB 1.55 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
5742d6c+dirty 3843.55 ms 1225.98 ms -2617.57 ms

App size

Revision Plain With Sentry Diff
d85681f+dirty 4.98 MiB 6.46 MiB 1.49 MiB
5742d6c+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

@lucas-zimerman lucas-zimerman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@lucas-zimerman lucas-zimerman added the ready-to-merge Triggers the full CI test suite label Jun 22, 2026
@antonis antonis removed the ready-to-merge Triggers the full CI test suite label Jun 23, 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 64bb8c7

@antonis antonis merged commit 88735e9 into main Jun 23, 2026
59 of 65 checks passed
@antonis antonis deleted the antonis/bump-core-rn-devdep-0.86.0 branch June 23, 2026 07:37
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.

2 participants