Commit 0dfc24e
authored
fix: handle non-semver VERSION in update check (#44)
When running via bun run dev, OPENCODE_VERSION is undefined so VERSION
falls back to "local". getReleaseType would crash on semver.major("local"),
silently killing the update prompt. Now skips semver comparison for local
or non-semver versions and always notifies instead.1 parent 19777d8 commit 0dfc24e
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
0 commit comments