Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature Request: Implement "wrangler check-update" to check current version #6190

Open
arisris opened this issue Jul 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@arisris
Copy link

arisris commented Jul 3, 2024

Describe the solution

  • Summary: This command will check the current version of "wrangler" instead of executing it directly in the printWranglerBanner() function
  • Motivation: This command will increase the speed of executing subcommands rather than checking the latest version directly every time. This will reduce internet data load for local users
  • Alternatives Considered: If it is not possible to add this command. Can we cache the updateCheck() version for some time? For example once a day?

I think features like this are very crucial. However, if we check the latest version every time we run a command, for example "wrangler whoami", it will feel very slow, especially for users who have slow/limited internet data.

export async function printWranglerBanner(performUpdateCheck = true) {

async function doUpdateCheck(): Promise<string | undefined> {

Thankyou

@arisris arisris added the enhancement New feature or request label Jul 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant