|
1 | 1 | # Changelog
|
2 | 2 |
|
| 3 | +## [3.12.0] - 2025-07-06 |
| 4 | + |
| 5 | +- The `mvdan-sh` JS package is discontinued in favor of `sh-syntax` - #1145 |
| 6 | +**cmd/shfmt** |
| 7 | + - Support the "simplify" and "minify" flags via EditorConfig - #819 |
| 8 | + - Do not allow `--write` to replace non-regular files - #843 |
| 9 | +**interp** |
| 10 | + - Add `IsBuiltin` to check if a command name is a shell built-in - #1164 |
| 11 | + - Add `HandlerContext.Builtin` to allow `ExecHandlerFunc` to call built-ins |
| 12 | + - Initial support for `$!` and `wait PID` - #221 |
| 13 | + - Return non-fatal `ExecHandlerFunc` errors via the `Runner.Run` API |
| 14 | + - Add `HandlerContext.Pos` to provide handlers with source positions |
| 15 | + - Deprecate `NewExitStatus` and `IsExitStatus` in favor of `ExitStatus` |
| 16 | + - Fix `wait` to always return the status of the last given job |
| 17 | + - Copy all env vars for background subshells to avoid data races |
| 18 | + - Support reading random numbers via `$RANDOM` and `$SRANDOM` |
| 19 | + - Set `$BASH_REMATCH` when matching regular expressions via `=~` |
| 20 | + - Support modifying local vars from the parent calling function |
| 21 | +**expand** |
| 22 | + - Adjust which backslash sequences are expanded in here-docs - #1138 |
| 23 | + - Tweak tilde expansions to match Bash semantics |
| 24 | +**pattern** |
| 25 | + - Remove the flawed and broken `Braces` mode; use `syntax.SplitBraces` instead |
| 26 | + - Tweak `**` to only act as "globstar" when alone as a path element - #1149 |
| 27 | + - Tweak `*` and `**` to not match leading dots in basenames |
| 28 | + - Add a `NoGlobStar` mode to match the POSIX semantics |
| 29 | +**fileutil** |
| 30 | + - Treat all non-regular files as definitely not shell scripts - #1089 |
| 31 | + |
3 | 32 | ## [3.11.0] - 2025-03-05
|
4 | 33 |
|
5 | 34 | This release drops support for Go 1.22 and includes many enhancements.
|
@@ -763,6 +792,7 @@ module in v3.
|
763 | 792 |
|
764 | 793 | Initial release.
|
765 | 794 |
|
| 795 | +[3.12.0]: https://github.com/mvdan/sh/releases/tag/v3.12.0 |
766 | 796 | [3.11.0]: https://github.com/mvdan/sh/releases/tag/v3.11.0
|
767 | 797 | [3.10.0]: https://github.com/mvdan/sh/releases/tag/v3.10.0
|
768 | 798 | [3.9.0]: https://github.com/mvdan/sh/releases/tag/v3.9.0
|
|
0 commit comments