Skip to content

Add versions to dependencies in readme install instructions#139

Open
gVguy wants to merge 1 commit intomainfrom
readme-versions
Open

Add versions to dependencies in readme install instructions#139
gVguy wants to merge 1 commit intomainfrom
readme-versions

Conversation

@gVguy
Copy link
Copy Markdown
Contributor

@gVguy gVguy commented Apr 14, 2026

This PR adds versions to the dependencies in the install instructions of the README.

Motivation

Because we distribute with degit (copying components’ src to the consuming project), the dependencies are installed as a separate step and aren’t locked to any version. So, when you follow the install instructions, latest versions are installed, and they can have some breaking changes since when the readme was written.

Summary by CodeRabbit

  • Documentation
    • Installation instructions updated with pinned major versions for UI dependencies and utility packages, ensuring consistent and reproducible development environments.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 14, 2026

Warning

Rate limit exceeded

@gVguy has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 11 minutes and 11 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 11 minutes and 11 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7a678462-5c29-40ef-ae6b-c195cb60967f

📥 Commits

Reviewing files that changed from the base of the PR and between 4705328 and 9b7a1e2.

📒 Files selected for processing (1)
  • readme.md
📝 Walkthrough

Walkthrough

Updated installation instructions in the README to pin specific major versions for UI dependencies (@radix-ui/react-collapsible, @radix-ui/react-tabs, classnames, lucide-react, react-json-pretty, and react-resizable-panels) instead of using unpinned package installs.

Changes

Cohort / File(s) Summary
README Dependencies
readme.md
Updated installation instructions to pin major versions for UI dependencies, improving reproducibility and consistency across environments.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A rabbit hops with glee so bright,
Versions pinned, dependencies tight!
No more surprises, builds so sure,
Stability's gift will long endure!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding version constraints to dependencies in the README installation instructions.
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
  • Commit unit tests in branch readme-versions

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.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@readme.md`:
- Line 42: The README install command pins lucide-react@1 which mismatches the
package version; update the npm install line (the command that currently
includes "lucide-react@1") to match packages/ui/package.json by using the
declared version specifier (e.g., "lucide-react@^0.534.0") so consumers
installing via the README get a compatible dependency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3ed3489c-1916-4a22-bd34-9ecb8c618aa3

📥 Commits

Reviewing files that changed from the base of the PR and between dd8b685 and 4705328.

📒 Files selected for processing (1)
  • readme.md

Comment thread readme.md Outdated

```bash
npm install @radix-ui/react-collapsible @radix-ui/react-tabs classnames lucide-react react-json-pretty react-resizable-panels
npm install @radix-ui/react-collapsible@1 @radix-ui/react-tabs@1 classnames@2 lucide-react@1 react-json-pretty@2 react-resizable-panels@3
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify README install versions align with packages/ui/package.json majors (and optionally exact versions).

set -euo pipefail

README_FILE="readme.md"
PKG_FILE="$(fd -a '^package\.json$' packages/ui | head -n1)"

echo "Using package file: ${PKG_FILE}"

echo "---- README install line ----"
rg -n "npm install .*@radix-ui/react-collapsible" "${README_FILE}"

echo "---- UI package dependency versions ----"
jq -r '.dependencies | to_entries[] | "\(.key)=\(.value)"' "${PKG_FILE}" | \
  rg "(`@radix-ui/react-collapsible`|@radix-ui/react-tabs|classnames|lucide-react|react-json-pretty|react-resizable-panels)="

Repository: evilmartians/agent-prism

Length of output: 502


Fix lucide-react version mismatch in install command.

Line 42 pins lucide-react@1, but packages/ui/package.json declares lucide-react@^0.534.0. This incompatibility will break consumers following the README. Update to align with actual dependency versions.

Suggested fix
-npm install `@radix-ui/react-collapsible`@1 `@radix-ui/react-tabs`@1 classnames@2 lucide-react@1 react-json-pretty@2 react-resizable-panels@3
+npm install `@radix-ui/react-collapsible`@1.1.11 `@radix-ui/react-tabs`@1.1.13 classnames@2.5.1 lucide-react@0.534.0 react-json-pretty@2.2.0 react-resizable-panels@3.0.6
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
npm install @radix-ui/react-collapsible@1 @radix-ui/react-tabs@1 classnames@2 lucide-react@1 react-json-pretty@2 react-resizable-panels@3
npm install `@radix-ui/react-collapsible`@1.1.11 `@radix-ui/react-tabs`@1.1.13 classnames@2.5.1 lucide-react@0.534.0 react-json-pretty@2.2.0 react-resizable-panels@3.0.6
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@readme.md` at line 42, The README install command pins lucide-react@1 which
mismatches the package version; update the npm install line (the command that
currently includes "lucide-react@1") to match packages/ui/package.json by using
the declared version specifier (e.g., "lucide-react@^0.534.0") so consumers
installing via the README get a compatible dependency.

@gVguy gVguy force-pushed the readme-versions branch from 4705328 to 9b7a1e2 Compare April 14, 2026 15:24
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