Skip to content

✨ Exclude Prereleases from Exclusive Matching - #108

Merged
JustinGrote merged 5 commits into
mainfrom
feature/majorVersionExclude
Apr 23, 2025
Merged

JustinGrote merged 5 commits into
mainfrom
feature/majorVersionExclude

Conversation

@JustinGrote

@JustinGrote JustinGrote commented Apr 12, 2025 •

Copy link
Copy Markdown
Owner

Modifies behavior so that Module<2.0 does not match 2.0.0-alpha1 unless -StrictSemVer is specified
Fixes #107
image

@JustinGrote JustinGrote self-assigned this Apr 12, 2025
@JustinGrote

Copy link
Copy Markdown
Owner Author

@Jaykul can you please review and comment. Main concerns:

  • Since the -StrictSemVer is command wide, there's no way to specify some things you want strict and some you didn't. Maybe we need to add new spec syntax such as "!!" or something as well. Probably not worth the effort unless someone complains
  • I expanded the definition beyond major versions, so for instance Module<3.2.1 will exclude 3.2.1-alpha1, using the same logic as what we discussed. Let me know if you see any issues with that.
Comment thread ModuleFast.tests.ps1 Resolved
Comment thread ModuleFast.tests.ps1 Resolved
Comment thread ModuleFast.psm1 Resolved
@JustinGrote
JustinGrote merged commit bbaacc8 into main Apr 23, 2025
@JustinGrote
JustinGrote deleted the feature/majorVersionExclude branch April 23, 2025 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants