Svelte Migration Analysis
Version updated for https://github.com/spences10/svelte-migration-action to version v1.
- This action is used across all versions by ? repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
π Svelte Migration Analysis Action v1.0.0
Initial release of the Svelte Migration Analysis Action for the GitHub Marketplace!
β¨ What’s Included
- π Static Analysis: Detects Svelte 4 patterns that need updating for Svelte 5
- π€ AI-Powered Insights: Optional Claude analysis for detailed migration suggestions
- π¬ PR Comments: Automatic comments on pull requests with findings
- β‘ Fast Analysis: Built with TypeScript and optimized for large codebases
- π Comprehensive Reports: Issues, warnings, and migration guidance
- π― Configurable: Filter files, set failure conditions, and customize behavior
- π§ Zero Config: Works out of the box with sensible defaults
π Quick Start
- name: Analyse Svelte Migration
uses: spences10/svelte-migration-action@v1
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
π What It Detects
π΄ Breaking Changes (Errors)
createEventDispatcher
usage β Use callback propsbeforeUpdate
/afterUpdate
lifecycle hooks β Use$effect.pre()
and$effect()
- Component instantiation with
new
β Usemount()
orhydrate()
$$props
and$$restProps
β Use destructuring with$props()
$$slots
usage β Use snippet parameters
β οΈ Deprecations (Warnings)
- Reactive statements (
$:
) β Replace with$derived
or$effect
export let
declarations β Replace with$props()
on:
event directives β Replace with event properties- Named slots β Replace with snippets
- Store auto-subscriptions β Consider
$state
for reactive variables - Event modifiers β Handle in event handlers directly
See the README for full documentation and configuration options.