v2.0.0
v2.0.0
BREAKING CHANGE: The Find-Namespace
cmdlet has been removed.
Type Signature Query Language
This feature allows for very easily handling of generic types, something that was sorely lacking previously. There's a significant number of additional queries to play with, check out about_Type_Signatures.help.md for more info.
Find-Member -ParameterType { [ReadOnlySpan[any]] }
Finds members that take a ReadOnlySpan<>
as a parameter regardless of generic argument.
Find-Member -ReturnType { [generic[anyof[Span`1, ReadOnlySpan`1], args[TM]]] } -ParameterType { [anyref] [any] }
Finds members that take any form of ref
(including out
and in
) and return either a Span<>
or a ReadOnlySpan<>
whose generic argument is a generic method type parameter.
Formatting
Every object returned by included commands feature new formatting with syntax highlighting. Also includes formatting for PSMethod
(e.g. overload definitions):
New command Format-MemberSignature
Provides a "metadata reference" style view for reflection objects.
Smart Casing
Any parameter that takes a string now uses "smart casing". If the value is all lower case, the search will be case insensitive and switches to case sensitive only when a upper case character is present.
Find-Type *ast*
Find-Type *Ast*
Range Expressions
Some new parameters like Find-Member
's -ParameterCount
take a new type of expression that represents a range.
Find-Member -ParameterCount 20..
Finds all methods with 20 or more parameters.
And more
- A lot of new parameters and parameter aliases
- Results are properly streamed rather than dumped all at once
- Included cmdlet aliases
-Not
works reliably- Slightly faster
- Many fixes