Repository navigation
v3.0.0
What's Changed
v3.0.0 is a major update with significant improvements to performance, usability, and customization.
Major Changes
- Major internal refactoring of the tree node model for better performance, maintainability, and extensibility.
- Moved all tree node classes from the
PSTreenamespace to the newPSTree.Nodesnamespace. - Made
Get-PSTreeRegistryWindows-only (cmdlet and aliaspstreeregshould no longer be discoverable on non-Windows platforms). - Significantly improved memory usage and rendering performance (~20% reduction in string allocations).
New Features
-
Added
-SortByparameter (alias-sb) to bothGet-PSTreeandGet-PSTreeRegistry.- New
FileSystemSortModeandRegistrySortModeenums with multiple sorting strategies.
- New
-
Added
-Topparameter (alias-t) toGet-PSTree:- Limits the number of children displayed per directory.
- Automatically enables
-RecursiveSizeand defaults to size-based sorting. - Introduces a new
TreeSummarytype that represents omitted items (with count and total size). - Throws a clear error if used with incompatible sort modes.
- Added
Summaryproperty toTreeStyle.FileSystemStylefor customizing the appearance ofTreeSummaryobjects.
-
Added customizable tree rendering styles:
- New
RenderingStyleproperty onTreeStyle. - Supported styles:
Fancy(default),FancyRounded,Classic,ClassicRounded.
- New
Changed
TreeBaseis now a true tree structure with parent references and child collections.- Registry values now properly populate the
Pathproperty (previously empty). - Updated and significantly expanded documentation for
Get-PSTree, especially around-Top,TreeSummary, and sorting. - Updated
about_TreeStyle.md.
Breaking Changes
- Namespace change: All tree node types moved from
PSTree.*toPSTree.Nodes.*. Get-PSTreeRegistryis no longer available on non-Windows platforms.
PRs
- Updates CI actions. by @santisq in #58
- Code refactoring to reduce memory consumption by @santisq in #60
- Add
-SortByparameter toGet-PSTreeandGet-PSTreeRegistryby @santisq in #64 - Add customizable tree rendering styles by @santisq in #65
- Add
-Topparameter and tree consolidation logic by @santisq in #66
Full Changelog: v2.2.8...v3.0.0


