William Easton
ec0dba4605
Remove pre-parse for array-based JSON ( #15684 )
2022-07-25 14:14:56 -07:00
Dominik Kaszewski
89cc6d1297
Fix Test-Json not handling non-object types at root ( #17741 )
2022-07-25 22:43:48 +05:00
Steve Lee
08baf27b80
Render decimal numbers in a table using current culture ( #17650 )
2022-07-18 14:27:06 -07:00
Steve Lee
ff0506d632
Change ConvertFrom-Json -AsHashtable to use ordered hashtable ( #17405 )
...
JSON typically has ordering to make it easier to read. Currently, a Hashtable does not preserve ordering so for complex JSON, the members are not where you would expect in terms of order. This change wraps OrderedDictionary into a OrderedHashtable that derives from Hashtable. This preserves existing compatibility with scripts that expect a Hashtable to be returned, but preserves the order of elements.
2022-07-13 09:23:03 +05:00
Bryan Berns
ca0178a802
Add Milliseconds Parameter to New-TimeSpan ( #17621 )
2022-07-12 11:09:19 +05:00
Shuangchi He
c5d31c9e10
Correct spelling in Comments and tests ( #17480 )
2022-06-06 09:55:33 -07:00
Aditya Patwardhan
d99626927d
Update Get-Error test to not depend on DNS APIs ( #17471 )
2022-06-03 09:25:24 -07:00
github-actions[bot]
38909f7ee5
Update .NET SDK version from 7.0.100-preview.2.22153.17 to 7.0.100-preview.4.22252.9 ( #17061 )
2022-05-11 18:27:51 -07:00
James Truher [MSFT]
1a24540e31
Enable more tests to be run in a container. ( #17294 )
2022-05-11 12:30:22 -07:00
Dongbo Wang
44098e771a
Fix the list view to not leak VT decorations ( #17262 )
2022-05-10 16:05:14 -07:00
Ryne Andal
2550a3a23a
Add check for ScriptBlock wrapped in PSObject to $using used in ForEach-Object -Parallel ( #17234 )
2022-05-04 10:51:45 -07:00
m1k0net
0067decae8
Fix Sort-Object -Stable -Unique to actually do stable sorting ( #17189 )
2022-04-26 16:58:37 -07:00
Aditya Patwardhan
9fc0e80fb7
Update dotnetmetadata.json to accept .NET 7 preview 3 builds ( #17063 )
2022-03-25 16:15:16 -07:00
James Truher [MSFT]
b3632eda46
Improve unique naming for tests ( #17043 )
2022-03-23 09:24:10 -07:00
Mathias R. Jessen
686c84cccc
Add new parameter to Start-Sleep: [-Duration] <timespan> ( #16185 )
2022-01-13 17:39:54 -08:00
KiwiThePoodle
83a809b1f0
Make Measure-Object ignore missing properties unless running in strict mode ( #16589 )
2022-01-13 09:33:43 -08:00
Steve Lee
7a2b44523b
Fix web cmdlets so that an empty Get does not include a content-length header ( #16587 )
2022-01-03 11:20:33 -08:00
Andrew
1d1e42fd1a
Merge branch 'master' into BringChangesFrom730P1
2021-12-16 13:45:37 -08:00
Andrew Menagarishvili
3f1c03d494
Merged PR 18449: Change default for $PSStyle.OutputRendering to Ansi
...
Cherry picked from !18333
Cherry-picked from commit `5cb8a2b3`.
2021-12-16 13:39:56 -08:00
Paul Higinbotham
cadd5762ea
Fix ForEach-Object -Parallel when passing in script block variable ( #16564 )
...
ForeEach-Object -Parallel using variable processing walks the script block AST to determine if the using variable was defined in the current scope, and does this by tracking the number of 'ForEach-Object -Parallel' commands in the call chain.
However, the provided script block is different, depending on whether it is passed in as a variable or via parameter binding.
$myScript = '"Hello!"'
1 | ForEach-Object -Parallel ([scriptblock]::Create($myScript))
# Script block Ast does not contain the 'ForEach-Object' command in the call chain
1 | ForEach-Object -Parallel { "Hello!" }
# Script block Ast does contain the 'ForEach-Object' command in the call chain
This change takes into account the two forms of script blocks
2021-12-14 08:11:19 +05:00
Maksim Ivanyuk
674ef888a2
Add -HttpVersion parameter to web cmdlets ( #15853 )
2021-11-02 16:53:36 -07:00
Austin Farmer
107fd7ab1f
Add support to web cmdlets for open-ended input tags ( #16193 )
2021-11-02 09:39:28 -07:00
Ryan Polley
cf22188e95
Add more tests to Tee-Object -Encoding ( #14539 )
2021-11-01 23:06:05 -07:00
Kev Ritchie
01426b2763
Fix ConvertTo-Json -Depth to allow 100 at maximum ( #16197 )
2021-10-28 11:56:55 -07:00
Dongbo Wang
89dd5b8127
Remove the outdated test ( #16269 )
2021-10-19 13:45:36 +05:00
Aditya Patwardhan
3bb6b2736a
Update Ubuntu images to use Ubuntu 20.04 ( #15906 )
2021-08-30 13:56:52 -07:00
Steve Lee
a162856af5
Change default to OutputRendering.Host and remove OutputRendering.Automatic ( #15882 )
2021-08-16 14:17:07 -07:00
Robert Holt
2f5150f5e5
Make Measure-Object property test independent of the filesystem ( #15879 )
2021-08-09 15:27:09 -07:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
3e86f9b287
ConvertTo-Csv: Quote fields with quotes and newlines when using -UseQuotes AsNeeded (#15765 )
...
Co-authored-by: Ilya <darpa@yandex.ru >
Co-authored-by: lselden <luke.selden@vbrick.com >
2021-08-04 14:47:57 -07:00
Staffan Gustafsson
1bfa1c36a7
Forwarding progress stream changes from Foreach-Object -Parallel runspaces ( #14271 )
2021-07-31 18:51:03 +05:00
Peter Schneider
de5dc63379
Encoding Parameter for Tee-Object ( #12135 )
2021-07-22 09:26:07 +05:00
Joel Sallow (/u/ta11ow)
efa9b25193
ConvertTo-Csv / Export-Csv - Serialize IDictionary objects with key/value pairs as properties ( #11029 )
2021-07-22 04:05:17 +00:00
Thomas Nieto
05943c6c48
Add position 0 to Write-Error parameters ( #13813 )
2021-07-21 18:05:06 -07:00
Steve Lee
b5efe7bc39
Use $PSStyle.Formatting.FormatAccent for Format-List and $PSStyle.Formatting.TableHeader for Format-Table output ( #14406 )
2021-07-20 09:02:52 +05:00
William Easton
0e1160d20f
Add more tests for ConvertFrom-Json ( #15706 )
2021-07-16 16:01:47 -07:00
Steve Lee
9fb3c2e97c
Highlight using error color the exception Message and underline in PositionMessage for Get-Error ( #15786 )
2021-07-16 15:15:16 +05:00
Steve Lee
adc236c598
Don't serialize to json ETS properties for DateTime and string types ( #15665 )
2021-07-12 10:56:33 -07:00
Steve Lee
364e74a00a
Fix Minimal progress view to handle Activity that is longer than console width ( #15264 )
2021-05-17 09:54:37 -07:00
PRASOON KARUNAN V
837c3e8f42
Change minimum depth to 0 for ConvertTo-Json ( #14830 )
...
* Make Depth default value to 0
* updating as per review comment
2021-04-08 12:53:32 -07:00
Brian Lalonde
c5955a5c0d
#4750 Fix Get-Date -UFormat %G and %g behavior ( #14555 )
2021-03-01 16:37:15 -08:00
Steve Lee
c3fa70380c
Fix webcmdlets to properly construct URI from body when using -NoProxy ( #14673 )
2021-02-05 08:06:04 +05:00
Brian Lalonde
61fea6c342
#4750 Fix Get-Date -UFormat %u behavior ( #14549 )
...
Corrects a behavior of %u in Get-Date -UFormat to match ISO 8601.
2021-02-04 08:10:31 +05:00
Paul Higinbotham
0039807082
Fix using variable for nested foreach parallel calls ( #14548 )
2021-02-02 15:34:08 -08:00
Jake
d3f7ba9f95
Write proper error messages for Get-Command ' ' ( #13564 )
2021-01-10 18:03:05 +05:00
Steve Lee
95ce0643c8
Add -SkipLimitCheck switch to Import-PowerShellDataFile ( #13672 )
2020-12-09 11:07:07 -08:00
Steve Lee
9bf512ff5d
Emit warning if ConvertTo-Json exceeds -Depth value ( #13692 )
2020-09-28 21:22:40 +05:00
Dongbo Wang
10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 ( #13643 )
2020-09-23 14:04:01 -07:00
Ilya
81d5a86747
Add support for Tls 1.3 in Web cmdlets ( #13409 )
2020-09-02 10:18:15 -07:00
Dongbo Wang
5f9d2846f7
Change Add-Type -OutputType to not support ConsoleApplication and WindowsApplication ( #13440 )
2020-08-21 11:30:42 +05:00