Skip to content

Releases: codaamok/PSShlink

v0.8.0

20 Nov 22:36
Compare
Choose a tag to compare

Added

  • Improved build pipeline to use codaamok.build
  • New -ForwardQuery boolean parameter in New-ShlinkUrl and Set-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 both New-ShlinkUrl and Set-ShlinkUrl.
  • Parameter -FindIfExists is now of type boolean instead of switch in New-ShlinkUrl. is now a switch and not a boolean`.
  • Removed use of methods SecureStringToBSTR and PtrToStringAuto from Marshal .NET class for secure string handling in InvokeShlinkRestMethod, in favour of using GetNetworkCredential 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

09 Aug 20:53
Compare
Choose a tag to compare

Added

  • New function Set-ShlinkDomainRedirects, new in Shlink 2.8.0
  • New -ErrorCorrection parameter for Save-ShlinkUrlQrCode, new in Shlink 2.8.0

Changed

  • Minimum Shlink version updated to 2.8.0

Fixed

  • Return exception UnauthorizedAccessException when Shlink returns 401. Previously InvalidOperationException was returned

Security

Release 0.6.0

23 May 20:46
Compare
Choose a tag to compare

Added

  • New -ExcludeBots parameter to Get-ShlinkVisits and Get-ShlinkVisitsOrphan, new in Shlink 2.7.0
  • New -Crawlable parameter to New-ShlinkUrl and Set-ShlinkUrl, new in Shlink 2.7.0

Changed

  • Set-ShlinkUrl accepts domain 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

14 Feb 22:18
Compare
Choose a tag to compare

Added

  • New function Get-ShlinkVisitsOrphan, new in Shlink 2.6.0
  • New -Margin parameter to Save-ShlinkUrlQrCode, new in Shlink 2.6.0
  • Added missing comment based help to Save-ShlinkUrlQrCode for its parameters
  • New -Title parameter to New-ShlinkUrl and Set-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

04 Feb 22:22
Compare
Choose a tag to compare

Changed

  • In order to fix #4, I had to change the way Set-ShlinkUrl works. You can now only update one property of a short code per call of Set-ShlinkUrl.

Fixed

  • -ValidUntil would be set the same as -ValidSince with New-ShlinkUrl, fixes #3

Release 0.3.0

23 Jan 14:27
Compare
Choose a tag to compare

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

02 Jan 22:48
Compare
Choose a tag to compare

Fixed

  • Add the System.Web .NET class if not loaded, thanks @ChrisKibble in #1
  • Parameter -DoNotValidateUrl now behaves correctly in New-ShlinkUrl and Set-ShlinkUrl, thanks again @ChrisKibble in #2

Release 0.1.0

27 Nov 23:38
Compare
Choose a tag to compare

Added

  • Initial release