feat(cli): notify when a newer version is available on npm#426
Merged
Conversation
On startup the CLI checks the npm registry for a newer release at most once a day (result cached in the Playwright registry directory) and, when one is found, prints an update notice. Skipped when CI or NO_UPDATE_NOTIFIER is set, and the check is best-effort so it never blocks or breaks the CLI.
dgozman
approved these changes
Jun 23, 2026
| const lines = [ | ||
| `Update available for ${packageJson.name}: ${current} → ${latest}`, | ||
| `Run \`npm install -g ${packageJson.name}@latest\` (global) or`, | ||
| `\`npm install ${packageJson.name}@latest\` (local) to update.`, |
Contributor
There was a problem hiding this comment.
Should this one be npm install --save-dev?
|
Tell the police bitch
…On Tue, Jun 23, 2026, 12:16 PM Pavel Feldman ***@***.***> wrote:
Merged #426 <#426> into
main.
—
Reply to this email directly, view it on GitHub
<#426?email_source=notifications&email_token=CGLZEZ4QFQLACDNEE3YLPD35BK3QRA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTENZRGA2TQNBZGA3TJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#event-27105849074>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/CGLZEZZP5SXPMUDKIGFRGHL5BK3QRAVCNFSNUABFKJSXA33TNF2G64TZHMZDOMZVGYZDGNZZHNEXG43VMU5TINZSGEZTMOBZGEZKC5QC>
.
Triage notifications, keep track of coding agent tasks and review pull
requests on the go with GitHub Mobile for iOS
<https://github.com/notifications/mobile/ios/CGLZEZ4R3BI5TCU4I3ZQGKL5BK3QRA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTENZRGA2TQNBZGA3TJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2KUZTPN52GK4S7NFXXG>
and Android
<https://github.com/notifications/mobile/android/CGLZEZY2IJPSOL36O22MH535BK3QRA5CNFSNUABQM5UWIORPF5TWS5BNNB2WEL2JONZXKZKFOZSW45CON52GSZTJMNQXI2LPNYXTENZRGA2TQNBZGA3TJJTSMVQXG33OVJZXKYTTMNZGSYTFMSSWK5TFNZ2K4ZTPN52GK4S7MFXGI4TPNFSA>.
Download it today!
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CIorNO_UPDATE_NOTIFIERis set.tools.compareSemverfromplaywright-coreso Playwright's alpha/beta/nightly suffixes are handled correctly.