Releases: codaamok/PSShlink
Releases · codaamok/PSShlink
v0.8.0
Added
- Improved build pipeline to use codaamok.build
- New
-ForwardQuery
boolean parameter inNew-ShlinkUrl
andSet-ShlinkUrl
(new in Shlink 2.9.0).
Changed
- Minimum Shlink version updated to 2.9.0
- Renamed parameter
-DoNotValidateUrl
of switch type to-ValidateUrl
of boolean type for bothNew-ShlinkUrl
andSet-ShlinkUrl
. - Parameter
-FindIfExists
is now of type boolean instead of switch inNew-ShlinkUrl
. is now a switch and not a boolean`. - Removed use of methods
SecureStringToBSTR
andPtrToStringAuto
from Marshal .NET class for secure string handling inInvokeShlinkRestMethod
, in favour of usingGetNetworkCredential
method from a PSCredential object. Save-ShlinkUrlQrCode
no longer has hardcoded default parameter values (much like the API did) for size, margin, format, and error correction level.. Shlink 2.9.0 now lets you configure these defaults for QR codes, so by omitting values for these params, your server default values are used.
Fixed
- Corrected object reference to API URL attempted in ErrorRecord
Release 0.7.0
Added
- New function
Set-ShlinkDomainRedirects
, new in Shlink 2.8.0 - New
-ErrorCorrection
parameter forSave-ShlinkUrlQrCode
, new in Shlink 2.8.0
Changed
- Minimum Shlink version updated to 2.8.0
Fixed
- Return exception
UnauthorizedAccessException
when Shlink returns 401. PreviouslyInvalidOperationException
was returned
Security
- Default to https:// as -ShlinkServer if schema is not provided. Largely for security but also because of PowerShell/PowerShell#14531
Release 0.6.0
Added
- New
-ExcludeBots
parameter toGet-ShlinkVisits
andGet-ShlinkVisitsOrphan
, new in Shlink 2.7.0 - New
-Crawlable
parameter toNew-ShlinkUrl
andSet-ShlinkUrl
, new in Shlink 2.7.0
Changed
Set-ShlinkUrl
acceptsdomain
as ValueFromPipelineByPropertyName- Minimum Shlink version updated to 2.7.0
Fixed
- Fixed an issue where
Set-ShlinkUrl
would not reinitialise its query string when used within a pipeline - Added missing comment based help to
Get-ShlinkVisitsOrphan
- Fixed typos in comment based help for some functions
Release 0.5.0
Added
- New function
Get-ShlinkVisitsOrphan
, new in Shlink 2.6.0 - New
-Margin
parameter toSave-ShlinkUrlQrCode
, new in Shlink 2.6.0 - Added missing comment based help to
Save-ShlinkUrlQrCode
for its parameters - New
-Title
parameter toNew-ShlinkUrl
andSet-ShlinkUrl
, new in Shlink 2.6.0
Changed
- Improvements to the Shlink API in 2.6.0 enables me to restore the previous (intended) functionality of
Set-ShlinkUrl
is restored. Specifically, the ability to modify multiple properties of a short code within a single call. No longer need to call the function for each change you want to make to a short code. Save-ShlinkUrlQrCode
now creates the directory-Path
if it does not exist- Minimum Shlink version updated to 2.6.0
Release 0.4.0
Release 0.3.0
Changed
- Minimum Shlink version updated to 2.5.0
Save-ShlinkUrlQrCode
now uses newer API format for the 'size' query parameter- Check and produce a terminating error if
-ShlinkServer
is not really a Shlink server in all functions
Fixed
-ShlinkServer
and-ShlinkApiKey
only remembered the first values you use in any of the module's functions. Explicitly passing those parameters to any function again did not use the new server address or API key
Release 0.2.0
Fixed
- Add the
System.Web
.NET class if not loaded, thanks @ChrisKibble in #1 - Parameter
-DoNotValidateUrl
now behaves correctly inNew-ShlinkUrl
andSet-ShlinkUrl
, thanks again @ChrisKibble in #2
Release 0.1.0
Added
- Initial release