Skip to content

Commit 8202166

Browse files
committed
CHANGELOG: add entry for v3.12.0
1 parent 27a4af8 commit 8202166

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,34 @@
11
# Changelog
22

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+
332
## [3.11.0] - 2025-03-05
433

534
This release drops support for Go 1.22 and includes many enhancements.
@@ -763,6 +792,7 @@ module in v3.
763792

764793
Initial release.
765794

795+
[3.12.0]: https://github.com/mvdan/sh/releases/tag/v3.12.0
766796
[3.11.0]: https://github.com/mvdan/sh/releases/tag/v3.11.0
767797
[3.10.0]: https://github.com/mvdan/sh/releases/tag/v3.10.0
768798
[3.9.0]: https://github.com/mvdan/sh/releases/tag/v3.9.0

0 commit comments

Comments
 (0)