github carthage-software/mago 0.21.0
Mago 0.21.0

latest releases: 1.0.0-beta.10, 1.0.0-beta.9, 1.0.0-beta.8...
5 months ago

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 to mago lint --fix. This feature automatically formats files after linting fixes are applied, streamlining your workflow.
  • Shell-Style Comment Conversion:
    • The formatter now converts shell-style comments (#) into double-slash (C-style) comments (//). This improves consistency and compatibility.
  • 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 use lint --fix instead.

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

Don't miss a new mago release

NewReleases is sending notifications on new releases.