Skip to content

Conversation

Kolby11
Copy link

@Kolby11 Kolby11 commented Aug 12, 2025

Added display of unsupported Svelte version message in dev tools.
Also implemented Svelte version detection per browser tab, fixing an unrelated bug where the Svelte logo style would change across different browser windows based on the active tab.

Closes #242

<footer>
<p style:font-size="1rem">Svelte app is using an unsupported major version.</p>
<ul>
<li>Currently using Svelte version ^{app.svelteVersion}.0.0</li>
Copy link

@WilliamOConnell WilliamOConnell Oct 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to show the version with .0.0 appended? That seems like it could be confusing since it might not match the actual patch version in use, and it looks like the supported versions aren't displayed that way.

Copy link
Author

@Kolby11 Kolby11 Oct 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean it has "^" character prepended which is a technically correct term. Since i have not found any way to find the minor and patch version, only the major one, I decided to stick with the convention from this message.
<li>Use Svelte version ^4.0.0?</li>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add error message indicating Svelte version is not supported
2 participants