svelte-vitals
Version updated for https://github.com/oekazuma/svelte-vitals-action to version v0.6.0.
- This action is used across all versions by ? repositories.
Action Type
This is a Node action using Node version 24.
Go to the GitHub Marketplace to find the latest changes.
Action Summary
The svelte-vitals-action is a GitHub Action that automates static SvelteKit code-health checks such as SEO, performance, correctness, security, and architecture on every pull request. It provides inline annotations in the diff, a job summary, and updates a sticky PR comment with findings. The action uses the svelte-vitals CLI to analyze the project directory and can be easily set up using the generator or by hand.
What’s Changed
Minor Changes
ca45599: Update the bundled analyzer to
svelte-vitals0.37.0 /@svelte-vitals/core0.31.1. The action’s inputs and outputs are unchanged — what changes is what the scan reports and the numbers it prints:- Scores are now floored instead of rounded, so a reported 100 means the deduction was exactly zero. Every category score and Health can move down by one point, and Health is computed from unrounded category scores (the old double rounding could move it two). A workflow gating on the summary’s Health number should expect it a point lower.
- One new rule on by default:
architecture/route-component-importreports a component importing a SvelteKit route entry (+page.svelte,+layout.svelte,+error.svelte, and their@breakout forms). Existing projects may see newinfofindings; stories, tests and specs are exempt. - Three new opt-in Architecture rules, inert until configured:
architecture/unit-entry-file,architecture/directory-naming,architecture/reserved-directory-names. - Import specifiers now resolve through the aliases a project declares in
svelte.config.{js,ts}(kit.alias, andkit.files.libwhen$libhas been moved). Projects importing through their own aliases will see findings that were previously invisible —security/shared-state-importin particular was inert for them. - Fewer false positives:
performance/heavy-importno longer reports type-only imports, which are erased at build.