Skip to content

fix(react-ranger): allow React 19 peer dependency#104

Open
dergachoff wants to merge 1 commit into
TanStack:mainfrom
dergachoff:fix/react-19-peer-range
Open

fix(react-ranger): allow React 19 peer dependency#104
dergachoff wants to merge 1 commit into
TanStack:mainfrom
dergachoff:fix/react-19-peer-range

Conversation

@dergachoff
Copy link
Copy Markdown

@dergachoff dergachoff commented May 10, 2026

Closes #93.

Summary

This updates @tanstack/react-ranger to allow React 19 in its peer dependency range.

The runtime hook already uses stable React APIs, and this fixes npm’s resolver failure for React 19 apps without changing runtime code.

Also normalizes the package repository URL to the full .git URL, which removes the package build/publish metadata warning for @tanstack/react-ranger.

Verification

  • pnpm install --frozen-lockfile
  • pnpm --filter @tanstack/react-ranger test:types
  • pnpm --filter @tanstack/react-ranger test:lib
  • pnpm --filter @tanstack/react-ranger build
  • env -u NO_COLOR pnpm nx run-many --targets=test:lib,test:types,build --skip-nx-cache
  • pnpm run test:sherif
  • pnpm run test:knip
  • pnpm run test:docs
  • pnpm exec prettier --check packages/react-ranger/package.json .changeset/bright-plums-smoke.md
  • git diff --check

I also verified the current published package fails npm resolution with react@19.0.0, while a packed tarball from this branch installs cleanly with react@19.0.0.

Summary by CodeRabbit

  • Chores
    • Added support for React 19 in peer dependencies.
    • Updated repository URL format.

Review Change Stack

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 10, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: a1154831-a396-4b06-b4b1-f117c604d4bf

📥 Commits

Reviewing files that changed from the base of the PR and between fef4517 and b0b7ed2.

📒 Files selected for processing (2)
  • .changeset/bright-plums-smoke.md
  • packages/react-ranger/package.json

📝 Walkthrough

Walkthrough

The PR updates @tanstack/react-ranger package metadata to support React 19 by expanding the peer dependency range to include ^19.0.0 and updating the repository URL format. A Changesets entry documents this as a patch release.

Changes

React 19 Peer Dependency Support

Layer / File(s) Summary
Package Metadata and Dependencies
packages/react-ranger/package.json
repository.url updated to git+https://github.com/TanStack/ranger.git format. peerDependencies.react expanded from ^16.8.0 || ^17.0.0 || ^18.0.0 to include ^19.0.0.
Release Documentation
.changeset/bright-plums-smoke.md
Changesets entry documents the patch release with note that React peer dependency now supports React 19.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A ranger hops toward React's shiny new dawn,
With semver expanded, the conflict is gone!
From sixteen to nineteen, all versions now blessed,
The peerDependencies pass their final test. ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately summarizes the main change: updating the React peer dependency to allow React 19.
Linked Issues check ✅ Passed The pull request successfully addresses issue #93 by updating the React peer dependency range to include ^19.0.0, resolving the npm ERESOLVE conflict.
Out of Scope Changes check ✅ Passed The only changes are the peer dependency update and a repository URL normalization, both directly related to the stated objective of supporting React 19.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

Dependency conflict with React v19

1 participant