-
-
Notifications
You must be signed in to change notification settings - Fork 493
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
Plugin compatibility checks mismatch when comparing beta with canary compatibility #2758
Comments
Also just as a note for me the |
Well that's not something I would have expected. I would have thought it would count them as completely different rather than just letters to be listed alphabetically. Good catch there. |
We’ll solve this upstream in core! cc @colinaut
… prereleases too, simplify to fix.
I think moving forward we’ll want to standardize on |
Shipping with 2.0.0-beta.2 |
Aww I liked the playfulness of canary. I mean granted an |
Heads up: I just discovered that this semver issue also effects pnpm. If I have Not sure if your fix in core will fix this too but it would be nice as I like to use pnpm. |
A strong 👍 on adhering to semver for the next pre-releases. As visible in this screenshot from https://semver.npmjs.com/ it also affects every normal npm install. I do have a plugin which dependens on Also interesting While this would not install a 2.0.0-prerelease, So basically my plugin would use something like this (beginning with beta as it's "lower" thant canary):
This still has a caveat, it's not possible to allow prereleases of all above versions. |
Just to minimize the impact of this issue I will release a new |
Found out via 11ty/eleventy-plugin-webc#43 from @colinaut
Ended up discovering a new thing about semver, that prerelease tags are… alphabetic
https://semver.org/#spec-item-11
This only presents a problem when you’re trying to use a beta release 👀 on a plugin that has canary compatibility, especially if that plugin requires a specific minimum version of canary:
eleventy-plugin-vite
requires>=2.0.0-canary.4
eleventy-plugin-webc
requires>=2.0.0-canary.19
Practically speaking, if we change these plugins to require
>=2.0.0-beta.1
they will now match all valid canary versions (which is bad).As they currently stand, they do not match the beta release but only issue a
console.warn
and keep processing gracefully.All other official Eleventy plugins do not tie to a specific canary release for compatibility and as such are unaffected.
(source: https://fediverse.zachleat.com/@zachleat/109717715197804907)
The text was updated successfully, but these errors were encountered: