Skip to content

Conversation

@tclxshunquan-wang
Copy link
Contributor

@tclxshunquan-wang tclxshunquan-wang commented Nov 8, 2025

Summary by CodeRabbit

  • Chores
    • Reverted multiple inspector packages to earlier stable versions for consistency across the suite.
    • Updated changelog documentation to reflect current release history.
    • Added development dependency update for enhanced tooling support.

@coderabbitai
Copy link

coderabbitai bot commented Nov 8, 2025

Walkthrough

This PR rolls back version numbers across multiple @hyperse/* inspector packages from 3.0.0/2.0.0 to earlier 1.1.x releases. Historical changelog entries for versions 3.0.0 and 2.0.0 are removed from all affected packages. One package also adds a new dev dependency.

Changes

Cohort / File(s) Summary
Release metadata
.changeset/curvy-dots-pay.md
Changeset entry documenting v2.0.0 release and dependency updates
Changelog cleanup
crates/inspector-swc-plugin/CHANGELOG.md, packages/inspector-babel-plugin/CHANGELOG.md, packages/inspector-common/CHANGELOG.md, packages/inspector-component/CHANGELOG.md, packages/inspector-middleware/CHANGELOG.md, packages/inspector/CHANGELOG.md, packages/next-inspector/CHANGELOG.md
Remove historical version sections (3.0.0 and 2.0.0) from changelog history
Version rollback
crates/inspector-swc-plugin/package.json
Version downgrade from 3.0.0 to 1.1.10
Version rollback
packages/inspector-babel-plugin/package.json, packages/inspector-middleware/package.json
Version downgrade from 3.0.0 to 1.1.8 and 1.1.8 respectively
Version rollback
packages/inspector-common/package.json
Version downgrade from 3.0.0 to 1.1.5
Version rollback with dependency
packages/inspector-component/package.json
Version downgrade from 3.0.0 to 1.1.9; adds devDependency @flatjs/forge-plugin-styling@^2.2.5
Version rollback
packages/inspector/package.json
Version downgrade from 2.0.0 to 1.1.15
Version rollback
packages/next-inspector/package.json
Version downgrade from 3.0.0 to 1.1.10

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Repetitive nature: Version downgrades follow the same pattern across all packages, reducing cognitive load
  • Changelog removals: Straightforward deletions of historical entries with no logic implications
  • Single dependency addition: Focus extra attention on packages/inspector-component/package.json to verify the new dev dependency (@flatjs/forge-plugin-styling@^2.2.5) is necessary and compatible

Possibly related PRs

Poem

🐰 A rollback hop, from three to one,
The versions dance, their cycles spun,
Old changelogs fade to memories past,
While inspector springs to versions vast,
Dependencies dance in fresh array, 🌿
Code Inspector hops a better way!

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Title check ❓ Inconclusive The title describes a general dependency update, but the actual changes show version downgrades and changelog cleanup, not dependency updates for compatibility improvements. Update the title to accurately reflect the main changes: rolling back package versions (3.0.0→1.1.x) and removing changelog entries, or clarify the intended purpose of these version downgrades.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
packages/inspector-common/package.json (1)

8-8: Fix incorrect repository directory path.

The repository.directory should be "packages/inspector-common" but is currently set to "packages/inspector-vite". This appears to be a copy-paste error.

Apply this fix:

  "repository": {
    "type": "git",
    "url": "https://github.com/hyperse-io/code-inspector",
-   "directory": "packages/inspector-vite"
+   "directory": "packages/inspector-common"
  }
packages/inspector-component/package.json (1)

8-8: Fix incorrect repository directory path.

The repository.directory should be "packages/inspector-component" but is currently set to "packages/inspector". This appears to be a copy-paste error.

Apply this fix:

  "repository": {
    "type": "git",
    "url": "https://github.com/hyperse-io/code-inspector",
-   "directory": "packages/inspector"
+   "directory": "packages/inspector-component"
  }
packages/next-inspector/package.json (1)

8-8: Fix incorrect repository directory path.

The repository.directory should be "packages/next-inspector" but is currently set to "packages/inspector-vite". This appears to be a copy-paste error. This is the third occurrence of an incorrect repository path in this PR.

Apply this fix:

  "repository": {
    "type": "git",
    "url": "https://github.com/hyperse-io/code-inspector",
-   "directory": "packages/inspector-vite"
+   "directory": "packages/next-inspector"
  }
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3667bb0 and 77dfa1b.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (15)
  • .changeset/curvy-dots-pay.md (1 hunks)
  • crates/inspector-swc-plugin/CHANGELOG.md (0 hunks)
  • crates/inspector-swc-plugin/package.json (1 hunks)
  • packages/inspector-babel-plugin/CHANGELOG.md (0 hunks)
  • packages/inspector-babel-plugin/package.json (1 hunks)
  • packages/inspector-common/CHANGELOG.md (0 hunks)
  • packages/inspector-common/package.json (1 hunks)
  • packages/inspector-component/CHANGELOG.md (0 hunks)
  • packages/inspector-component/package.json (2 hunks)
  • packages/inspector-middleware/CHANGELOG.md (0 hunks)
  • packages/inspector-middleware/package.json (1 hunks)
  • packages/inspector/CHANGELOG.md (0 hunks)
  • packages/inspector/package.json (1 hunks)
  • packages/next-inspector/CHANGELOG.md (0 hunks)
  • packages/next-inspector/package.json (1 hunks)
💤 Files with no reviewable changes (7)
  • packages/inspector-component/CHANGELOG.md
  • packages/inspector-middleware/CHANGELOG.md
  • crates/inspector-swc-plugin/CHANGELOG.md
  • packages/inspector-babel-plugin/CHANGELOG.md
  • packages/inspector/CHANGELOG.md
  • packages/next-inspector/CHANGELOG.md
  • packages/inspector-common/CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: test (20.x)
🔇 Additional comments (6)
packages/inspector-babel-plugin/package.json (1)

3-3: ****

Same version rollback pattern already flagged across monorepo.

packages/inspector-middleware/package.json (1)

3-3: ****

Same version rollback pattern already flagged across monorepo.

packages/inspector-component/package.json (1)

48-48: Verify the new @flatjs/forge-plugin-styling dependency.

A new devDependency "@flatjs/forge-plugin-styling": "^2.2.5" has been added. While the build script at line 33 references build:forge, confirm:

  • This plugin is actually used in the build process
  • Version ^2.2.5 is compatible with @flatjs/forge ^2.3.10 (line 47)
  • The PR title mentions "improved compatibility," which aligns with adding this plugin, but clarify the functional impact

Verify that this dependency is necessary for the build and confirm it doesn't introduce breaking changes or incompatibilities.

packages/inspector-common/package.json (1)

3-3: Clarify why version rollback is framed as an "update" in the PR description.

The git history confirms versions were intentionally downgraded—packages/inspector-common from 3.0.0 to 1.1.5 and packages/inspector from 2.0.0 to 1.1.15. While this appears deliberate, the PR message "update package versions...for improved compatibility and performance" contradicts a version decrease. Verify the rollback is intentional and explain the versioning rationale: Are you restoring stable versions, aligning monorepo consistency, or reverting broken releases? Ensure the commit message accurately reflects the actual intent.

crates/inspector-swc-plugin/package.json (1)

3-3: Clarify the monorepo-wide version rollback strategy—seven packages are being downgraded from 2.0.0/3.0.0 to 1.1.x.

This PR rolls back versions across the entire monorepo:

  • crates/inspector-swc-plugin: 3.0.0 → 1.1.10
  • packages/inspector-babel-plugin: 3.0.0 → 1.1.8
  • packages/inspector-common: 3.0.0 → 1.1.5
  • packages/inspector-component: 3.0.0 → 1.1.9
  • packages/inspector-middleware: 3.0.0 → 1.1.8
  • packages/inspector: 2.0.0 → 1.1.15
  • packages/next-inspector: 3.0.0 → 1.1.10

Rolling back major versions contradicts standard semantic versioning. Explicitly state whether this is a strategic reset, a hotfix revert, or another intentional change, and document the rationale in the commit message or PR description.

.changeset/curvy-dots-pay.md (1)

1-12: The review comment is factually incorrect and should be dismissed.

The review claims version "rollbacks" (e.g., 2.0.0 → 1.1.15, 3.0.0 → 1.1.x), but verification shows:

  • Current package.json versions: All @hyperse packages are at 1.1.x versions (1.1.15, 1.1.10, 1.1.8, 1.1.9, 1.1.5)
  • No higher versions exist in the repository; there are no 2.0.0 or 3.0.0 versions to roll back from
  • Changeset is correct: "major" bumps on 1.1.x will increment to 2.0.0, which aligns with the changeset message "feat: publish v2.0.0"
  • No conflict: The changeset declarations and package.json versions are consistent, not contradictory

The reviewer appears to have assumed higher versions existed without verifying the actual codebase state. The changeset file is appropriate and will perform a legitimate semantic version bump from 1.1.x → 2.0.0 across all packages.

Likely an incorrect or invalid review comment.

{
"name": "@hyperse/inspector",
"version": "2.0.0",
"version": "1.1.15",
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify the version rollback strategy.

The version is being decreased from 2.0.0 to 1.1.15, which contradicts the PR objective to "update dependencies." This version rollback can cause:

  • Package managers to ignore newer releases of dependent packages
  • Confusion in semantic versioning expectations
  • Potential issues with dependency resolution (npm/yarn may prefer 2.0.0 installations elsewhere)

The changeset file also marks this as a "major" bump, which is inconsistent with the lower version number in the package.json.

Clarify the versioning strategy: Is this intentional (e.g., a version reset for a new release cycle)? If so, document this decision. If not, align the version bumps with the changeset declarations.


🏁 Script executed:

#!/bin/bash
# Find changeset files related to this PR
find . -type f -name "*.md" -path "*changeset*" | head -20

Length of output: 30


🏁 Script executed:

#!/bin/bash
# Check the current and previous state of packages/inspector/package.json
cat packages/inspector/package.json | jq '.version'

Length of output: 8


🏁 Script executed:

#!/bin/bash
# List changeset files to understand the PR's versioning intent
ls -la .changeset/ 2>/dev/null || echo "No .changeset directory found"

Length of output: 238


🏁 Script executed:

#!/bin/bash
# Search for any changeset markdown files
find .changeset -type f -name "*.md" 2>/dev/null | xargs cat 2>/dev/null || echo "No changeset files found"

Length of output: 373


🏁 Script executed:

#!/bin/bash
# Check git history of the version field if available
git log -p --follow -S '"version"' packages/inspector/package.json 2>/dev/null | head -100 || echo "Git history not available"

Length of output: 59


🏁 Script executed:

#!/bin/bash
# Try to show git status and check if package.json has uncommitted changes
git status packages/inspector/package.json 2>/dev/null || echo "Git not available or no changes"

Length of output: 61


🏁 Script executed:

#!/bin/bash
# Show just the version line differences using git diff
git diff HEAD packages/inspector/package.json 2>/dev/null | grep -A2 -B2 version || echo "No git diff available"

Length of output: 21


🏁 Script executed:

#!/bin/bash
# Check if there's a previous version in git
git show HEAD:packages/inspector/package.json 2>/dev/null | jq '.version' || echo "Cannot retrieve previous version from git"

Length of output: 8


Update package.json version to match the changeset declaration.

The changeset file declares a major version bump to v2.0.0 for "@hyperse/inspector", but the package.json version remains at 1.1.15. This mismatch will cause inconsistencies when the changeset release workflow executes:

  • The changeset intends to publish v2.0.0, but package.json will release v1.1.15
  • Dependency resolution may fail or behave unexpectedly
  • Version numbering will not follow the declared major bump

Update packages/inspector/package.json line 3 from "1.1.15" to "2.0.0" to align with the changeset declaration.

🤖 Prompt for AI Agents
In packages/inspector/package.json around line 3, the version field is "1.1.15"
but the changeset declares a major bump to 2.0.0; update the version string on
that line to "2.0.0" so package.json matches the changeset (save the file and
commit the change).

@tianyingchun tianyingchun merged commit e719fe1 into hyperse-io:main Nov 8, 2025
6 of 7 checks passed
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