From bc29de9d676082589a5693f971328265c9b2fd65 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Tue, 18 Feb 2025 14:50:03 -0600 Subject: [PATCH 1/3] Update release notes for 7.6-p3 --- .../Start-Transcript.md | 4 +- .../whats-new/What-s-New-in-PowerShell-76.md | 60 ++++++++++++++----- 2 files changed, 48 insertions(+), 16 deletions(-) diff --git a/reference/7.6/Microsoft.PowerShell.Host/Start-Transcript.md b/reference/7.6/Microsoft.PowerShell.Host/Start-Transcript.md index 6564694e1cf6..784a6d1aa5d1 100644 --- a/reference/7.6/Microsoft.PowerShell.Host/Start-Transcript.md +++ b/reference/7.6/Microsoft.PowerShell.Host/Start-Transcript.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.ConsoleHost.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Host -ms.date: 01/06/2025 +ms.date: 02/18/2025 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.host/start-transcript?view=powershell-7.6&WT.mc_id=ps-gethelp schema: 2.0.0 title: Start-Transcript @@ -92,7 +92,7 @@ $hostname = hostname $version = $PSVersionTable.PSVersion.ToString() $datetime = Get-Date -f 'yyyyMMddHHmmss' $filename = "Transcript-${username}-${hostname}-${version}-${datetime}.txt" -$Transcript = (Join-Path -Path $sharepath -ChildPath $filename).ToString() +$Transcript = Join-Path -Path $sharepath -ChildPath $filename Start-Transcript ``` diff --git a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md index 9a5f9b458ada..8086f598ec31 100644 --- a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md +++ b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md @@ -1,12 +1,12 @@ --- title: What's New in PowerShell 7.6 description: New features and changes released in PowerShell 7.6 -ms.date: 01/17/2025 +ms.date: 02/18/2025 --- # What's New in PowerShell 7.6 -PowerShell 7.6-preview.2 includes the following features, updates, and breaking changes. PowerShell +PowerShell 7.6-preview.3 includes the following features, updates, and breaking changes. PowerShell 7.6 is built on .NET 9.0.101 GA release. For a complete list of changes, see the [CHANGELOG][04] in the GitHub repository. @@ -19,34 +19,55 @@ No breaking changes were introduced in PowerShell 7.6-preview.2. PowerShell 7.6-preview.2 includes the following updated modules: -- **Microsoft.PowerShell.PSResourceGet** v1.1.0-RC3 +- **Microsoft.PowerShell.PSResourceGet** v1.1.0 - **PSReadLine** v2.3.6 ## Tab completion improvements -- Update Named and Statement block type inference to not consider AssignmentStatements and +- Update Named and Statement block type inference to not consider **AssignmentStatements** and Increment/decrement operators as part of their output ([#21137][21137]) (Thanks @MartinGC94!) -- Add -PropertyType argument completer for New-ItemProperty ([#21117][21117]) (Thanks +- Add `-PropertyType` argument completer for `New-ItemProperty` ([#21117][21117]) (Thanks @ArmaanMcleod!) +- Add completion single/double quote support for `-Noun` parameter ([#24977][24977]) (Thanks + @ArmaanMcleod!) +- Add completion single/double quote support for `-PSEdition` parameter ([#24971][24971]) (Thanks + @ArmaanMcleod!) +- Convert **InvalidCommandNameCharacters** in AnalysisCache to `SearchValues` for more + efficient char searching ([#24880][24880]) (Thanks @ArmaanMcleod!) +- Convert **s_charactersRequiringQuotes** in Completion Completers to `SearchValues` for more + efficient char searching ([#24879][24879]) (Thanks @ArmaanMcleod!) +- Update `IndexOfAny()` calls with invalid path/filename to `SearchValues` for more efficient + char searching ([#24896][24896]) (Thanks @ArmaanMcleod!) +- Replace `char[]` array in `CompletionRequiresQuotes` with cached `SearchValues` + ([#24907][24907]) (Thanks @ArmaanMcleod!) +- Add quote handling in **Verb**, **StrictModeVersion**, **Scope** & **PropertyType** Argument + Completers with single helper method ([#24839][24839]) (Thanks @ArmaanMcleod!) ## Cmdlet improvements -- Add -ExcludeModule parameter to Get-Command ([#18955][18955]) (Thanks @MartinGC94!) -- Return correct FileName property for Get-Item when listing alternate data streams +- Add `-ExcludeModule` parameter to `Get-Command` ([#18955][18955]) (Thanks @MartinGC94!) +- Return correct **FileName** property for `Get-Item` when listing alternate data streams ([#18019][18019]) (Thanks @kilasuit!) -- Fix Get-ItemProperty to report non-terminating error for cast exception ([#21115][21115]) (Thanks - @ArmaanMcleod!) -- Fix a bug in how Write-Host handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!) +- Fix `Get-ItemProperty` to report non-terminating error for cast exception ([#21115][21115]) + (Thanks @ArmaanMcleod!) +- Fix a bug in how q handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!) +- Fix `New-Item -Force` to error on invalid directory name ([#24936][24936]) (Thanks @kborowinski!) +- Fix `Start-Transcript` error when `$Transcript` is a **PSObject** wrapped string + ([#24963][24963]) (Thanks @kborowinski!) +- Fix `Start-Process -Wait` polling ([#24711][24711]) (Thanks @jborean93!) +- Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!) ## Engine improvements - Added the AIShell module to telemetry collection list ([#24747][24747]) -- Added helper in EnumSingleTypeConverter to get enum names as array ([#17785][17785]) (Thanks +- Added helper in `EnumSingleTypeConverter` to get enum names as array ([#17785][17785]) (Thanks @fflaten!) -- Update DnsNameList for X509Certificate2 to use - X509SubjectAlternativeNameExtension.EnumerateDnsNames Method ([#24714][24714]) (Thanks +- Update **DnsNameList** for **X509Certificate2** to use + `X509SubjectAlternativeNameExtension.EnumerateDnsNames()` Method ([#24714][24714]) (Thanks @ArmaanMcleod!) -- Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!) +- Remove trailing space from event source name ([#24192][24192]) (Thanks @MartinGC94!) +- Stringify **ErrorRecord** with empty exception message to empty string ([#24949][24949]) (Thanks + @MatejKafka!) ## Experimental features @@ -70,6 +91,17 @@ The following experimental features are included in PowerShell 7.6-preview.2: [21115]: https://github.com/PowerShell/PowerShell/pull/21115 [21117]: https://github.com/PowerShell/PowerShell/pull/21117 [21137]: https://github.com/PowerShell/PowerShell/pull/21137 +[24192]: https://github.com/PowerShell/PowerShell/pull/24192 [24669]: https://github.com/PowerShell/PowerShell/pull/24669 +[24711]: https://github.com/PowerShell/PowerShell/pull/24711 [24714]: https://github.com/PowerShell/PowerShell/pull/24714 [24747]: https://github.com/PowerShell/PowerShell/pull/24747 +[24839]: https://github.com/PowerShell/PowerShell/pull/24839 +[24879]: https://github.com/PowerShell/PowerShell/pull/24879 +[24880]: https://github.com/PowerShell/PowerShell/pull/24880 +[24907]: https://github.com/PowerShell/PowerShell/pull/24907 +[24936]: https://github.com/PowerShell/PowerShell/pull/24936 +[24949]: https://github.com/PowerShell/PowerShell/pull/24949 +[24963]: https://github.com/PowerShell/PowerShell/pull/24963 +[24971]: https://github.com/PowerShell/PowerShell/pull/24971 +[24977]: https://github.com/PowerShell/PowerShell/pull/24977 From a2e23fd60270c61aca13414d4c59feb160faaf67 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Fri, 21 Feb 2025 08:29:55 -0600 Subject: [PATCH 2/3] Minor edits --- .../whats-new/What-s-New-in-PowerShell-76.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md index 8086f598ec31..3e3e91faed47 100644 --- a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md +++ b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md @@ -28,10 +28,10 @@ PowerShell 7.6-preview.2 includes the following updated modules: Increment/decrement operators as part of their output ([#21137][21137]) (Thanks @MartinGC94!) - Add `-PropertyType` argument completer for `New-ItemProperty` ([#21117][21117]) (Thanks @ArmaanMcleod!) -- Add completion single/double quote support for `-Noun` parameter ([#24977][24977]) (Thanks - @ArmaanMcleod!) -- Add completion single/double quote support for `-PSEdition` parameter ([#24971][24971]) (Thanks - @ArmaanMcleod!) +- Add completion single/double quote support for `-Noun` parameter for `Get-Command` + ([#24977][24977]) (Thanks @ArmaanMcleod!) +- Add completion single/double quote support for `-PSEdition` parameter for `Get-Module` + ([#24971][24971]) (Thanks @ArmaanMcleod!) - Convert **InvalidCommandNameCharacters** in AnalysisCache to `SearchValues` for more efficient char searching ([#24880][24880]) (Thanks @ArmaanMcleod!) - Convert **s_charactersRequiringQuotes** in Completion Completers to `SearchValues` for more @@ -40,7 +40,7 @@ PowerShell 7.6-preview.2 includes the following updated modules: char searching ([#24896][24896]) (Thanks @ArmaanMcleod!) - Replace `char[]` array in `CompletionRequiresQuotes` with cached `SearchValues` ([#24907][24907]) (Thanks @ArmaanMcleod!) -- Add quote handling in **Verb**, **StrictModeVersion**, **Scope** & **PropertyType** Argument +- Add quote handling in `Verb`, `StrictModeVersion`, `Scope` and `PropertyType` Argument Completers with single helper method ([#24839][24839]) (Thanks @ArmaanMcleod!) ## Cmdlet improvements @@ -51,10 +51,11 @@ PowerShell 7.6-preview.2 includes the following updated modules: - Fix `Get-ItemProperty` to report non-terminating error for cast exception ([#21115][21115]) (Thanks @ArmaanMcleod!) - Fix a bug in how q handles XmlNode object ([#24669][24669]) (Thanks @brendandburns!) -- Fix `New-Item -Force` to error on invalid directory name ([#24936][24936]) (Thanks @kborowinski!) -- Fix `Start-Transcript` error when `$Transcript` is a **PSObject** wrapped string - ([#24963][24963]) (Thanks @kborowinski!) -- Fix `Start-Process -Wait` polling ([#24711][24711]) (Thanks @jborean93!) +- Error when `New-Item -Force` is passed an invalid directory name ([#24936][24936]) (Thanks + @kborowinski!) +- Allow `Start-Transcript` to use `$Transcript` which is a `PSObject` wrapped string to specify the + transcript path ([#24963][24963]) (Thanks @kborowinski!) +- Improve `Start-Process -Wait` polling efficiency ([#24711][24711]) (Thanks @jborean93!) - Add completion of modules by their shortname ([#20330][20330]) (Thanks @MartinGC94!) ## Engine improvements From b282f608d55e7e62edd1c04eb7f4be19c4a24df3 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Fri, 21 Feb 2025 12:02:56 -0600 Subject: [PATCH 3/3] Minor edits --- .../whats-new/What-s-New-in-PowerShell-76.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md index 3e3e91faed47..d5b0bc40abfd 100644 --- a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md +++ b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-76.md @@ -11,17 +11,17 @@ PowerShell 7.6-preview.3 includes the following features, updates, and breaking For a complete list of changes, see the [CHANGELOG][04] in the GitHub repository. -## Breaking Changes - -No breaking changes were introduced in PowerShell 7.6-preview.2. - ## Updated modules -PowerShell 7.6-preview.2 includes the following updated modules: +PowerShell 7.6-preview.3 includes the following updated modules: - **Microsoft.PowerShell.PSResourceGet** v1.1.0 - **PSReadLine** v2.3.6 +## Breaking Changes + +- Remove trailing space from event source name ([#24192][24192]) (Thanks @MartinGC94!) + ## Tab completion improvements - Update Named and Statement block type inference to not consider **AssignmentStatements** and @@ -66,13 +66,12 @@ PowerShell 7.6-preview.2 includes the following updated modules: - Update **DnsNameList** for **X509Certificate2** to use `X509SubjectAlternativeNameExtension.EnumerateDnsNames()` Method ([#24714][24714]) (Thanks @ArmaanMcleod!) -- Remove trailing space from event source name ([#24192][24192]) (Thanks @MartinGC94!) - Stringify **ErrorRecord** with empty exception message to empty string ([#24949][24949]) (Thanks @MatejKafka!) ## Experimental features -The following experimental features are included in PowerShell 7.6-preview.2: +The following experimental features are included in PowerShell 7.6-preview.3: - [PSNativeWindowsTildeExpansion][01] - Add tilde expansion for windows native executables - [PSRedirectToVariable][02] - Allow redirecting to a variable