- Fixed: some of ProGet's API endpoints don't recognize the HTTP
Authorization
header.
Released 31 Jan 2024
- The return value from
Get-ProGetAssetContent
is no longer an HTTP response object. Instead, the response content is returned. Updated usages to handle the new return value. What gets returned depends on the content type of the uploaded asset. Any file uploaded by a previous version of ProGetAutomation will come back as an array of bytes. Strings will be returned as strings. - The
Set-ProGetAsset
function no longer sets the content type of assets toapplication/x-www-form-urlencoded
. Instead, when uploading files using theFilePath
parameter, the content type is set toapplication/octet-stream
. When uploading from a string using theContent
parameter, the content type is set totext/plain; charset=utf-8
. If you want to customize the content type, use the newContentType
parameter. - Remove usages of
-ContentType Form
on calls toInvoke-ProGetRestMethod
. This is now the default behavior. - Replaces usages of
-ContentType Json
on calls toInvoke-ProGetRestMethod
with-AsJson
.
Get-ProGetAssetContent
now returns the actual content instead of an HTTP response object.
Set-ProGetAsset
no longer sets the content type of assets toapplication/x-www-form-urlencoded
.Set-ProGetAsset
sets the content type of uploaded files toapplication/octet-stream
.Set-ProGetAsset
sets the content type of uploaded strings totext/plain; charset=utf-8
.
- The
ContentType
parameter onInvoke-ProGetRestMethod
. Use the newAsJson
switch instead for usages of-ContentType Json
and remove usages of-ContentType Form
entirely.
Released 11 Apr 2023
Updated Get-ProGetFeed
, New-ProGetFeed
, Test-ProGetFeed
, and Remove-ProGetFeed
functions to use ProGet's
Feed Management API instead of the native API.
Ensure that API keys/credentials used with those functions have appropriate access to manage feeds.
Update usages of objects returned by Get-ProGetFeed
and New-ProGetFeed
. Rename these properties:
Active_Indicator
➔active
AllowUnknownLicenses_Indicator
➔allowUnknownLicenses
Feed_Description
➔description
Feed_Name
➔name
FeedType_Name
➔feedType
Remove these properties:
AllowUnassessedVulnerabilities_Indicator
Cache_Connectors_Indicator
DropPath_Text
Feed_Id
FeedConfiguration_Xml
FeedGroup_Id
FeedPathOverride_Text
FeedState_Number
LastPackageUpdate_Date
LastSync_Date
PackageStoreConfiguration_Xml
ReplicationConfiguration_Xml
Replace usages of the ID
parameter on the Get-ProGetFeed
and Remove-ProGetFeed
functions to use Name
instead.
The ID
parameter was removed from those functions.
Remove usages of the Type
parameter on the Test-ProGetFeed
function. A feed's type is no longer needed to determine
if a feed exists. All feed names, regardless of type, must now be unique.
Make sure Delete
HTTP verbs are allowed to your instance of ProGet. The Remove-ProGetFeed
function now uses that
verb when deleting a feed.
Add -ErrorAction Ignore
to usages of Get-ProGetFeed
. That function now writes an error if a feed does not exist.
Add -Method Post
to usages of Invoke-ProGetRestMethod
that don't have a -Method
argument. The default value
changed to Get
from Post
.
- The
Publish-ProGetUniversalPackage
function can now authenticate using a ProGet API key.
- The
Get-ProGetFeed
andNew-ProGetFeed
functions now use the Feed Management API. The objects returned have different properties. Update usages. - The
Invoke-ProGetRestMethod
andInvoke-ProGetNativeApiMethod
now uses[Uri]::EscapeDataString([String])
to URL encode query string values (instead of[Web.HttpUtility]::UrlEncode([String])
). - The
Remove-ProGetFeed
andTest-ProGetFeed
functions now use the Feed Management API instead of the native API. - The
Remove-ProGetFeed
function now uses the HTTPDelete
verb (instead of thePost
verb) when making the HTTP request to delete a feed. - The
Get-ProGetFeed
function now writes an error if a feed does not exist. - The default value of the
Invoke-ProGetRestMethod
function'sMethod
parameter changed toGet
fromPost
.
- Removed
charset
directive from theContent-Type
header value sent to ProGet because ProGet can't handle that directive. - The
New-ProGetFeed
function no longer checks if the session has an API key. - The
Test-ProGetFeed
function no longer checks if the session has an API key.
ID
on theGet-ProGetFeed
andRemove-ProGetFeed
functions. The Feed Management API doesn't supports feed IDs. Pass the feed name to theName
parameter instead.Type
on functionTest-ProGetFeed
. All feeds, regardless of type, must now have a unique name.
Released 31 Mar 2023
- Parameter
Url
to functionNew-ProGetSession
. This replaces theUri
parameter. We'll always use a URL to connect to ProGet, since it's HTTP-based software. - Property
Url
on the ProGet session object. This replaces theUri
property. - Parameter
MaxRequestSize
to functionSet-ProGetAsset
. TheSet-ProGetAsset
function no uploads files in parts to avoid surpassing web server max request content length restrictions. Set this parameter to a value lower than your web server's maximum request content length. The default value is 30MB/28.6MiB (the IIS web server's default max request content length).
Set-ProGetAsset
function now uploads files of any size.
- The
New-ProGetSession
function'sUri
parameter is deprecated. Use the newUrl
parameter instead. - The
Uri
property on the ProGet session object. Use the newUrl
property instead.
Released 26 Jun 2021
Added support for ProGet 5.3.32
Released 3 Sep 2021
Update vendored Zip module dependency to version 0.3.2 (from 0.3.1).
Released 18 Aug 2020
- Update vendored Zip module dependency to version 0.3.1 (from 0.3.0).
- Fixed: ProGet universal packages created by ProGetAutomation are not extractable on non-Windows platforms due to using "" as the directory separator character.
Released 12 Feb 2020
Improved import speed by merging functions into the module's .psm1 file.
Released 25 Jan 2019
- Added
-Quiet
switch toAdd-ProGetUniversalPackageFile
to suppress progress messages while adding files to the package. - Fixed:
Add-ProGetUniversalPackageFile
fails when passed multiple paths directly, in a non-pipeline manner.
Released 27 Dec 2018
Add-ProGetUniversalPackageFile
is now an order of magnitude faster, thanks to performance improvements to the underlying Zip module used to add files to a universal package.Add-ProGetUniversalPackageFile
now preserves file last write/modified date/times.- Fixed:
Add-ProGetUniversalPackageFile
function behaves improperly when part of a pipeline, causing a major performance problem. - Fix issue #7: the
Test-ProGetFeed
function ignores the feed's type, i.e. it always returns true if there is any feed with a given name, regardless of its type. - Renamed the
New-ProGetFeed
andTest-ProGetFeed
function'sFeedName
andFeedType
parameters toName
andType
.
Released 18 Dec 2018
- Created
New-ProGetUniversalPackage
function to create a new upack file with a correctly formatted upack.json file. - Created
Add-ProGetUniversalPackageFile
function for adding files a upack file. - Created
Get-ProGetUniversalPackage
function to read packages from a ProGet universal feed. - Created
Get-ProGetFeed
function that gets a list of feeds from ProGet. - Created
Remove-ProGetFeed
function for removing ProGet feeds. - Adding
WhatIf
support toInvoke-ProGetRestMethod
andInvoke-ProGetNativeApiMethod
. When using-WhatIf
switch, only GET requests will actually be made. - Created
Remove-ProGetUniversalPackage
function to remove packages from a universal feed.