chore(deps): update dependency shfmt to v3.12.0 #22
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
latest->3.12.0Release Notes
mvdan/sh (shfmt)
v3.12.0mvdan-shJS package is discontinued in favor ofsh-syntax- #1145--writeto replace non-regular files - #843IsBuiltinto check if a command name is a shell built-in - #1164HandlerContext.Builtinto allowExecHandlerFuncto call built-ins$!andwait PID- #221ExecHandlerFuncerrors via theRunner.RunAPIHandlerContext.Posto provide handlers with source positionsNewExitStatusandIsExitStatusin favor ofExitStatuswaitto always return the status of the last given job$RANDOMand$SRANDOM$BASH_REMATCHwhen matching regular expressions via=~Bracesmode; usesyntax.SplitBracesinstead**to only act as "globstar" when alone as a path element - #1149*and**to not match leading dots in basenamesNoGlobStarmode to match the POSIX semanticsv3.11.0This release drops support for Go 1.22 and includes many enhancements.
-l=0and-f=0to split filenames with null bytes - #1096Parser.WordsSeqParser.IncompleteandIsIncompleteto work well withParser.Words- #937RecoverErrorsLangErrorto include which language was used when parsingtestread/write/exec operators to work correctly on directories - #1116cancelreaderdependency withos.File.SetReadDeadlineOpenHandlerwhen opening named pipes for process substitutions - #1120TMPDIRif set viaEnvto create temporary files such as named pipesFieldsSeqUnsetkind with a newVariable.Setboolean fieldConsider becoming a sponsor if you benefit from the work that went into this release!
v3.10.0--filenameout of the parser options category - #1079v3.9.0which broke redirecting files to stdin - #1099v3.9.0whereHandlerContext.Stdinwas never nilInteractiveoption to be used by interactive shells - #1100<&-Consider becoming a sponsor if you benefit from the work that went into this release!
v3.9.0This release drops support for Go 1.21 and includes many fixes.
os.Pipefor stdin to prevent draining by subprocesses - #1085nocaseglobbash option - #1073@kparameter expansion operatortest -Oandtest -Goperators on non-Windows - #1080read -sbuiltin flag - #1063A special thanks to @theclapp for their contributors to this release!
Consider becoming a sponsor if you benefit from the work that went into this release!
v3.8.0This release drops support for Go 1.19 and 1.20 and includes many
features and bugfixes, such as improving EditorConfig support in
shfmt.[[shell]]- #664--apply-ignorefor tools and editors - #1037functionin POSIX mode - #993unix.Access- #1033FuncEnvironasEnv- #1043fs.DirEntryviaReadDirHandler2fs.DirEntryviaReadDir2v3.7.0$foo#baras a single word - #1003&>redirect operators an error in POSIX mode - #991${foo:-}into${foo-}- #970ExecHandlersto support layering multiple middlewares - #964selectclause - #969errexitandpipefailoptions - #870EUIDjust likeUID- #958js/wasm- #983reflect.Value.MethodByNameto reduce binary sizes - #961v3.6.0This release drops support for Go 1.17 and includes many features and fixes.
--from-jsonas the reverse of--to-json- [#900]--to-jsonoutput - [#900]-ln=auto- [#803]echo *- [#835]${name:-}to the equivalent${name-}- [#849]<<<is used in POSIX mode - [#881]${!foo*}and${!foo@}in mksh mode - [#929]--from-jsonand--to-jsonas Go APIs - [#885]mapfileandreadarray- [#863]%bin theprintfbuiltin - [#955]shopt- [#877]EntireStringto match the entire string using^$- [#866]v3.5.1[[- [#861]nullglob- [#862]Regexpnow returns the typed errorSyntaxError- [#862]v3.5.0This release drops support for Go 1.16 and includes many new features.
-ln=autoby default to detect the shell language--indentfor-i@() { ... }NewPosto createPosvalues externallyMinifyno longer omits a leading shebang commentShebangto extract the shell language from a#!line**globbing for correctnessos.Statas the last direct use of the filesystemCallHandlerto intercept all interpretedCallExprnodesReadDirHandlerto intercept glob expansion filesystem readsStatHandlerto interceptos.Statandos.Lstatcallsset -xcd -ascd "$OLDPWD"set - argsv3.4.3v3tag to track the latest stable versiontestbuiltin%wto wrap errors inDirv3.4.2PATHlist separators OS-specific to fix a recent regressiontimebuiltinv3.4.1QuoteListEnvironto avoid common prefix issuesexportused in functions now affects the global scope$PATHinsourcev3.4.0This release drops support for Go 1.15,
which allows the code to start benefitting from
io/fs.filepath.WalkDirQuoteto mirrorstrconv.Quotefor shell syntaxCouldBeScript2usingio/fs.DirEntryGIDjust likeUIDread -ppwdflags$(<file)v3.3.1&in a separate line into;BinaryNextLineedge case idempotency bugRunner.ResetbeforeRunner.Runset -efor failed redirectionsv3.3.0FORCE_COLORenv var to always use colors in diffsSingleLineoption to avoid printing newlines&&and||no longer escape newlinesset -o nounsetsupport to fix many edge casesLookPathin favor ofLookPathDirtrapwith error and exit signalsshopt -s nullglobtype -pv3.2.4v3.2.2v3.2.1~in Bash test expressionsv3.2.0-filenameto give a name to standard inputfunction f {...}declarations for ksh supportKeepPaddingnow obeys extra indentation when using space indentation((within test expressions<<-heredocsLangVariantnow implements flag.Value$@​and$*always exist, so"$@​"can expand to zero wordsv3.1.2FunctionNextLineConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.