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)
createEventDispatcherusage β Use callback propsbeforeUpdate/afterUpdatelifecycle hooks β Use$effect.pre()and$effect()- Component instantiation with
newβ Usemount()orhydrate() $$propsand$$restPropsβ Use destructuring with$props()$$slotsusage β Use snippet parameters
β οΈ Deprecations (Warnings)
- Reactive statements (
$:) β Replace with$derivedor$effect export letdeclarations β Replace with$props()on:event directives β Replace with event properties- Named slots β Replace with snippets
- Store auto-subscriptions β Consider
$statefor reactive variables - Event modifiers β Handle in event handlers directly
See the README for full documentation and configuration options.