fix(react-ranger): allow React 19 peer dependency
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-lockfilepnpm --filter @tanstack/react-ranger test:typespnpm --filter @tanstack/react-ranger test:libpnpm --filter @tanstack/react-ranger buildenv -u NO_COLOR pnpm nx run-many --targets=test:lib,test:types,build --skip-nx-cachepnpm run test:sherifpnpm run test:knippnpm run test:docspnpm exec prettier --check packages/react-ranger/package.json .changeset/bright-plums-smoke.mdgit diff --check
I also verified the current published package fails npm resolution with [email protected], while a packed tarball from this branch installs cleanly with [email protected].
Summary by CodeRabbit
- Chores
- Added support for React 19 in peer dependencies.
- Updated repository URL format.
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 fef45175e2f30c1d0e2749649f73f2a460acdf6d and b0b7ed254ca67030e1214dd0cf89fcff92e49d3c.
📒 Files selected for processing (2)
.changeset/bright-plums-smoke.mdpackages/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.
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.
Comment @coderabbitai help to get the list of available commands and usage tips.