Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improves @astrojs/upgrade dependency handling #9317

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

natemoo-re
Copy link
Member

Changes

  • Previously, @astrojs/upgrade would fail when packages weren't found in the NPM registry.
  • This PR improves dependency handling so that packages without semver versions are ignored.
  • In effect, this change ensures that dependencies using link:, github:, and workspace: protocols are ignored. It's also implemented in a future-proof way by only allowing valid semver identifiers rather than allow-listing known protocols.
  • ✅ Changeset added

Testing

New test suite added for the verify step, unit testing this function's behavior specifically

Docs

N/A, bug fix

Copy link

changeset-bot bot commented Dec 5, 2023

🦋 Changeset detected

Latest commit: babba69

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pr: docs A PR that includes documentation for review label Dec 5, 2023
Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks @natemoo-re — love the tests too 🙌

@natemoo-re natemoo-re merged commit d1c91ad into main Dec 5, 2023
4 checks passed
@natemoo-re natemoo-re deleted the fix/upgrade-non-semver branch December 5, 2023 16:22
@astrobot-houston astrobot-houston mentioned this pull request Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: docs A PR that includes documentation for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants