π What's New in v1.2.0
β‘ Dynamic Configuration System
- Real-time config updates: Changes to
.commitlintrc.jsonnow take effect immediately without reinstalling hooks - No more manual sync: Eliminated the need to run
php bin/php-commitlint install --forceafter config changes - Smart hook generation: Pre-commit hooks now read configuration at runtime
π§ IDE Support with JSON Schema
- GitHub-hosted schema: Added comprehensive JSON schema at
docs/schema.json - Auto-completion: IDEs now provide intelligent suggestions for
.commitlintrc.jsonfiles - Validation: Real-time validation and error highlighting in configuration files
- Schema URL:
https://raw.githubusercontent.com/dev-kraken/php-commitlint/main/docs/schema.json
π§ Configuration Improvements
- Consistent format: Fixed
pre_commit_commandsto use object format{}consistently - Better defaults: Empty configurations now properly initialize as objects
- Enhanced error handling: Improved graceful handling of missing/invalid config files
π οΈ Developer Experience
- Instant feedback: Configuration changes are immediately active
- IDE integration: Better development experience with schema validation
- Simplified workflow: One less step in the development process
π¦ Installation
composer global require dev-kraken/php-commitlintπ Upgrading from v1.1.x
No breaking changes! Simply update and enjoy the new features:
composer global update dev-kraken/php-commitlintYour existing configurations will continue to work, and you'll immediately benefit from the dynamic configuration system.
π Try it out
- Update your
.commitlintrc.json - Make a commit - changes are instantly active!
- No reinstallation needed β¨
Full Changelog: v1.1.0...v1.2.0