-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: Allow non-semver versions in getVersionInWeirdWindowsForm #7174
fix: Allow non-semver versions in getVersionInWeirdWindowsForm #7174
Conversation
🦋 Changeset detectedLatest commit: 073daca The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 packages
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 |
✅ Deploy Preview for car-park-attendant-cleat-11576 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
c5e2260
to
1139016
Compare
Hi there! I'm not sure I understand. Why would something like Side note, this might be a breaking change, right? (not opposed, just would need to coordinate with other "alpha" release submissions) |
Yes, semver already removes this. Or well, of course semver understands it's a beta. But the old code here just used the If you set And this will not affects the version in most parts of the app. Only what's filled into the "weird version field" on Windows, not other parts. |
I don't think so. I can't come up with any version that was previously allowed that is now forbidden, or that translates to something different than before. The version If I managed to implement it as I intended it, this should just allow for more versions to be valid, not change behavior any currently allowed version. Sidenote: We might want to still require the |
I'm in favor of being stricter. That was how SemVer was being used, so I think it's worth enforcing a major version being present/provided |
Please also create a changeset file for this change ( |
a8f44ae
to
83c9d8b
Compare
I managed to generate a changeset, and I added it to the same commit and force-pushed. I hope this is OK now 👍 |
Can you please rebase/merge latest Unrelated to your PR, unit tests broke on master due to an npm package changing file contents (we snapshot the unpacked node_modules dir in some tests). I just pushed the changes to fix it |
83c9d8b
to
073daca
Compare
Speaking of tests. I could add tests to |
Oooo I like your idea. My best route would be to extract it to a function outside of the AppInfo class (just an exported function), we'd then have a electron-builder/packages/app-builder-lib/src/appInfo.ts Lines 10 to 20 in 8166267
We can rename Thoughts? I'd love to get this into the upcoming |
To not miss the release, maybe we should merge as is and consider tests later? Because I will probably not have the time to do that right now 🙈 |
Fixes #7173
This new code allows the user to not the lower version parts, and have them default to zero instead. With this change the resulting weird-windows-version will be: