Skip to content

v2.0.0

Compare
Choose a tag to compare
@SeeminglyScience SeeminglyScience released this 24 Apr 21:59
89bce07

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]] }

Example-1

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] }

Example-2

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):

Formatting-Example

New command Format-MemberSignature

Provides a "metadata reference" style view for reflection objects.

Format-MemberSignature-Example

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*

smart-casing-example-1

Find-Type *Ast*

smart-casing-example-2

Range Expressions

Some new parameters like Find-Member's -ParameterCount take a new type of expression that represents a range.

Find-Member -ParameterCount 20..

range-expression-example

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