PowerShell v7.0.0-preview.2 Release Notes

Release Date: 2019-07-17 // over 4 years ago
  • v7.0.0-preview.2 - 07/17/2019

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿšš Cleanup workflow - remove PSProxyJob (#10083) (Thanks @iSazonov!)
    • ๐Ÿ”’ Disable Enter-PSHostProcess cmdlet when system in lock down mode (Internal 9168)
    • Consider DBNull.Value and NullString.Value the same as $null when comparing with $null and casting to bool (#9794) (Thanks @vexx32!)

    โšก๏ธ Engine Updates and Fixes

    • ๐Ÿ‘ Allow methods to be named after keywords (#9812) (Thanks @vexx32!)
    • Create JumpList in STA thread as some COM APIs are strictly STA only to avoid sporadic CLR crashes (#9928) (#10057) (Thanks @bergmeister!)
    • Skip JumpList on NanoServer and IoT (#10164)
    • Display COM method signature with argument names (#9858) (Thanks @nbkalex!)
    • ๐Ÿ‘‰ Use the original precision (prior-dotnet-core-3) for double/float-to-string conversion (#9893)
    • Import-DscResource should allow to overwrite DSC built-in resources. (#9879)
    • โž• Add ability to pass InitialSessionState to the ConsoleShell.Start (#9802) (Thanks @asrosent!)
    • Have console host not enter command prompt mode when using Read-Host -Prompt (#9743)
    • ๐Ÿ›  Fix use of Start-Process http://bing.com (#9793)
    • ๐Ÿ‘Œ Support negative numbers in -split operator (#8960) (Thanks @ece-jacob-scott!)

    โšก๏ธ General Cmdlet Updates and Fixes

    • ๐Ÿ‘Œ Support DSC compilation on Linux. (#9834)
    • โž• Add alias for Service StartType (#9940) (Thanks @NeoBeum!)
    • โž• Add -SecurityDescriptorSddl parameter to Set-Service (#8626) (Thanks @kvprasoon!)
    • ๐Ÿ›  Fix auto-download of files when enumerating files from a OneDrive folder (#9895)
    • ๐ŸŒ Set request headers when request body is empty in Web Cmdlets (#10034) (Thanks @markekraus!)
    • ๐Ÿ›  Fix wrong comparison in CertificateProvider (#9987) (Thanks @iSazonov!)
    • ๐Ÿ”€ Sync docs changes into the embedded help for pwsh (#9952)
    • Display Duration when displaying HistoryInfo (#9751) (Thanks @rkeithhill!)
    • โšก๏ธ Update console startup and help url for PowerShell docs (#9775)
    • ๐Ÿ‘‰ Make UseAbbreviationExpansion and TempDrive official features (#9872)
    • ๐Ÿ›  Fix Get-ChildItem -Path with wildcard char (#9257) (Thanks @kwkam!)

    ๐ŸŽ Performance

    • โž• Add another fast path to WildcardPattern.IsMatch for patterns that only have an asterisk in the end (#10054) (Thanks @iSazonov!)
    • ๐Ÿšš Move some of the creations of WildcardPattern in outer loop to avoid unnecessary allocation (#10053) (Thanks @iSazonov!)
    • ๐Ÿ‘‰ Make Foreach-Object 2 times faster by reducing unnecessary allocations and boxing (#10047)
    • ๐Ÿ‘‰ Use a static cache for PSVersionInfo.PSVersion to avoid casting SemanticVersion to Version every time accessing that property (#10028)
    • โฌ‡๏ธ Reduce allocations in NavigationCmdletProvider.NormalizePath() (#10038) (Thanks @iSazonov!)
    • โž• Add fast path for wildcard patterns that contains no wildcard characters (#10020)
    • Avoid Assembly.GetName() in ClrFacade.GetAssemblies(string) to reduce allocations of CultureInfo objects (#10024) (Thanks @iSazonov!)
    • Avoid the int[] and int[,] allocation when tokenizing line comments and matching wildcard pattern (#10009)

    Tools

    • โšก๏ธ Update change log generation tool to deal with private commits (#10096)
    • โšก๏ธ Update Start-PSBuild -Clean logic of git clean to ignore locked files from VS2019 (#10071) (Thanks @bergmeister!)
    • โœ… Indent fix in markdown-link.tests.ps1 (#10049) (Thanks @RDIL!)
    • ๐Ÿšš Start-PSBuild -Clean does not remove all untracked files (#10022) (Thanks @vexx32!)
    • โž• Add module to support Pester tests for automating debugger commands (stepInto, stepOut, etc.), along with basic tests (#9825) (Thanks @KirkMunro!)
    • โœ‚ Remove markdownlint tests due to security issues (#10163)

    Code Cleanup

    • Cleanup CompiledScriptBlock.cs (#9735) (Thanks @vexx32!)
    • Cleanup workflow code (#9638) (Thanks @iSazonov!)
    • โšก๏ธ Use AddOrUpdate() instead of Remove then Add to register runspace (#10007) (Thanks @iSazonov!)
    • Suppress PossibleIncorrectUsageOfAssignmentOperator rule violation by adding extra parenthesis (#9460) (Thanks @xtqqczze!)
    • ๐Ÿ‘‰ Use AddRange in GetModules() (#9975) (Thanks @iSazonov!)
    • Code cleanup: use IndexOf(char) overload (#9722) (Thanks @iSazonov!)
    • ๐Ÿšš Move consts and methods to single CharExtensions class (#9992) (Thanks @iSazonov!)
    • Cleanup: Use EndsWith(char) and StartsWith(char) (#9994) (Thanks @iSazonov!)
    • โœ‚ Remove LCIDToLocaleName P/Invoke from GetComputerInfoCommand (#9716) (Thanks @iSazonov!)
    • โœ… Cleanup Parser tests (#9792) (Thanks @vexx32!)
    • โœ‚ Remove EtwActivity empty constructor and make minor style fixes (#9958) (Thanks @RDIL!)
    • ๐Ÿ›  Fix style issues from last commits (#9937) (Thanks @iSazonov!)
    • โœ‚ Remove dead code about IsTransparentProxy (#9966)
    • ๐Ÿ›  Fix minor typos in code comments (#9917) (Thanks @RDIL!)
    • ๐Ÿ’… Style fixes for CimAsyncOperations (#9945) (Thanks @RDIL!)
    • ๐Ÿ›  Fix minor CodeFactor style issues in ModuleCmdletBase (#9915) (Thanks @RDIL!)
    • Clean up the use of SetProfileRoot and StartProfile in ConsoleHost (#9931)
    • ๐Ÿ›  Fix minor style issues come from last commits (#9640) (Thanks @iSazonov!)
    • ๐Ÿ‘Œ Improve whitespace for Parser tests (#9806) (Thanks @vexx32!)
    • ๐Ÿ‘‰ Use new string.ConCat() in Process.cs (#9720) (Thanks @iSazonov!)
    • Code Cleanup: Tidy up scriptblock.cs (#9732) (Thanks @vexx32!)

    โœ… Tests

    • โœ… Mark Set-Service tests with password as Pending (#10146)
    • ๐Ÿ›  Fix test password generation rule to meet Windows complexity requirements (#10143)
    • โž• Add test for New-Item -Force (#9971) (Thanks @robdy!)
    • ๐Ÿ›  Fix gulp versions (#9916) (Thanks @RDIL!)
    • ๐Ÿ›  Indentation fixes in ci.psm1 (#9947) (Thanks @RDIL!)
    • โœ‚ Remove some Travis-CI references (#9919) (Thanks @RDIL!)
    • ๐Ÿ‘Œ Improve release testing Docker images (#9942) (Thanks @RDIL!)
    • ๐Ÿ‘‰ Use yarn to install global tools (#9904) (Thanks @RDIL!)
    • ๐Ÿ Attempt to work around the zip download issue in Azure DevOps Windows CI (#9911)
    • โšก๏ธ Update PowerShell SDK version for hosting tests (Internal 9185)

    ๐Ÿ— Build and Packaging Improvements

    • โšก๏ธ Update the target framework for reference assemblies to netcoreapp3.0 (#9747)
    • ๐Ÿ“Œ Pin version of netDumbster to 2.0.0.4 (#9748)
    • ๐Ÿ›  Fix daily CodeCoverageAndTest build by explicitly calling Start-PSBootStrap (#9724)
    • ๐Ÿ Split the fxdependent package on Windows into two packages (#10134)
    • โฌ†๏ธ Bump System.Data.SqlClient (#10109)
    • ๐Ÿ”’ Bump System.Security.AccessControl (#10100)
    • โž• Add performance tag to change log command (Internal)
    • โฌ†๏ธ Upgrade .Net Core 3 SDK from preview5 to preview6 and related out of band Nuget packages from 2.1 to 3.0-preview6 (#9888) (Thanks @bergmeister!)
    • โž• Add to /etc/shells on macOS (#10066)
    • โฌ†๏ธ Bump Markdig.Signed from 0.17.0 to 0.17.1 (#10062)
    • โšก๏ธ Update copyright symbol for NuGet packages (#9936)
    • ๐Ÿ“ฆ Download latest version (6.2.0) of PSDesiredStateConfiguration nuget package. (#9932)
    • โž• Add automated RPM signing to release build (#10013)
    • โฌ†๏ธ Bump ThreadJob from 1.1.2 to 2.0.1 in /src/Modules (#10003)
    • โฌ†๏ธ Bump PowerShellGet from 2.1.4 to 2.2 in /src/Modules (#9933) (#10085)
    • โฌ†๏ธ Bump PackageManagement from 1.4 to 1.4.3 in /src/Modules (#9820) (#9918) (#10084)
    • โšก๏ธ Update to use TSAv2 (#9914)
    • โฌ†๏ธ Bump NJsonSchema from 9.14.1 to 10.0.21 (#9805) (#9843) (#9854) (#9862) (#9875) (#9885) (#9954) (#10017)
    • โฌ†๏ธ Bump System.Net.Http.WinHttpHandler from 4.5.3 to 4.5.4 (#9786)
    • โฌ†๏ธ Bump Microsoft.ApplicationInsights from 2.9.1 to 2.10.0 (#9757)
    • ๐Ÿ— Increase timeout of NuGet job to workaround build timeout (#9772)

    ๐Ÿ“š Documentation and Help Content

    • ๐Ÿ”„ Change log 6.1.4 (#9759)
    • ๐Ÿš€ Change log for release 6.2.1 (#9760)
    • โž• Add quick steps for adding docs to cmdlets (#9978)
    • โšก๏ธ Update readme gitter badge (#9920) (Thanks @RDIL!)
    • ๐Ÿš€ Update README and metadata.json for 7.0.0-preview.1 release (#9767)

    ๐Ÿš€ SHA256 Hashes of the release artifacts

    • ๐Ÿง powershell-7.0.0-preview.2-linux-alpine-x64.tar.gz
      • 52AAD50F74A51BB36F601C9A0B8D3C2E8B4C76D6B364CB42777C404363D30FBB
    • ๐Ÿง powershell-7.0.0-preview.2-linux-arm32.tar.gz
      • DD3BF6F9D4092FD9C70120B26E83407CB18FCF6BB945F9D7E80A1CD29BD3131A
    • ๐Ÿง powershell-7.0.0-preview.2-linux-arm64.tar.gz
      • 12B5CE3BA0FEF1C9820785623FD20798E4B6FCC8ABE5322DA4DD15E6B3C09A49
    • ๐Ÿง powershell-7.0.0-preview.2-linux-x64.tar.gz
      • F12124BBD8C89754517F6C53D641059D5B24FA8964EEBE8D5063F6ED01D77700
    • ๐Ÿง powershell-7.0.0-preview.2-linux-x64-fxdependent.tar.gz
      • 4F9B682698FAE8B4C3DC64BD19B433299D34DB6268B3E999345AAC0881C1FA4F
    • powershell-7.0.0-preview.2-osx-x64.pkg
      • B9CA20B7121EC8443A8E3AA1E61D431E1F49D803CCFC1AA17168C98BD8AA0F12
    • powershell-7.0.0-preview.2-osx-x64.tar.gz
      • 7412B7E9BAC04D6495A829A390E6E5B73B5EB77E5E40680AB0E4F39F448E6AC6
    • PowerShell-7.0.0-preview.2-win-arm32.zip
      • B374AD20AFE352AF65970599832B0C8535DCB7B3F33F4356C440896110FFA8E3
    • PowerShell-7.0.0-preview.2-win-arm64.zip
      • 0D521BBD88BAA7EF7EE31D5E8FC8078D1AE138B86F7F02FC02446859DE4160F8
    • PowerShell-7.0.0-preview.2-win-fxdependent.zip
      • 8BEF26FF757F4531C3FCBA7465CDF998B27635846B768998B038123AD646AC3C
    • PowerShell-7.0.0-preview.2-win-fxdependentWinDesktop.zip
      • 04C8D286D22644BF8F47BF325A788A4DC5B1805974DADE964D97FC30F0749F16
    • PowerShell-7.0.0-preview.2-win-x64.msi
      • 123135D14758E84D60BB759D0C16684963194EB3847B8C3964DBE3A9648D2255
    • PowerShell-7.0.0-preview.2-win-x64.zip
      • CE068509141A24E086C9CC72936899104341C5BB766FE10FD84FEC2390166D66
    • PowerShell-7.0.0-preview.2-win-x86.msi
      • B2C6ECE5EE5A79C99240150E38DBE9098566B4E8DF145981711AEEB690281A0F
    • PowerShell-7.0.0-preview.2-win-x86.zip
      • 794350403185BCE9CB31F6432F13E0BD3C74AC44A0095C0A35F2346B7E2370EF
    • powershell-preview_7.0.0-preview.2-1.debian.9_amd64.deb
      • 478F715BA860C2ADD10E3F4B842E1E27AF9F6D6BE65F160C08DD859C09484646
    • powershell-preview_7.0.0-preview.2-1.ubuntu.16.04_amd64.deb
      • 469464EA3292645DA65B078599A2EE2774B20EAC78036EDC0485B68792B8C5D4
    • powershell-preview_7.0.0-preview.2-1.ubuntu.18.04_amd64.deb
      • AF5C54559942CE2FBBC200AAAD221F00B3F9EA772F4D06E5AD2380A63F4C200E
    • powershell-preview-7.0.0_preview.2-1.rhel.7.x86_64.rpm
      • 94059118461045B7A43DEFE1C093A2FEEFC58F93958B4B68A9E7955C9692068B