sveltejs / svelte.dev

The Svelte omnisite
https://svelte.dev
66 stars 25 forks source link

Playground: Add the ability to select different versions of Svelte in the UI #622

Open Ocean-OS opened 4 hours ago

Ocean-OS commented 4 hours ago

As of right now, the only way to change the version of Svelte running in the playground is by changing the URL parameters. This is rather janky, to say the least. It would be better to have a dropdown menu in the playground that lets you select the specific version of Svelte you want to use. This list of versions could acquired dynamically using NPM's registry.

dummdidumm commented 3 hours ago

What's the use case? To my knowledge this hasn't come up previously (and it was always like this), so I'm wondering what changed. The list would be too long I think, so we would probably have to list majors only (or at least only minors).

brunnerh commented 2 hours ago

I am doing this a lot recently to check differences between 4 and 5.