Skip to content

Add automatic daily update checking - #185

Merged
Howard Wolosky (HowardWolosky) merged 2 commits into
microsoft:masterfrom
HowardWolosky:checkUpdate
May 30, 2020
Merged

Howard Wolosky (HowardWolosky) merged 2 commits into
microsoft:masterfrom
HowardWolosky:checkUpdate

Conversation

@HowardWolosky

Copy link
Copy Markdown
Contributor

The module will now check daily with PowerShellGallery to see if there
is a newer version of the module available. This check can be disabled
with the new DisableUpdateCheck config property.

The check happens asynchronously. The web request is kicked off when
the module is loaded, but the result is only checked when the user
runs a command.

The result is logged at the Verbose level in any failure case as well
as when the module is up-to-date. When there is a newer version
available, it will write the message out as a Warning. The web request
will only run once per day, and the user message will only be written
once per day as well.

The module will now check daily with PowerShellGallery to see if there
is a newer version of the module available.  This check can be disabled
with the new `DisableUpdateCheck` config property.

The check happens asynchronously.  The web request is kicked off when
the module is loaded, but the result is only checked when the user
runs a command.

The result is logged at the Verbose level in any failure case as well
as when the module is up-to-date.  When there is a newer version
available, it will write the message out as a Warning.  The web request
will only run once per day, and the user message will only be written
once per day as well.
@HowardWolosky Howard Wolosky (HowardWolosky) added the enhancement An issue or pull request introducing new functionality to the project. label May 30, 2020
@HowardWolosky
Howard Wolosky (HowardWolosky) merged commit a9f48a8 into microsoft:master May 30, 2020
@HowardWolosky
Howard Wolosky (HowardWolosky) deleted the checkUpdate branch May 30, 2020 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement An issue or pull request introducing new functionality to the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant