-
Notifications
You must be signed in to change notification settings - Fork 25
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
Svelte 5 Pre-release Compatibility #235
Comments
|
TL;DR: Use Essentially, semver doesn't consider prereleases of v5 to be There are numerous issues about this (npm/cli#2087 as an example) and an active RFC on how to resolve this npm/rfcs#397. But I don't think there is a clear/easy way to fix this for the prerelease versions. This won't be an issue once Svelte 5 is officially released. |
Excellent! Thanks for the detailed answer! I didn't realize this was a known behavior with npm. Good to know. Adding |
Would it make sense to change esbuild-svelte's package.json to this? "peerDependencies": {
"esbuild": ">=0.9.6",
- "svelte": ">=3.43.0 <6"
+ "svelte": ">=3.43.0 <5 || ^5.0.0-next.0"
}, Then later, when Svelte 5 officially releases, maybe you could do this? "peerDependencies": {
"esbuild": ">=0.9.6",
- "svelte": ">=3.43.0 <5 || ^5.0.0-next.0"
+ "svelte": ">=3.43.0 <5 || ^5.0.0-next.0 || ^5.0.0"
}, I think this could improve the DX by not requiring that users pass |
Interesting! Let me play around with that and see what I can do |
The change to allow Svelte 5 pre-releases as a peer dependency has been released as |
Svelte 5 has officially been released, meaning esbuild-svelte will no longer provide support or compatibility for prereleases. Closing this issue. |
This is different than #234 since npm does some funny things with version locks and the prerelease versions may have subtle changes compared to the actual release.
This is a good time to clarify my commitment to prerelease support:
esbuild-svelte
will have an installable version compatible with Svelte 5 the day it is released. It may not support all the new features, but it will at least let projects compile with Svelte 5. Worth noting that I am intendingv0.8.1
to be that version, but won't hesitate to make changes as required.The text was updated successfully, but these errors were encountered: