Update dependencies in pnpm-lock.yaml and refactor context handling in react-grab. Replace 'bippy/source' with 'element-source' for improved source resolution and add new utility functions for better component name checks.#238
Conversation
…n react-grab. Replace 'bippy/source' with 'element-source' for improved source resolution and add new utility functions for better component name checks.
Contributor
|
This run croaked 😵 The workflow encountered an error before any progress could be reported. Please check the link below for details. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
@react-grab/cli
grab
@react-grab/amp
@react-grab/claude-code
@react-grab/codex
@react-grab/copilot
@react-grab/cursor
@react-grab/droid
@react-grab/gemini
@react-grab/opencode
react-grab
@react-grab/relay
@react-grab/utils
commit: |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Note
Medium Risk
Medium risk because this rewires how
react-grabresolves component names and source file/line info (including Next.js handling), which can affect selection metadata, stack context output, and editor-open behavior across frameworks.Overview
react-grabnow delegates React stack/source resolution to the newelement-sourcedependency, removing the in-repo logic for stack parsing, Next.js server-frame symbolication, and source-frame selection.Core selection flows (
element-selectedevent payloads, selection source updates, context menu file info, andReactGrabAPI.getSource) are updated to useresolveSource/resolveStack/formatStack, and component-name filtering is simplified; the oldis-capitalizedhelper is removed. Lockfile changes primarily reflect the new dependency and related dependency graph updates.Written by Cursor Bugbot for commit 39c5465. This will update automatically on new commits. Configure here.
Summary by cubic
Refactor react-grab to use
element-sourcefor stack and source resolution, replacingbippy/source. This improves file/line/component detection (incl. Next.js), reduces code, and simplifies the API.Refactors
element-source(resolveSource,resolveStack,formatStack,getReactStack,resolveComponentName).resolveSourcefor file/line/component andformatStackfor stack context.checkIsNextProject,checkIsSourceComponentName,getStack,getNearestComponentName; removedis-capitalized.Dependencies
element-source@^0.0.3topackages/react-grab; continued usingbippy.pnpm-lock.yaml.Written for commit 39c5465. Summary will update on new commits.