Commit eb3687e
committed
Friendlier auto-upgrade messaging
Before:
Upgrading Shopify CLI by running: `pnpm add -g @shopify/cli@latest`...
After:
✨ New version of Shopify CLI available! (3.94.3 → 3.95.0)
Now upgrading by running: `pnpm add -g @shopify/cli@latest`...
[package manager output]
╭─ success ──────────────────────────────╮
│ Shopify CLI upgraded │
│ │
│ You're now on version 3.95.0. │
╰────────────────────────────────────────╯
- Pre-message now states *what just happened* ("new version
available") and shows the version range when known.
- Adds a `renderSuccess` banner after a successful upgrade so users
get explicit confirmation instead of silence.
- The version range comes from `checkForCachedNewVersion`, which
is already populated by `versionToAutoUpgrade()` upstream — no
extra network call.1 parent bcb63d5 commit eb3687e
1 file changed
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
97 | 113 | | |
98 | 114 | | |
99 | 115 | | |
| |||
0 commit comments