From 2e257f884f15ca039433f6733f7d847873eabe86 Mon Sep 17 00:00:00 2001 From: Sean Wheeler Date: Thu, 16 May 2024 15:35:07 -0500 Subject: [PATCH] Update release notes for 7.5-preview.3 --- .../About/about_Tab_Expansion.md | 13 +++++- .../ConvertTo-Json.md | 5 ++- .../whats-new/What-s-New-in-PowerShell-75.md | 40 ++++++++++++++++--- 3 files changed, 50 insertions(+), 8 deletions(-) diff --git a/reference/7.5/Microsoft.PowerShell.Core/About/about_Tab_Expansion.md b/reference/7.5/Microsoft.PowerShell.Core/About/about_Tab_Expansion.md index b171207af458..2d40b8aa4201 100644 --- a/reference/7.5/Microsoft.PowerShell.Core/About/about_Tab_Expansion.md +++ b/reference/7.5/Microsoft.PowerShell.Core/About/about_Tab_Expansion.md @@ -1,7 +1,7 @@ --- description: Explains how to use the Tab Expansion feature in PowerShell. Locale: en-US -ms.date: 12/05/2023 +ms.date: 05/16/2024 no-loc: [Tab, Ctrl, Space] online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_tab_expansion?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 @@ -36,13 +36,22 @@ information, see [about_PSReadLine][02]. > contain tabs. If it does, the results will be unpredictable and will almost > certainly not be what you intended. -## File and cmdlet name completion +## File and path name completion To fill in a filename or path from the available choices automatically, type part of the name and press the Tab key. PowerShell automatically expands the name to the first match that it finds. Pressing the Tab key repeatedly cycles through all the available choices. +When the tilde character (`~`) appears at the beginning of a path, PowerShell +interprets it as the user's home directory. This interpretation is common on +Linux and macOS systems. However, many native commands on Windows don't use +this interpretation. Beginning in PowerShell 7.5-preview.3 on Windows, the +tilde character is character is expanded to `$HOME` when using tab completion. +This expansion works with Windows native commands. + +## Cmdlet name completion + The tab expansion of cmdlet names is slightly different. To use tab expansion on a cmdlet name, type the entire first part of the name (the verb) and the hyphen that follows it. You can fill in more of the name for a partial match. diff --git a/reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md b/reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md index 517b2dac2a9b..bc58ac5d460e 100644 --- a/reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md +++ b/reference/7.5/Microsoft.PowerShell.Utility/ConvertTo-Json.md @@ -2,7 +2,7 @@ external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml Locale: en-US Module Name: Microsoft.PowerShell.Utility -ms.date: 12/12/2022 +ms.date: 05/16/2024 online version: https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/convertto-json?view=powershell-7.5&WT.mc_id=ps-gethelp schema: 2.0.0 title: ConvertTo-Json @@ -41,6 +41,9 @@ web-based apps. As of PowerShell 7.1, `ConvertTo-Json` emits a warning if the depth of the input object exceeds the depth specified for the command. This prevents unwanted data loss when converting objects. +As of PowerShell 7.5-preview.3, `ConvertTo-Json` can serialize **BigInteger** values as raw JSON +numbers. + This cmdlet was introduced in Windows PowerShell 3.0. ## EXAMPLES diff --git a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-75.md b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-75.md index 22906df1a5ae..f0d47384fe19 100644 --- a/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-75.md +++ b/reference/docs-conceptual/whats-new/What-s-New-in-PowerShell-75.md @@ -1,13 +1,13 @@ --- title: What's New in PowerShell 7.5 description: New features and changes released in PowerShell 7.5 -ms.date: 02/23/2024 +ms.date: 05/16/2024 --- # What's New in PowerShell 7.5 -PowerShell 7.5-preview.2 includes the following features, updates, and breaking changes. PowerShell -7.5 is built on .NET 9.0.0-preview.1. +PowerShell 7.5-preview.3 includes the following features, updates, and breaking changes. PowerShell +7.5 is built on .NET 9.0.0-preview.3. For a complete list of changes, see the [CHANGELOG][chg] in the GitHub repository. @@ -18,11 +18,27 @@ For a complete list of changes, see the [CHANGELOG][chg] in the GitHub repositor - Previously `-OlderThan` would be ignored if specified together - Change `New-FileCatalog -CatalogVersion` default to 2 ([#20428][20428]) (Thanks @ThomasNieto!) - Block getting help from network locations in restricted remoting sessions ([#20593][20593]) +- The Windows installer now remembers installation options used and uses them to initialize options + for the next installation ([#20420][20420]) (Thanks @reduckted!) +- `ConvertTo-Json` now serializes `BigInteger` as a number ([#21000][21000]) (Thanks @jborean93!) + +## Updated modules + +PowerShell 7.5-preview.3 includes the following updated modules: + +- **Microsoft.PowerShell.PSResourceGet** v1.0.5 +- **PSReadLine** v2.3.4 ## Tab completion improvements Many thanks to **@ArmaanMcleod** and others for all their work to improve tab completion. +- Fall back to type inference when hashtable key-value cannot be retrieved from safe expression + ([#21184][21184]) (Thanks @MartinGC94!) +- Fix the regression when doing type inference for `$_` ([#21223][21223]) (Thanks @MartinGC94!) +- Expand `~` to `$home` on Windows with tab completion ([#21529][21529]) +- Don't complete when declaring parameter name and class member ([#21182][21182]) (Thanks + @MartinGC94!) - Prevent fallback to file completion when tab completing type names ([#20084][20084]) (Thanks @MartinGC94) - Add argument completer to `-Version` for `Set-StrictMode` ([#20554][20554]) (Thanks @@ -43,6 +59,10 @@ Many thanks to **@ArmaanMcleod** and others for all their work to improve tab co ## Other cmdlet improvements +- `Get-Process`: Remove admin requirement for `-IncludeUserName` ([#21302][21302]) (Thanks @jborean93!) +- Fix `Test-Path -IsValid` to check for invalid path and filename characters ([#21358][21358]) +- Add `RecommendedAction` to `ConciseView` of the error reporting ([#20826][20826]) (Thanks @JustinGrote!) +- Added progress bar for `Remove-Item` cmdlet ([#20778][20778]) (Thanks @ArmaanMcleod!) - Fix `Test-Connection` due to .NET 8 changes ([#20369][20369]) - Fix `Get-Service` non-terminating error message to include category ([#20276][20276]) - Add `-Empty` and `-InputObject` parameters to `New-Guid` ([#20014][20014]) (Thanks @CarloToso!) @@ -110,8 +130,10 @@ Many thanks to **@ArmaanMcleod** and others for all their work to improve tab co [20367]: https://github.com/PowerShell/PowerShell/pull/20367 [20369]: https://github.com/PowerShell/PowerShell/pull/20369 [20371]: https://github.com/PowerShell/PowerShell/pull/20371 +[20402]: https://github.com/PowerShell/PowerShell/pull/20402 [20415]: https://github.com/PowerShell/PowerShell/pull/20415 [20419]: https://github.com/PowerShell/PowerShell/pull/20419 +[20420]: https://github.com/PowerShell/PowerShell/pull/20420 [20428]: https://github.com/PowerShell/PowerShell/pull/20428 [20451]: https://github.com/PowerShell/PowerShell/pull/20451 [20460]: https://github.com/PowerShell/PowerShell/pull/20460 @@ -126,17 +148,25 @@ Many thanks to **@ArmaanMcleod** and others for all their work to improve tab co [20734]: https://github.com/PowerShell/PowerShell/pull/20734 [20745]: https://github.com/PowerShell/PowerShell/pull/20745 [20749]: https://github.com/PowerShell/PowerShell/pull/20749 +[20778]: https://github.com/PowerShell/PowerShell/pull/20778 [20793]: https://github.com/PowerShell/PowerShell/pull/20793 [20820]: https://github.com/PowerShell/PowerShell/pull/20820 +[20826]: https://github.com/PowerShell/PowerShell/pull/20826 [20853]: https://github.com/PowerShell/PowerShell/pull/20853 [20910]: https://github.com/PowerShell/PowerShell/pull/20910 [20913]: https://github.com/PowerShell/PowerShell/pull/20913 +[20925]: https://github.com/PowerShell/PowerShell/pull/20925 [20942]: https://github.com/PowerShell/PowerShell/pull/20942 [20994]: https://github.com/PowerShell/PowerShell/pull/20994 -[20402]: https://github.com/PowerShell/PowerShell/pull/20402 -[20925]: https://github.com/PowerShell/PowerShell/pull/20925 +[21000]: https://github.com/PowerShell/PowerShell/pull/21000 [21040]: https://github.com/PowerShell/PowerShell/pull/21040 [21085]: https://github.com/PowerShell/PowerShell/pull/21085 [21126]: https://github.com/PowerShell/PowerShell/pull/21126 [21162]: https://github.com/PowerShell/PowerShell/pull/21162 [21169]: https://github.com/PowerShell/PowerShell/pull/21169 +[21182]: https://github.com/PowerShell/PowerShell/pull/21182 +[21184]: https://github.com/PowerShell/PowerShell/pull/21184 +[21223]: https://github.com/PowerShell/PowerShell/pull/21223 +[21302]: https://github.com/PowerShell/PowerShell/pull/21302 +[21358]: https://github.com/PowerShell/PowerShell/pull/21358 +[21529]: https://github.com/PowerShell/PowerShell/pull/21529