🚀 New Features
- reset() — New function from useSteps() to return to the first step. Perfect for "Start Over" flows.
beforeNextvalidation guard — Block navigation with sync or async validation. Pass a function to the<Steps>component that returnsfalseto prevent moving forward. next() now returnsPromise<boolean>so you can react to blocked navigation.- onStepChange context — The callback now optionally receives
{ from, to }with the previous and next step numbers.
🐛 Bug Fixes
- Fixed
progressreturningNaNwhen there is only one step - Fixed TypeScript type definitions for StepsProvider and Steps components
⚙️ Internal
- Migrated test runner from Jest to Vitest
- Fixed broken import paths (
./dist→./lib-ts) - Added proper Vite entry point (index.html)
📦 Compatibility
All changes are fully backward-compatible. Existing code works without modification.