Skip to content

Commit 503ee9c

Browse files
authored
Add Bytes alias to ByteArray parameters for consistency (#28)
* Add Bytes alias to ByteArray parameters for consistency Add [Alias('Bytes')] to the -ByteArray parameter in: - ConvertFrom-ByteArrayToString - ConvertFrom-CompressedByteArrayToString This matches the existing pattern in ConvertFrom-ByteArrayToBase64 and ConvertFrom-ByteArrayToMemoryStream, providing a consistent API across all functions that accept byte array input. Fixes #25 * chore: Bump version to 2.0.6-alpha
1 parent 2ffd6af commit 503ee9c

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Convert/Convert.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'Convert.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.0.5'
15+
ModuleVersion = '2.0.6'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = @(

src/Convert/Public/ConvertFrom-ByteArrayToString.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ function ConvertFrom-ByteArrayToString {
5757
ValueFromPipeline = $true,
5858
ValueFromPipelineByPropertyName = $true)]
5959
[ValidateNotNullOrEmpty()]
60+
[Alias('Bytes')]
6061
[Byte[]]
6162
$ByteArray,
6263

src/Convert/Public/ConvertFrom-CompressedByteArrayToString.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function ConvertFrom-CompressedByteArrayToString {
4747
ValueFromPipeline = $true,
4848
ValueFromPipelineByPropertyName = $true)]
4949
[ValidateNotNullOrEmpty()]
50+
[Alias('Bytes')]
5051
[Byte[]]
5152
$ByteArray,
5253

0 commit comments

Comments
 (0)