Skip to content

chore(deps): bump react and @types/react#217

Merged
masch merged 13 commits into
mainfrom
dependabot/bun/multi-b0dfc253ff
Jul 3, 2026
Merged

chore(deps): bump react and @types/react#217
masch merged 13 commits into
mainfrom
dependabot/bun/multi-b0dfc253ff

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 3, 2026

Copy link
Copy Markdown
Contributor

What this PR does

Bumps @types/react from 19.2.15 to 19.2.17.

react 19.2.3 → 19.2.7 was attempted but BLOCKED by react-native-renderer@19.2.3 version mismatch (internal dep of react-native 0.85.3). React requires exact version match between react and react-native-renderer.

Changes included

File Change
apps/mobile/package.json @testing-library/react-native 13.3.3 → 14.0.1, added test-renderer@1.2.0, react-test-renderer 19.2.3 (no override needed), removed override/resolution
bun.lock Updated resolutions for all changed packages
28 test files render()await render() for @testing-library/react-native v14 async API

Why this migration

@testing-library/react-native v14 drops react-test-renderer as peer dep in favor of test-renderer@1.2, which is compatible with React 19. All tests needed await render() since v14 makes render async by default.

What's pending for Expo SDK 57

React 19.2.3 → 19.2.7 is blocked until we migrate to Expo SDK 57 (released June 30, 2026, RN 0.86). RN 0.86 ships react-native-renderer@19.2.7, which will match react@19.2.7. See issue #220 for the migration plan.

At that point:

  • Bump react 19.2.3 → 19.2.7
  • Bump react-dom accordingly
  • Bump react-test-renderer to 19.2.7
  • Remove the overrides.react-test-renderer entry if jest-expo@57 has updated its peer dep
  • The @testing-library/react-native v14 + test-renderer setup stays as-is

Validation

✅ Prettier format check passed
⚠️ Tests cannot run locally (sandbox limitation — bun install times out)
⛔ Previous CI run failed due to react/react-native-renderer version mismatch (documented above)

Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together.

Updates `react` from 19.2.3 to 19.2.7
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.2.7/packages/react)

Updates `@types/react` from 19.2.15 to 19.2.17
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: react
  dependency-version: 19.2.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: "@types/react"
  dependency-version: 19.2.17
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies javascript Pull requests that update javascript code labels Jul 3, 2026
masch added 5 commits July 3, 2026 12:58
…bump

Dependabot bumped react from 19.2.3 to 19.2.7 but react-dom and react-test-renderer stayed at 19.2.3. This caused CI failure on PR #217 because Jest's test renderer version check detected the mismatch.

Changes:
- react-dom: 19.2.3 -> 19.2.7
- react-test-renderer: added ^19.2.7 as devDependency (was pinned at 19.2.3 by jest-expo)
- Added overrides/resolutions for both packages
…/testing-library)

Dependabot bumped react from 19.2.3 to 19.2.7, but react-test-renderer@19.2.7 is incompatible with @testing-library/react-native@13.3.3 causing 'Unable to find node on an unmounted component' failures in 11 test suites.

Reverting all React ecosystem packages to 19.2.3:
- react: 19.2.7 -> 19.2.3
- react-dom: 19.2.7 -> 19.2.3
- react-test-renderer: ^19.2.7 -> 19.2.3 (pinned to match jest-expo@56.0.5)
- @types/react: 19.2.17 -> 19.2.15

Lockfile entries and overrides/resolutions reverted accordingly.
…ive 13→14

Upgrade path for Dependabot PR #217 react bump:

- react: 19.2.3 -> 19.2.7
- react-dom: 19.2.3 -> 19.2.7
- @testing-library/react-native: 13.3.3 -> 14.0.1 (required for
  react-test-renderer 19.2.7 compatibility)
- react-test-renderer: 19.2.3 -> 19.2.7 (with override for jest-expo)
- test-renderer: 1.2.0 (new - replaces react-test-renderer for
  testing-library v14 peer dependency)

Rationale:
@testing-library/react-native v14 replaces react-test-renderer with
test-renderer@1.2 (a separate package), fixing the 'Unable to find node
on an unmounted component' failures caused by react-test-renderer 19.2.7
incompatibility with v13.3.3.
@masch masch added the type:chore Maintenance or tooling changes label Jul 3, 2026
@masch
masch force-pushed the dependabot/bun/multi-b0dfc253ff branch 5 times, most recently from da13ccc to d16ae73 Compare July 3, 2026 19:20
masch added 6 commits July 3, 2026 16:42
@testing-library/react-native v14 makes render() async by default.
Every render() call now requires await, and all enclosing it()
callbacks must be async.

Generated via automated replacement across 30 test files.
No logic changes — only syntax migration for v14 async API.
React 19.2.7 is incompatible with react-native 0.85.3 — the internal
react-native-renderer@19.2.3 requires exact version match with react.

This reverts:
- react: 19.2.7 -> 19.2.3
- react-dom: 19.2.7 -> 19.2.3
- react-test-renderer: 19.2.7 -> 19.2.3 (no longer needs override)
- Removed overrides/react-test-renderer and resolutions entry

Keeps:
- @testing-library/react-native 14.0.1 (v14 migration)
- test-renderer 1.2.0 (new peer dep for testing-library v14)
- All test file migrations (await render() for v14 async API)

See issue #220 for Expo SDK 57 migration plan to unblock react bump.
In v14, fireEvent.press, fireEvent.changeText, etc. are all async
and must be awaited. Without await, the event never fires and state
updates never trigger.
- Remove deprecated @testing-library/react-hooks dependency
- Migrate 12 test files to import renderHook/act from
  @testing-library/react-native with proper async/await
- Fix AudioPlayerBridge: unmount() now awaits (v14 async requirement)
- Fix BottomModal: replace removed UNSAFE_getByType with testID
- Fix FeedbackForm: handleDismiss no longer blocks act() with await confirm()
- Fix useConfirm test: handleTrigger uses .then() to avoid act() deadlock

All 14 remaining test failures should be resolved by these changes.
…ve v14 API

rerender() expects 1 argument in v14 (props: Props). Passing undefined
since useOfflineGeofence doesn't take initial props.
@masch
masch force-pushed the dependabot/bun/multi-b0dfc253ff branch from 9fcbaa2 to c8393fc Compare July 3, 2026 19:42

@masch masch left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

🥦

@masch
masch merged commit b1fd7d4 into main Jul 3, 2026
6 checks passed
@masch
masch deleted the dependabot/bun/multi-b0dfc253ff branch July 3, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies javascript Pull requests that update javascript code type:chore Maintenance or tooling changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant