Packages

svelte-check

4.7.8 · 1 Nov 2026MIT5M / weekRepositoryHomepagenpmAtom feed

Your version

4.0.3

26 Sep 2024Where it was published

4.7.8 is the newest release of 4.x.

In short

2 breaking3 fixed1 internal

  • Breaking

    ...when typing a component instance: Before: let x: Component. After: let x: ReturnType<typeof Component>

  • Breaking

    ...when typing a component constructor/function: Before let x: typeof Component. After let x: typeof Component (no change)

Release note

  • Breaking

    svelte5: Only generate function component shape in runes mode (#2517). This means you can no longer just do Component in type positions. Instead you need to prepend it with typeof. Here's how you do it:

    • ...when typing a component instance: Before: let x: Component. After: let x: ReturnType<typeof Component>

    • ...when typing a component constructor/function: Before let x: typeof Component. After let x: typeof Component (no change)

  • Revert additional two-way-binding checks as they were causing bugs

  • Include files indirectly belonging to a project into correct project

  • Check project files update more aggressively before assigning service

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.