New
#1
Thanks @Brink
Getting it...
Note: Known issue about ANSI code being written out in table views when using PowerShell with a legacy host that doesn't support virtual terminal. For details see: #15978
Breaking Changes
- Change the default value of $PSStyle.OutputRendering to OutputRendering.Host and remove OutputRendering.Automatic (#15882)
- Fix CA1052 for public API to make classes static when they only have static methods (#15775) (Thanks @xtqqczze!)
- Update pwsh.exe -File to only accept .ps1 script files on Windows (#15859)
Engine Updates and Fixes
- Update .NET adapter to handle interface static members properly (#15908)
- Catch and handle unauthorized access exception when removing AppLocker test files (#15881)
General Cmdlet Updates and Fixes
- Add -PassThru parameter to Set-Clipboard (#13713) (Thanks @ThomasNieto!)
- Add -Encoding parameter for Tee-Object (#12135) (Thanks @Peter-Schneider!)
- Update ConvertTo-Csv and Export-Csv to handle IDictionary objects (#11029) (Thanks @vexx32!)
- Update the parameters -Exception and -ErrorRecord for Write-Error to be position 0 (#13813) (Thanks @ThomasNieto!)
- Don't use ArgumentList when creating COM object with New-Object as it's not applicable to the COM parameter set (#15915)
- Fix $PSStyle list output to correctly show TableHeader (#15928)
- Remove the PSImplicitRemotingBatching experimental feature (#15863)
- Fix issue with Get-Process -Module failing to stop when it's piped to Select-Object (#15682) (Thanks @ArmaanMcleod!)
- Make the experimental features PSUnixFileStat, PSCultureInvariantReplaceOperator, PSNotApplyErrorActionToStderr, PSAnsiRendering, PSAnsiProgressFeatureName stable (#15864)
- Enhance Remove-Item to work with OneDrive (#15571) (Thanks @iSazonov!)
- Make global tool entrypoint class static (#15880)
- Update ServerRemoteHost version to be same as PSVersion (#15809)
- Make the initialization of HttpKnownHeaderNames thread safe (#15519) (Thanks @iSazonov!)
- ConvertTo-Csv: Quote fields with quotes and newlines when using -UseQuotes AsNeeded (#15765) (Thanks @lselden!)
- Forwarding progress stream changes from Foreach-Object -Parallel runspaces (#14271) (Thanks @powercode!)
- Add validation to $PSStyle to reject printable text when setting a property that only expects ANSI escape sequence (#15825)
Code Cleanup
We thank the following contributors!
@xtqqczze
- Avoid unneeded array allocation in module code (#14329) (Thanks @xtqqczze!)
- Enable and fix analysis rules CA1052, CA1067, and IDE0049 (#15840) (Thanks @xtqqczze!)
- Avoid unnecessary allocation in formatting code (#15832) (Thanks @xtqqczze!)
- Specify the analyzed API surface for all code quality rules (#15778) (Thanks @xtqqczze!)
Tools
- Enable /rebase to automatically rebase a PR (#15808)
- Update .editorconfig to not replace tabs with spaces in .tsv files (#15815) (Thanks @SethFalco!)
- Update PowerShell team members in the change log generation script (#15817)
Tests
- Add more tests to validate the current command error handling behaviors (#15919)
- Make Measure-Object property test independent of the file system (#15879)
- Add more information when a syslog parsing error occurs (#15857)
- Harden logic when looking for syslog entries to be sure that we select based on the process id (#15841)
Build and Packaging Improvements
We thank the following contributors!
@xtqqczze
Documentation and Help Content
Source: https://github.com/PowerShell/PowerS....2.0-preview.9
How to Install PowerShell 7.1 in Windows 7, Windows 8, Windows 10, and Windows 11