spinuptui 0.24.0 → 0.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -1
- package/README.md +4 -2
- package/package.json +1 -1
- package/src/lib/appUpdate.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,17 @@ versions; such changes are called out here.
|
|
|
11
11
|
|
|
12
12
|
## [Unreleased]
|
|
13
13
|
|
|
14
|
+
## [0.24.1] - 2026-08-06
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- **`bun update -g spinuptui` no longer silently fails to update.** While
|
|
18
|
+
spinuptui is pre-1.0, a package-manager global install records a caret
|
|
19
|
+
version range (e.g. `^0.22.2`) that, under semver, only matches patch
|
|
20
|
+
releases — every later minor release fell outside it, so `update -g`
|
|
21
|
+
reported success without actually updating anything. The documented and
|
|
22
|
+
in-app update command (Help/About panel, README) is now
|
|
23
|
+
`bun add -g spinuptui@latest`, which always pulls the true latest version.
|
|
24
|
+
|
|
14
25
|
## [0.24.0] - 2026-07-15
|
|
15
26
|
|
|
16
27
|
### Added
|
|
@@ -1239,7 +1250,8 @@ Initial tagged release.
|
|
|
1239
1250
|
### Notes
|
|
1240
1251
|
- Read-only release: works with a SpinupWP **Read Only** API token.
|
|
1241
1252
|
|
|
1242
|
-
[Unreleased]: https://github.com/mwender/spinupwp-tui/compare/v0.24.
|
|
1253
|
+
[Unreleased]: https://github.com/mwender/spinupwp-tui/compare/v0.24.1...HEAD
|
|
1254
|
+
[0.24.1]: https://github.com/mwender/spinupwp-tui/compare/v0.24.0...v0.24.1
|
|
1243
1255
|
[0.24.0]: https://github.com/mwender/spinupwp-tui/compare/v0.23.0...v0.24.0
|
|
1244
1256
|
[0.23.0]: https://github.com/mwender/spinupwp-tui/compare/v0.22.3...v0.23.0
|
|
1245
1257
|
[0.22.3]: https://github.com/mwender/spinupwp-tui/compare/v0.22.2...v0.22.3
|
package/README.md
CHANGED
|
@@ -150,8 +150,10 @@ bun run build:binary # produces ./spinuptui — move it onto your PATH
|
|
|
150
150
|
The app tells you when a newer release exists — a gold `✦ vX.Y.Z` appears next
|
|
151
151
|
to the version in the header (and in the `?` About panel).
|
|
152
152
|
|
|
153
|
-
- **Package install:** `bun
|
|
154
|
-
same command).
|
|
153
|
+
- **Package install:** `bun add -g spinuptui@latest` (the About panel shows
|
|
154
|
+
the same command). Don't use `bun update -g` — while spinuptui is pre-1.0,
|
|
155
|
+
it records a caret range (e.g. `^0.22.2`) that excludes every later minor
|
|
156
|
+
release, so `update -g` reports success but silently doesn't update.
|
|
155
157
|
- **Source checkout:** press **`u`** in the About panel to update in place
|
|
156
158
|
(`git pull --ff-only`; refuses if you have uncommitted changes, and never
|
|
157
159
|
merges/rebases). It can't hot-reload the already-running process, so it tells
|
package/package.json
CHANGED
package/src/lib/appUpdate.ts
CHANGED
|
@@ -139,7 +139,17 @@ export function installChannel(): InstallChannel {
|
|
|
139
139
|
|
|
140
140
|
// The one-liner Help shows for a package install (also used by runSelfUpdate's
|
|
141
141
|
// "not a checkout" message so every path names the same command).
|
|
142
|
-
|
|
142
|
+
//
|
|
143
|
+
// Deliberately `add ... @latest`, not `update -g`: while spinuptui is pre-1.0,
|
|
144
|
+
// `bun add -g spinuptui` (no version) records a caret range like `^0.22.2`,
|
|
145
|
+
// which per semver only matches 0.22.x. Every minor release (0.23.0, 0.24.0, ...)
|
|
146
|
+
// falls outside that range, so `bun update -g` silently no-ops forever — it
|
|
147
|
+
// re-resolves within the stale range and finds nothing newer. `@latest` bypasses
|
|
148
|
+
// the recorded range entirely and rewrites it to match, so the *next* update
|
|
149
|
+
// hits the same wall until the following minor bump. Verified live against a
|
|
150
|
+
// real stale install (0.22.2 -> 0.24.0): `update -g` exited 0 without updating,
|
|
151
|
+
// `add -g spinuptui@latest` updated correctly.
|
|
152
|
+
export const PACKAGE_UPDATE_CMD = "bun add -g spinuptui@latest"
|
|
143
153
|
|
|
144
154
|
// The real checkout directory, resolved through Bun's module system rather
|
|
145
155
|
// than process.cwd() — `spinuptui` is typically a global symlink invoked from
|