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

fix: stop pinning plugins with prerelease versions #5554

Merged
merged 3 commits into from Mar 21, 2024

Conversation

eduardoboucas
Copy link
Member

Summary

Fixes COM-566.

@eduardoboucas eduardoboucas requested review from a team as code owners March 20, 2024 23:22
Copy link
Contributor

This pull request adds or modifies JavaScript (.js, .cjs, .mjs) files.
Consider converting them to TypeScript.

export const isPrerelease = function (version) {
// Prerelease versions are excluded from ranges unless `includePrerelease` is
// set to `true`.
return !semver.satisfies(version, '>=0.0.0', { includePrerelease: false })
Copy link
Member

Choose a reason for hiding this comment

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

Could you use semver.prerelease()?

Copy link
Member Author

Choose a reason for hiding this comment

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

You prefer a simpler and more expressive method? FINE, whatever.

(This method is not in the docs, so I had to get creative. Thanks!)

Done in adc65d4.

lukasholzer
lukasholzer previously approved these changes Mar 21, 2024
Copy link
Contributor

@lukasholzer lukasholzer 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 for fixing!

ascorbic
ascorbic previously approved these changes Mar 21, 2024
Copy link
Member

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

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

Thanks so much for sorting this. I'll approve, though I'm not sure if the failing tests are relevant

@lukasholzer lukasholzer enabled auto-merge (squash) March 21, 2024 10:46
@eduardoboucas eduardoboucas dismissed stale reviews from ascorbic and lukasholzer via 2701063 March 21, 2024 10:53
@lukasholzer lukasholzer merged commit 3e0670f into main Mar 21, 2024
36 checks passed
@lukasholzer lukasholzer deleted the fix/plugin-pin-prerelease branch March 21, 2024 11:01
Comment on lines -14 to -15
> 1 | "json"␊
  | ^^^^^^ 👈🏽 type must be object`
Copy link
Member

Choose a reason for hiding this comment

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

Amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants