Skip to content

JavaScript: Package Manager to return the same node resolution marker if no changes#7473

Merged
greg-at-moderne merged 1 commit intomainfrom
greg-noop-marker-update
Apr 27, 2026
Merged

JavaScript: Package Manager to return the same node resolution marker if no changes#7473
greg-at-moderne merged 1 commit intomainfrom
greg-noop-marker-update

Conversation

@greg-at-moderne
Copy link
Copy Markdown
Contributor

@greg-at-moderne greg-at-moderne commented Apr 27, 2026

What's changed?

Additional check at the end of the JavaScript's Package Manager logic to return the same input doc, if the node resolution marker is equal to the original one.

What's your motivation?

This way we prevent a no-op change, which I ran into one of the recipes in the derived projects. The test suddenly started failing after #6904 got merged. That PR added more assertions to the tests. That's how it got discovered.

@greg-at-moderne greg-at-moderne self-assigned this Apr 27, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 27, 2026
@greg-at-moderne greg-at-moderne marked this pull request as ready for review April 27, 2026 07:11
@greg-at-moderne greg-at-moderne merged commit e1abb30 into main Apr 27, 2026
1 check passed
@greg-at-moderne greg-at-moderne deleted the greg-noop-marker-update branch April 27, 2026 07:11
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant