Mago 0.21.0
We are excited to announce the release of 0.21.0
, which includes several new features, bug fixes, and improvements to enhance your development experience.
New Features
- Linting with Auto-Formatting:
- Introduced the
--format
(or--fmt
) option tomago lint --fix
. This feature automatically formats files after linting fixes are applied, streamlining your workflow.
- Introduced the
- Shell-Style Comment Conversion:
- The formatter now converts shell-style comments (
#
) into double-slash (C-style) comments (//
). This improves consistency and compatibility.
- The formatter now converts shell-style comments (
- Improved Argument Expansion:
- Enhanced argument expansion for function calls, specifically improving the formatting of the first and last arguments when they are function calls themselves.
Bug Fixes
- Formatter Regressions:
- Addressed regressions in the formatter affecting the PSL codebase.
- Fixed regressions in member access formatting.
- Ensured the formatter no longer trims whitespace at the end of string parts.
- CLI Improvements:
- Removed the deprecated
fix
command, directing users to uselint --fix
instead.
- Removed the deprecated
Enhancements
- Overall improvements to the formatter's argument expansion logic.
This release addresses issues #156, #162, #163, and #164, and provides a more seamless linting and formatting experience.
Full Changelog: 0.20.4...0.21.0