Skip to content

Commit 9eb485c

Browse files
committed
bump module version. update changelog.
1 parent 4c7c778 commit 9eb485c

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# CHANGELOG
22

3+
- __09/03/2024__
4+
- Makes `.Depth` property public for `PSTreeFileSystemInfo` instances.
5+
- Makes `.GetParents()` method private, absolutely no reason to have it public.
6+
- Added property `ItemCount` and `TotalItemCount` to `PSTreeDirectory` instances, requested in [__Issue #34__][2].
7+
8+
```powershell
9+
PS ..\PSTree> pstree -Recurse -Force -Directory | Select-Object Hierarchy, Depth, ItemCount, TotalItemCount -First 15
10+
11+
Hierarchy Depth ItemCount TotalItemCount
12+
--------- ----- --------- --------------
13+
PSTree 0 15 1476
14+
├── .git 1 13 1078
15+
│ ├── hooks 2 13 13
16+
│ ├── info 2 1 1
17+
│ ├── logs 2 2 24
18+
│ │ └── refs 3 2 22
19+
│ │ ├── heads 4 9 9
20+
│ │ └── remotes 4 1 11
21+
│ │ └── origin 5 10 10
22+
│ ├── objects 2 244 995
23+
│ │ ├── 00 3 3 3
24+
│ │ ├── 01 3 2 2
25+
│ │ ├── 02 3 3 3
26+
│ │ ├── 03 3 4 4
27+
│ │ ├── 04 3 2 2
28+
29+
PS ..\PSTree> (Get-ChildItem -Force).Count
30+
15
31+
PS ..\PSTree> (Get-ChildItem -Force -Recurse).Count
32+
1476
33+
PS ..\PSTree> (Get-ChildItem .git -Force -Recurse).Count
34+
1078
35+
PS ..\PSTree> (Get-ChildItem .git -Force).Count
36+
13
37+
PS ..\PSTree>
38+
```
39+
340
- __08/29/2024__
441
- Added method `.GetUnderlyingObject()`. Outputs the underlying `FileSystemInfo` instance.
542
- Fixes [__Issue #9: Sort by ascending values__][1]:
@@ -233,3 +270,4 @@ d---- └── Format 1.83 Kb
233270
[18]: https://github.com/jborean93/
234271
[19]: /docs/en-US/Get-PSTree.md
235272
[20]: https://www.powershellgallery.com/
273+
[2]: https://github.com/santisq/PSTree/issues/34

module/PSTree.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'bin/netstandard2.0/PSTree.dll'
1212

1313
# Version number of this module.
14-
ModuleVersion = '2.1.17'
14+
ModuleVersion = '2.1.18'
1515

1616
# Supported PSEditions
1717
# CompatiblePSEditions = @()

0 commit comments

Comments
 (0)