v0.4.0
CalVer Overhaul + Interactive Init Wizard
CalVer: Full calver.org Specification
- MICRO token accepted as CalVer-standard alias for PATCH
- Composable token-based formats:
YYYY.M.MICRO,YY.0M.MICRO,YYYY.0M.0D.MICRO, etc. - New tokens:
0Y(zero-padded year),WW/0W(week of year) - Strict regex — value-level validation at parse time (MM: 1-12, DD: 1-31)
- MODIFIER support — pre-release suffixes:
-alpha.1,-rc2,-dev - Scheme rules —
schemeRules.allowedModifierswhitelist,schemeRules.maxNumericSegmentswarning
Interactive Init Wizard
versionguard init— guided setup with @clack/prompts (versioning type, CalVer format, manifest source, hooks, changelog)- Headless mode for LLMs/CI:
versionguard init --type calver --format YYYY.M.MICRO --yes
Audit Fixes (30/30 findings resolved)
- DRY refactor: shared utilities extracted
- Feedback: language-agnostic fix suggestions
- Git-tag: auto-detect prefix, filter version-like tags
- TOML: dotted keys + inline tables in write-back
- JSON: preserve original indentation
- YAML: nested key path support
- VERSION: first-line validation, binary file rejection
- Auto-detect: clear error on miss
194 tests passing | Full Changelog: v0.3.0...v0.4.0