Release v11.5.0 - CLI Version Awareness
CLI Version Awareness
Users can now check for updates and stay current with the latest Spec-Flow features.
✨ Added
- Version checking:
npx spec-flow statusnow shows installed vs latest version- Fetches latest from npm registry (5s timeout, graceful offline handling)
- Clear "update available" indicator when behind
- Shows "up to date" when current
- CI/CD integration: New
--checkflag exits with code 1 if update available- Use in pipelines to enforce version currency
- Example:
npx spec-flow status --check
- Offline support: New
--skip-version-checkflag skips registry lookup - README documentation: Added "Staying Updated" section explaining update workflow
🐛 Fixed
- healthCheck bug: Fixed variable shadowing where
dirwas used twice instead ofdirandkeyDir(bin/validate.js:302-306)
Full Changelog: v11.4.3...v11.5.0