v7.4.0-preview.1 Release of PowerShell #18833
adityapatwardhan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
7.4.0-preview.1 - 2022-12-20
Engine Updates and Fixes
AmsiUtil
and make the init variable readonly (Add Instrumentation to AmsiUtil and make the init variable readonly #18727)OutOfProcTransportManager.cs
(Fix typo in OutOfProcTransportManager.cs #18766) (Thanks @eltociear!)Dim
andDimOff
to$PSStyle
(AddDim
andDimOff
to$PSStyle
#18653)exec
from alias to function to handle arbitrary arguments (Changeexec
from alias to function to handle arbitrary args #18567)NormalView
(ForNormalView
, the command should also be in the error color #18555)UTF8Encoding(false)
withEncoding.Default
(ReplaceUTF8Encoding(false)
withEncoding.Default
part 2 #18356) (Thanks @xtqqczze!)Switch-Process
to settermios
appropriate for child process (FixSwitch-Process
to set termios appropriate for child process #18467)[NullString]::Value
as the string type when resolving methods (Treat[NullString]::Value
as the string type when resolving methods #18080)PSAnsiRenderingFileInfo
stable (Make experimental featurePSAnsiRenderingFileInfo
stable #18042)2.21.0
of Application Insights. (Update to use version 2.21.0 of Application Insights. #17903)Performance
Utils.Separators
(Remove static constants #18154) (Thanks @iSazonov!)ScriptWriter
(Avoid using regex when unnecessary inScriptWriter
#18348)PSVersionInfo
to improve startup time (Use Source Code Generator for PSVersionInfo class #15603) (Thanks @iSazonov!)Regex
when not necessary (Make the static constructor ofPSVersionInfo
run faster for stable PowerShell releases #18210)General Cmdlet Updates and Fixes
ComputeCore.dll
for PowerShell Direct (Update to use ComputeCore.dll for PowerShell Direct #18194)ArgumentNullException(nameof())
withArgumentNullException.ThrowIfNull()
(Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() 2 #18792)(Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() #18784) (Thanks @CarloToso!)TabExpansion
from remote session configuration (Remove TabExpansion from PSv2 remote session configuration #18795) (Internal 23331)SupportsShouldProcess
inStop-Transcript
(Implement SupportsShouldProcess in Stop-Transcript #18731) (Thanks @JohnLBevan!)New-Item -ItemType Hardlink
to resolve target to absolute path and not allow link to itself (FixNew-Item -ItemType Hardlink
to resolve target to absolute path and not allow link to itself #18634)CommandLine
on Linux (Fix Process CommandLine on Linux #18710) (Thanks @jborean93!)SuspiciousContentChecker.Match
to detect a pre-defined string when the text starts with it (FixSuspiciousContentChecker.Match
to detect a pre-defined string when the text starts with it #18693)$PSNativeCommandUseErrorActionPreference
to$true
when feature is enabled (Switch$PSNativeCommandUseErrorActionPreference
to$true
when feature is enabled #18695)Start-Job
to check the existence of working directory using the PowerShell way (FixStart-Job
to check the existence of working directory using the PowerShell way #18675)HelpInfo.Category
is consistently a string (Ensure HelpInfo.Category is consistently a string #18254)gcloud
from the legacy list because it's resolved to a .ps1 script (Removegcloud
because it's resolved to a .ps1 script #18575)gcloud
andsqlcmd
to list to use legacy argument passing (Addgcloud
andsqlcmd
to list to use legacy argument passing #18559)Switch-Process
to copy the current env to the new process (FixSwitch-Process
to copy the current env to the new process #18452)Switch-Process
error to include the command that is not found (FixSwitch-Process
error to include the command that is not found #18443)Out-Printer
to remove all decorating ANSI escape sequences from PowerShell formatting (UpdateOut-Printer
to remove all decorating ANSI escape sequences from PowerShell formatting #18425)UTF8
(Webcmdlets set default charset encoding to UTF8 #18219) (Thanks @CarloToso!)Restart-Computer
(Correct incorrect cmdlet name in script #18374) (Thanks @urizen-source!)cd~
(Add parsing to make cd~ a valid command. #18308) (Thanks @GigaScratch!)ConvertFrom-StringData
(Line ending fix for Exception Message on ConvertFrom-StringData #18336) (Thanks @GigaScratch!)IDisposable
inNamedPipeClient
(ImplementIDisposable
inNamedPipeClient
#18341) (Thanks @xtqqczze!)ProcessorArchitecture
portion from the full name as it's obsolete (Remove theProcessorArchitecture
portion from the full name as it's obsolete #18320)-FuzzyMinimumDistance
parameter toGet-Command
(Add-FuzzyMinimumDistance
parameter toGet-Command
#18261)CustomTableHeaderLabel
formatting to differentiate table header labels that are not property names (AddCustomTableHeaderLabel
formatting to differentiate table header labels that are not property names #17346)FileInfo
table formatting on Unix to make it more concise (Make a minor update to theFileInfo
table formatting on Unix to make it more concise #18183)Runspace
when declaring theNoRunspaceAffinity
attribute (Make PowerShell class not affiliate with Runspace when declaring theNoRunspaceAffinity
attribute #18138)Invoke-WebRequest
when downloading is complete or cancelled (Complete the progress bar rendering inInvoke-WebRequest
when downloading is complete or cancelled #18130)Invoke-WebRequest
(Invoke-WebRequest: Display downloaded bytes in human readable format and display total expected download size #14611) (Thanks @bergmeister!)WriteConsole
to not usestackalloc
for buffer with too large size (UpdateWriteConsole
to not usestackalloc
for buffer with too large size #18084)Add-Type -PassThru
(Filter out compiler generated types forAdd-Type -PassThru
#18095)CA2014
warnings and removing the warning suppression (Fixing CA2014 warnings, and removing suppressions #17982) (Thanks @creative-cloud!)PSNativeCommandArgumentPassing
stable (Make experimental featurePSNativeCommandArgumentPassing
stable #18044)PSAMSIMethodInvocationLogging
stable (Make experimental featurePSAMSIMethodInvocationLogging
stable #18041)PSObject
argument specially in method invocation logging (Handle PSObject argument specially in method invocation logging #18060)EventResource.resx
(Fix typo in EventResource.resx #18063) (Thanks @eltociear!)PSRemotingSSHTransportErrorHandling
stable (Make experimental featurePSRemotingSSHTransportErrorHandling
stable #18046)PSExec
stable (Make experimental featurePSExec
stable #18045)PSCleanBlock
stable (Make experimental featurePSCleanBlock
stable #18043)$PSStyle.Formatting
(Fix error formatting to use color defined in$PSStyle.Formatting
#17987)chmod 777
(Remove unneeded use ofchmod 777
#17974)ConsoleColor
values to VT escape sequences (Support mapping foreground/backgroundConsoleColor
values to VT escape sequences #17938)pwsh
server modes implicitly not show banner (Makepwsh
server modes implicitly not show banner or profile load times #17921)Get-WinEvent
(Add output type attributes for Get-WinEvent #17948) (Thanks @MartinGC94!)Invoke-WebRequest
for small files, and prevent file-download-error suppression. (Remove 1s minimum delay in Invoke-WebRequest for small files, and prevent file-download-error suppression. #17896) (Thanks @AAATechGuy!)charset
attribute inmeta
tag for HTML to first 1024 characters in webcmdlets (Limit searching ofcharset
attribute inmeta
tag for HTML to first 1024 characters in webcmdlets #17813)Update-Help
failing silently with implicit non-US culture. (Fix Update-Help failing silently with implicit non-US culture. #17780) (Thanks @dkaszews!)ValidateNotNullOrWhiteSpace
attribute (Add ValidateNotNullOrWhiteSpace Attribute #17191) (Thanks @wmentha!)Code Cleanup
We thank the following contributors!
@MartinGC94, @CarloToso, @iSazonov, @xtqqczze, @turbedi, @trossr32, @eltociear, @AtariDreams, @jborean93
ast.cs
(Use Pattern matching in ast.cs #18794) (Thanks @MartinGC94!)webrequestpscmdlet.common.cs
(Cleanup webrequestpscmdlet.common.cs #18596) (Thanks @CarloToso!)CreateFile
pinvoke
in SMA (Unify CreateFile pinvoke in SMA #18751) (Thanks @iSazonov!)webresponseobject.common
(Cleanup webresponseobject.common #18785) (Thanks @CarloToso!)InvokeRestMethodCommand.Common
cleanup and merge partials (InvokeRestMethodCommand.Common cleanup and merge partials #18736) (Thanks @CarloToso!)GetDirectories
inCimDscParser
(ReplaceGetDirectories
inCimDscParser
#14319) (Thanks @xtqqczze!)Start-Process
(Enable pending test for Start-Process #18724) (Thanks @iSazonov!)DllImport
withLibraryImport
for WNetAddConnection2 (ReplaceDllImport
withLibraryImport
for WNetAddConnection2 #18721) (Thanks @iSazonov!)DllImport
withLibraryImport
- 1 (Move Windows pinvokes #18603) (Thanks @iSazonov!)DllImport
withLibraryImport
in SMA - 7 (Replace DllImport with LibraryImport in SMA 7 #18594) (Thanks @iSazonov!)DateTime.UnixEpoch
andRandomNumberGenerator.Fill()
(Use static DateTime.UnixEpoch and RandomNumberGenerator.Fill() #18621) (Thanks @turbedi!)ArchitectureSensitiveAttribute
from the code base (Remove ArchitectureSensitiveAttribute #18598) (Thanks @iSazonov!)DllImport
toLibraryImport
for recycle bin, clipboard, and computerinfo cmdlets (ConvertDllImport
toLibraryImport
for recyclebin, clipboard, and computerinfo cmdlets #18526)string.Join(string)
calls withstring.Join(char)
(Replace some string.Join(string) calls with string.Join(char) #18411) (Thanks @turbedi!)GetValues<T>
,GetNames<T>
enum methods (Use genericGetValues
,GetNames
enum methods #18391) (Thanks @xtqqczze!)SessionStateStrings
(Remove unused strings from SessionStateStrings #18394)System.Management.Automation
(Remove some unused strings in System.Management.Automation #18388)Enum.HasFlags
part 1 (UseEnum.HasFlags
part 1 #18386) (Thanks @xtqqczze!)ConsoleInfoErrorStrings.resx
(Remove unused strings from ConsoleInfoErrorStrings.resx #18367)ContentHelper.Common.cs
(Code Cleanup ContentHelper.Common.cs #18288) (Thanks @CarloToso!)FusionAssemblyIdentity
andGlobalAssemblyCache
as they are not used (Remove FusionAssemblyIdentity and GlobalAssemblyCache #18334) (Thanks @iSazonov!)StringManipulationHelper
(Remove some static initializations inStringManipulationHelper
#18243) (Thanks @xtqqczze!)MemoryExtensions.IndexOfAny
inPSv2CompletionCompleter
(UseMemoryExtensions.IndexOfAny
inPSv2CompletionCompleter
` #18245) (Thanks @xtqqczze!)MemoryExtensions.IndexOfAny
inWildcardPattern
(UseMemoryExtensions.IndexOfAny
inWildcardPattern
#18242) (Thanks @xtqqczze!)RemoteRunspacePoolInternal.cs
(Fix typo in RemoteRunspacePoolInternal.cs #18263) (Thanks @eltociear!)PSVersionInfo
(Some more code cleanup related to the use ofPSVersionInfo
#18231)MemoryExtensions.IndexOfAny
inSessionStateInternal
(UseMemoryExtensions.IndexOfAny
inSessionStateInternal
#18244) (Thanks @xtqqczze!)char
instead ofstring
when it's possible (Replace strings with chars #18179) (Thanks @iSazonov!)UTF8Encoding(false)
withEncoding.Default
(ReplaceUTF8Encoding(false)
withEncoding.Default
#18144) (Thanks @xtqqczze!)WinTrust
functions to a common location (Migrate WinTrust functions to common location #17598) (Thanks @jborean93!)Tools
Tests
testexe.exe -echocmdline
to output raw command line received by the process on Windows (Addtestexe.exe -echocmdline
to output raw command line received by the process on Windows #18591)-Tag 'CI'
to describe blocks. #18316)Get-Item
test relying on node (Use shortpath instead of multiple quotes inGet-Item
test relying on node #18250)-Amended
parameter test (Change class used forGet-CimClass -Amended
parameter test #17884) (Thanks @sethvs!)Write-Progress
test (Stop ongoing progress-bar in Write-Progress test #17880) (Thanks @fflaten!)Build and Packaging Improvements
We thank the following contributors!
Microsoft.PowerShell.Commands.Utility
(Fix reference assembly generation logic for Microsoft.PowerShell.Commands.Utility #18818)Microsoft.PowerShell.Native
to the latest preview versionv7.4.0-preview.1
(BumpMicrosoft.PowerShell.Native
to the latest preview versionv7.4.0-preview.1
#18805)System.Runtime.CompilerServices.Unsafe
(Remove unnecessary reference toSystem.Runtime.CompilerServices.Unsafe
#18806)metadata.json
for next preview (Update the next release tag inmetadata.json
for next preview #18799)7.0.101
(Bump .NET SDK to version 7.0.101 #18786)cirrus-actions/rebase
from 1.7 to 1.8 (Bump cirrus-actions/rebase from 1.7 to 1.8 #18788)decode-uri-component
from 0.2.0 to 0.2.2 (Bump decode-uri-component from 0.2.0 to 0.2.2 in /test/common/markdown-lint #18712)minimatch
from 3.0.4 to 3.1.2 (Bump minimatch from 3.0.4 to 3.1.2 in /test/common/markdown-lint #18514)release-MsixBundle.yml
to add retries (Add retries when making the msix #18465)penimc_cor3.dll
from build (Do not removepenimc_cor3.dll
from build #18438)Microsoft.PowerShell.Native
from 7.3.0-rc.1 to 7.3.0 (Bump Microsoft.PowerShell.Native from 7.3.0-rc.1 to 7.3.0 #18405)vPack
package validation pattern (Allow two-digit revisions in vPack package validation pattern #18392)Microsoft.CodeAnalysis.NetAnalyzers
(Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.0-preview1.22514.1 to 7.0.0-preview1.22521.1 #18363)7.0.100-rc.2.22477.20
(Bump to .NET 7 to version 7.0.100-rc.2.22477.20 #18286)pwsh.deps.json
for framework dependent packages (Do not cleanup pwsh.deps.json for framework dependent packages #18226)Microsoft.PowerShell.Native
from7.3.0-preview.1
to7.3.0-rc.1
(Bump Microsoft.PowerShell.Native from 7.3.0-preview.1 to 7.3.0-rc.1 #18217)dotnet-install.sh
(Fix the verbose message when usingdotnet-install.sh
#18184)Microsoft.CodeAnalysis.NetAnalyzers
(Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.0-preview1.22464.1 to 7.0.0-preview1.22471.2 #18147)DotnetRuntimeMetadata.json
for .NET 7 RC1 build (UpdateDotnetRuntimeMetadata.json
for .NET 7 RC1 build #18091)Microsoft.CodeAnalysis.NetAnalyzers
(Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.0-preview1.22429.1 to 7.0.0-preview1.22464.1 #18096)Microsoft.CodeAnalysis.CSharp
from 4.3.0-3.final to 4.3.0 (Bump Microsoft.CodeAnalysis.CSharp from 4.3.0-3.final to 4.3.0 #18012)Microsoft.CodeAnalysis.NetAnalyzers
(Bump Microsoft.CodeAnalysis.NetAnalyzers from 7.0.0-preview1.22426.2 to 7.0.0-preview1.22429.1 #17988)Security.types.ps1xml
gets signed in release build (Make sureSecurity.types.ps1xml
gets signed in release build #17916)Documentation and Help Content
README.md
andmetadata.json
forv7.3.0
#18493)(UpdateREADME.json
andmetadata.json
forv7.3.0-rc.1
#18393)(Update README and metadata from servicing releases #18332)(Updatemetadata.json
andREADME.md
for v7.3.0-preview.8 release #18128)(UpdateREADME.md
andmetadata.json
for the next releases #17870)monad
to PowerShell (Change public API mention ofmonad
to PowerShell #18491)msh
in public API comment based documentation with PowerShell equivalent (Replacemsh
in public API comment based documentation with PowerShell equivalent #18483)RunspaceFactory
(Add missing XML doc elements for methods inRunspaceFactory
#18450)v7.3.0-rc.1
(Change log for v7.3.0-rc.1 #18400)v7.2.7
andv7.0.13
(Update change logs for v7.2.7 and v7.0.13 #18342)ConfigurationFile
option to the PowerShell help content (Add ConfigurationFile option to syntax frontmatter #18093)-NonInteractive
(Update help content about the flag-NonInteractive
#17952)SHA256 Hashes of the release artifacts
This discussion was created from the release v7.4.0-preview.1 Release of PowerShell.
Beta Was this translation helpful? Give feedback.
All reactions